From 80cde7efe279d18e50fe14366be388bec0d3cf53 Mon Sep 17 00:00:00 2001 From: Aaroh Mankad Date: Mon, 27 Nov 2023 14:59:37 -0800 Subject: [PATCH] OpenAPI generated code at 2023-11-27T21:39:38Z (#480) --- .openapi-generator/FILES | 14 + .openapi-generator/VERSION | 2 +- CHANGELOG.md | 27 ++ Makefile | 2 +- lib/plaid.rb | 11 +- lib/plaid/api/plaid_api.rb | 4 +- lib/plaid/api_client.rb | 10 +- lib/plaid/api_error.rb | 7 +- lib/plaid/configuration.rb | 16 +- lib/plaid/models/account_access.rb | 4 +- lib/plaid/models/account_assets.rb | 4 +- lib/plaid/models/account_assets_all_of.rb | 26 +- lib/plaid/models/account_balance.rb | 4 +- lib/plaid/models/account_base.rb | 4 +- lib/plaid/models/account_filter.rb | 4 +- lib/plaid/models/account_filters_response.rb | 4 +- lib/plaid/models/account_identity.rb | 4 +- lib/plaid/models/account_identity_all_of.rb | 4 +- .../models/account_identity_match_score.rb | 4 +- .../account_identity_match_score_all_of.rb | 4 +- lib/plaid/models/account_product_access.rb | 4 +- .../models/account_product_access_nullable.rb | 4 +- .../models/account_selection_cardinality.rb | 4 +- lib/plaid/models/account_subtype.rb | 4 +- lib/plaid/models/account_type.rb | 4 +- .../models/accounts_balance_get_request.rb | 4 +- .../accounts_balance_get_request_options.rb | 4 +- lib/plaid/models/accounts_get_request.rb | 4 +- .../models/accounts_get_request_options.rb | 4 +- lib/plaid/models/accounts_get_response.rb | 4 +- lib/plaid/models/ach_class.rb | 4 +- lib/plaid/models/action_state.rb | 4 +- lib/plaid/models/activity.rb | 26 +- lib/plaid/models/activity_type.rb | 4 +- lib/plaid/models/address.rb | 4 +- lib/plaid/models/address_data.rb | 4 +- lib/plaid/models/address_data_not_required.rb | 4 +- lib/plaid/models/address_data_nullable.rb | 4 +- ...ddress_data_nullable_no_required_fields.rb | 4 +- lib/plaid/models/address_match_score.rb | 4 +- lib/plaid/models/address_nullable.rb | 4 +- lib/plaid/models/address_purpose_label.rb | 4 +- lib/plaid/models/application.rb | 4 +- lib/plaid/models/application_get_request.rb | 4 +- lib/plaid/models/application_get_response.rb | 4 +- lib/plaid/models/apr.rb | 4 +- lib/plaid/models/asset.rb | 4 +- lib/plaid/models/asset_detail.rb | 26 +- lib/plaid/models/asset_holder.rb | 4 +- lib/plaid/models/asset_holder_name.rb | 4 +- lib/plaid/models/asset_owner.rb | 4 +- lib/plaid/models/asset_owners.rb | 4 +- lib/plaid/models/asset_report.rb | 4 +- lib/plaid/models/asset_report_add_ons.rb | 4 +- .../asset_report_audit_copy_create_request.rb | 4 +- ...asset_report_audit_copy_create_response.rb | 4 +- .../asset_report_audit_copy_get_request.rb | 4 +- .../asset_report_audit_copy_remove_request.rb | 4 +- ...asset_report_audit_copy_remove_response.rb | 4 +- .../models/asset_report_create_request.rb | 4 +- .../asset_report_create_request_options.rb | 4 +- .../models/asset_report_create_response.rb | 4 +- .../models/asset_report_filter_request.rb | 4 +- .../models/asset_report_filter_response.rb | 4 +- lib/plaid/models/asset_report_freddie.rb | 4 +- .../asset_report_freddie_get_request.rb | 4 +- .../asset_report_freddie_get_response.rb | 4 +- lib/plaid/models/asset_report_get_request.rb | 4 +- .../asset_report_get_request_options.rb | 4 +- lib/plaid/models/asset_report_get_response.rb | 4 +- .../models/asset_report_investment_holding.rb | 4 +- .../asset_report_investment_security.rb | 4 +- lib/plaid/models/asset_report_investments.rb | 26 +- lib/plaid/models/asset_report_item.rb | 4 +- .../models/asset_report_pdf_get_request.rb | 4 +- .../asset_report_pdf_get_request_options.rb | 4 +- .../models/asset_report_refresh_request.rb | 4 +- .../asset_report_refresh_request_options.rb | 4 +- .../models/asset_report_refresh_response.rb | 4 +- .../models/asset_report_remove_request.rb | 4 +- .../models/asset_report_remove_response.rb | 4 +- lib/plaid/models/asset_report_transaction.rb | 26 +- .../models/asset_report_transaction_type.rb | 4 +- lib/plaid/models/asset_report_user.rb | 4 +- lib/plaid/models/asset_transaction.rb | 4 +- .../models/asset_transaction_category_type.rb | 4 +- .../models/asset_transaction_description.rb | 4 +- lib/plaid/models/asset_transaction_detail.rb | 26 +- lib/plaid/models/asset_transaction_type.rb | 4 +- lib/plaid/models/asset_transactions.rb | 4 +- lib/plaid/models/asset_type.rb | 4 +- lib/plaid/models/assets.rb | 4 +- lib/plaid/models/assets_error_webhook.rb | 26 +- .../models/assets_product_ready_webhook.rb | 26 +- lib/plaid/models/auth_get_numbers.rb | 4 +- lib/plaid/models/auth_get_request.rb | 4 +- lib/plaid/models/auth_get_request_options.rb | 4 +- lib/plaid/models/auth_get_response.rb | 4 +- lib/plaid/models/auth_metadata.rb | 4 +- lib/plaid/models/auth_supported_methods.rb | 4 +- .../models/automatically_verified_webhook.rb | 26 +- .../models/bank_income_complete_result.rb | 4 +- .../models/bank_income_complete_webhook.rb | 26 +- .../bank_income_refresh_complete_result.rb | 4 +- .../bank_income_refresh_complete_webhook.rb | 26 +- .../bank_income_refresh_update_webhook.rb | 26 +- .../models/bank_initiated_return_risk.rb | 4 +- lib/plaid/models/bank_transfer.rb | 26 +- lib/plaid/models/bank_transfer_balance.rb | 4 +- .../bank_transfer_balance_get_request.rb | 4 +- .../bank_transfer_balance_get_response.rb | 4 +- .../models/bank_transfer_cancel_request.rb | 4 +- .../models/bank_transfer_cancel_response.rb | 4 +- .../models/bank_transfer_create_request.rb | 26 +- .../models/bank_transfer_create_response.rb | 4 +- lib/plaid/models/bank_transfer_direction.rb | 4 +- lib/plaid/models/bank_transfer_event.rb | 26 +- ..._transfer_event_list_bank_transfer_type.rb | 4 +- .../bank_transfer_event_list_direction.rb | 4 +- .../bank_transfer_event_list_request.rb | 26 +- .../bank_transfer_event_list_response.rb | 4 +- .../bank_transfer_event_sync_request.rb | 4 +- .../bank_transfer_event_sync_response.rb | 4 +- lib/plaid/models/bank_transfer_event_type.rb | 4 +- lib/plaid/models/bank_transfer_failure.rb | 4 +- lib/plaid/models/bank_transfer_get_request.rb | 4 +- .../models/bank_transfer_get_response.rb | 4 +- .../models/bank_transfer_list_request.rb | 26 +- .../models/bank_transfer_list_response.rb | 4 +- .../bank_transfer_migrate_account_request.rb | 4 +- .../bank_transfer_migrate_account_response.rb | 4 +- lib/plaid/models/bank_transfer_network.rb | 4 +- lib/plaid/models/bank_transfer_status.rb | 4 +- lib/plaid/models/bank_transfer_sweep.rb | 4 +- .../models/bank_transfer_sweep_get_request.rb | 4 +- .../bank_transfer_sweep_get_response.rb | 4 +- .../bank_transfer_sweep_list_request.rb | 4 +- .../bank_transfer_sweep_list_response.rb | 4 +- lib/plaid/models/bank_transfer_type.rb | 4 +- lib/plaid/models/bank_transfer_user.rb | 4 +- .../bank_transfers_events_update_webhook.rb | 26 +- ...ransfers_events_update_webhook_for_auth.rb | 26 +- lib/plaid/models/base_report.rb | 4 +- lib/plaid/models/base_report_account.rb | 26 +- .../models/base_report_account_balances.rb | 4 +- .../base_report_account_balances_all_of.rb | 4 +- .../models/base_report_account_insights.rb | 4 +- .../base_report_average_flow_insights.rb | 4 +- .../base_report_average_monthly_balances.rb | 4 +- lib/plaid/models/base_report_get_request.rb | 4 +- lib/plaid/models/base_report_get_response.rb | 4 +- lib/plaid/models/base_report_item.rb | 4 +- .../base_report_longest_gap_insights.rb | 4 +- .../base_report_number_flow_insights.rb | 4 +- lib/plaid/models/base_report_transaction.rb | 4 +- lib/plaid/models/base_report_warning.rb | 26 +- lib/plaid/models/base_report_warning_code.rb | 4 +- .../models/base_reports_error_webhook.rb | 26 +- .../base_reports_product_ready_webhook.rb | 26 +- lib/plaid/models/beacon_audit_trail.rb | 26 +- lib/plaid/models/beacon_audit_trail_source.rb | 4 +- .../beacon_duplicate_detected_webhook.rb | 292 ++++++++++++++++++ lib/plaid/models/beacon_match_summary_code.rb | 4 +- lib/plaid/models/beacon_report.rb | 26 +- .../models/beacon_report_create_request.rb | 26 +- .../models/beacon_report_create_response.rb | 26 +- .../models/beacon_report_created_webhook.rb | 292 ++++++++++++++++++ .../models/beacon_report_list_request.rb | 4 +- .../models/beacon_report_list_response.rb | 4 +- lib/plaid/models/beacon_report_syndication.rb | 4 +- .../beacon_report_syndication_analysis.rb | 26 +- ...acon_report_syndication_created_webhook.rb | 292 ++++++++++++++++++ .../beacon_report_syndication_list_request.rb | 4 +- ...beacon_report_syndication_list_response.rb | 4 +- ...acon_report_syndication_original_report.rb | 26 +- lib/plaid/models/beacon_report_type.rb | 4 +- .../models/beacon_report_updated_webhook.rb | 292 ++++++++++++++++++ lib/plaid/models/beacon_user_address.rb | 4 +- .../models/beacon_user_create_request.rb | 4 +- .../models/beacon_user_create_response.rb | 26 +- lib/plaid/models/beacon_user_data.rb | 4 +- lib/plaid/models/beacon_user_get_request.rb | 4 +- lib/plaid/models/beacon_user_get_response.rb | 26 +- lib/plaid/models/beacon_user_id_number.rb | 26 +- lib/plaid/models/beacon_user_name.rb | 4 +- .../models/beacon_user_request_address.rb | 4 +- lib/plaid/models/beacon_user_request_data.rb | 4 +- .../models/beacon_user_review_request.rb | 26 +- lib/plaid/models/beacon_user_status.rb | 4 +- .../beacon_user_status_updated_webhook.rb | 26 +- lib/plaid/models/categories_get_response.rb | 4 +- lib/plaid/models/category.rb | 4 +- lib/plaid/models/category_insight_details.rb | 4 +- lib/plaid/models/category_insights.rb | 4 +- lib/plaid/models/cause.rb | 26 +- lib/plaid/models/cause_all_of.rb | 4 +- .../client_provided_enhanced_transaction.rb | 4 +- .../client_provided_enriched_transaction.rb | 26 +- .../models/client_provided_raw_transaction.rb | 4 +- .../models/client_provided_transaction.rb | 26 +- .../client_provided_transaction_location.rb | 4 +- lib/plaid/models/connected_application.rb | 4 +- .../consumer_report_permissible_purpose.rb | 4 +- .../models/consumer_report_user_identity.rb | 4 +- lib/plaid/models/counterparty.rb | 26 +- lib/plaid/models/counterparty_insights.rb | 4 +- lib/plaid/models/counterparty_type.rb | 4 +- lib/plaid/models/country_code.rb | 4 +- lib/plaid/models/cra_bank_income.rb | 4 +- lib/plaid/models/cra_bank_income_account.rb | 26 +- lib/plaid/models/cra_bank_income_cause.rb | 26 +- .../models/cra_bank_income_complete_result.rb | 4 +- .../cra_bank_income_complete_webhook.rb | 26 +- lib/plaid/models/cra_bank_income_employer.rb | 4 +- .../models/cra_bank_income_get_request.rb | 4 +- .../models/cra_bank_income_get_response.rb | 4 +- .../cra_bank_income_historical_summary.rb | 4 +- lib/plaid/models/cra_bank_income_item.rb | 4 +- lib/plaid/models/cra_bank_income_source.rb | 26 +- lib/plaid/models/cra_bank_income_summary.rb | 4 +- .../models/cra_bank_income_transaction.rb | 4 +- lib/plaid/models/cra_bank_income_warning.rb | 26 +- .../models/cra_bank_income_warning_code.rb | 4 +- lib/plaid/models/credit1099.rb | 26 +- lib/plaid/models/credit1099_filer.rb | 4 +- lib/plaid/models/credit1099_payer.rb | 4 +- lib/plaid/models/credit1099_recipient.rb | 4 +- lib/plaid/models/credit_account_subtype.rb | 4 +- lib/plaid/models/credit_ach_class.rb | 4 +- .../models/credit_amount_with_currency.rb | 4 +- .../credit_audit_copy_token_create_request.rb | 4 +- ...credit_audit_copy_token_create_response.rb | 4 +- .../credit_audit_copy_token_remove_request.rb | 4 +- ...credit_audit_copy_token_remove_response.rb | 4 +- .../credit_audit_copy_token_update_request.rb | 4 +- ...credit_audit_copy_token_update_response.rb | 4 +- lib/plaid/models/credit_bank_employer.rb | 4 +- lib/plaid/models/credit_bank_employment.rb | 4 +- .../credit_bank_employment_get_request.rb | 4 +- .../credit_bank_employment_get_response.rb | 4 +- .../models/credit_bank_employment_item.rb | 4 +- .../models/credit_bank_employment_report.rb | 4 +- .../models/credit_bank_employment_warning.rb | 26 +- .../credit_bank_employment_warning_type.rb | 4 +- lib/plaid/models/credit_bank_income.rb | 4 +- .../models/credit_bank_income_account.rb | 26 +- .../models/credit_bank_income_account_type.rb | 4 +- .../models/credit_bank_income_category.rb | 4 +- lib/plaid/models/credit_bank_income_cause.rb | 26 +- .../models/credit_bank_income_error_type.rb | 4 +- .../models/credit_bank_income_get_request.rb | 4 +- .../credit_bank_income_get_request_options.rb | 4 +- .../models/credit_bank_income_get_response.rb | 4 +- .../credit_bank_income_historical_summary.rb | 4 +- lib/plaid/models/credit_bank_income_item.rb | 4 +- .../credit_bank_income_pay_frequency.rb | 4 +- .../credit_bank_income_pdf_get_request.rb | 4 +- .../credit_bank_income_refresh_request.rb | 4 +- ...dit_bank_income_refresh_request_options.rb | 4 +- .../credit_bank_income_refresh_response.rb | 4 +- lib/plaid/models/credit_bank_income_source.rb | 26 +- .../models/credit_bank_income_summary.rb | 4 +- .../models/credit_bank_income_transaction.rb | 4 +- .../models/credit_bank_income_warning.rb | 26 +- .../models/credit_bank_income_warning_code.rb | 4 +- .../models/credit_bank_income_warning_type.rb | 4 +- ...edit_bank_income_webhook_update_request.rb | 4 +- ...dit_bank_income_webhook_update_response.rb | 4 +- ...dit_bank_statement_upload_account_owner.rb | 4 +- ..._statement_upload_account_owner_address.rb | 4 +- ...edit_bank_statement_upload_bank_account.rb | 4 +- ...nk_statement_upload_bank_account_period.rb | 4 +- .../credit_bank_statement_upload_item.rb | 4 +- .../credit_bank_statement_upload_object.rb | 4 +- ...redit_bank_statement_upload_transaction.rb | 4 +- ...dit_bank_statements_uploads_get_request.rb | 4 +- ...it_bank_statements_uploads_get_response.rb | 4 +- lib/plaid/models/credit_card_liability.rb | 4 +- lib/plaid/models/credit_category.rb | 4 +- lib/plaid/models/credit_document_metadata.rb | 4 +- .../models/credit_employer_verification.rb | 4 +- .../models/credit_employment_get_request.rb | 4 +- .../models/credit_employment_get_response.rb | 4 +- lib/plaid/models/credit_employment_item.rb | 4 +- .../models/credit_employment_verification.rb | 4 +- lib/plaid/models/credit_filter.rb | 4 +- lib/plaid/models/credit_freddie_mac_asset.rb | 4 +- .../credit_freddie_mac_asset_transaction.rb | 4 +- .../credit_freddie_mac_asset_transactions.rb | 4 +- lib/plaid/models/credit_freddie_mac_assets.rb | 4 +- .../credit_freddie_mac_individual_name.rb | 4 +- lib/plaid/models/credit_freddie_mac_loan.rb | 4 +- .../credit_freddie_mac_loan_identifiers.rb | 4 +- lib/plaid/models/credit_freddie_mac_loans.rb | 4 +- .../models/credit_freddie_mac_parties.rb | 4 +- lib/plaid/models/credit_freddie_mac_party.rb | 4 +- .../credit_freddie_mac_party_individual.rb | 4 +- ...redit_freddie_mac_reporting_information.rb | 4 +- .../credit_freddie_mac_reports_get_request.rb | 4 +- ...credit_freddie_mac_reports_get_response.rb | 4 +- .../models/credit_freddie_mac_service.rb | 4 +- .../models/credit_freddie_mac_services.rb | 4 +- ...redit_freddie_mac_verification_of_asset.rb | 4 +- ...ddie_mac_verification_of_asset_response.rb | 4 +- ...freddie_mac_verification_of_assets_deal.rb | 4 +- lib/plaid/models/credit_pay_stub.rb | 4 +- lib/plaid/models/credit_pay_stub_address.rb | 4 +- .../models/credit_pay_stub_deductions.rb | 4 +- lib/plaid/models/credit_pay_stub_earnings.rb | 4 +- lib/plaid/models/credit_pay_stub_employee.rb | 4 +- lib/plaid/models/credit_pay_stub_employer.rb | 4 +- lib/plaid/models/credit_pay_stub_net_pay.rb | 4 +- .../models/credit_pay_stub_pay_basis_type.rb | 4 +- .../credit_payroll_income_get_request.rb | 4 +- .../credit_payroll_income_get_response.rb | 4 +- ...ll_income_parsing_config_update_request.rb | 4 +- ...l_income_parsing_config_update_response.rb | 4 +- .../credit_payroll_income_precheck_request.rb | 4 +- ...credit_payroll_income_precheck_response.rb | 26 +- .../credit_payroll_income_refresh_request.rb | 4 +- ..._payroll_income_refresh_request_options.rb | 4 +- .../credit_payroll_income_refresh_response.rb | 4 +- ...payroll_income_risk_signals_get_request.rb | 4 +- ...ayroll_income_risk_signals_get_response.rb | 4 +- lib/plaid/models/credit_platform_ids.rb | 4 +- .../models/credit_relay_create_request.rb | 4 +- .../models/credit_relay_create_response.rb | 4 +- lib/plaid/models/credit_relay_get_request.rb | 26 +- .../models/credit_relay_pdf_get_request.rb | 26 +- .../models/credit_relay_refresh_request.rb | 26 +- .../models/credit_relay_refresh_response.rb | 4 +- .../models/credit_relay_remove_request.rb | 4 +- .../models/credit_relay_remove_response.rb | 4 +- lib/plaid/models/credit_session.rb | 4 +- .../credit_session_bank_employment_result.rb | 26 +- .../credit_session_bank_employment_status.rb | 4 +- .../credit_session_bank_income_result.rb | 26 +- .../credit_session_bank_income_status.rb | 4 +- .../credit_session_document_income_result.rb | 4 +- lib/plaid/models/credit_session_error.rb | 4 +- .../models/credit_session_item_add_result.rb | 4 +- .../credit_session_payroll_income_result.rb | 4 +- lib/plaid/models/credit_session_results.rb | 4 +- .../models/credit_sessions_get_request.rb | 4 +- .../models/credit_sessions_get_response.rb | 4 +- lib/plaid/models/credit_w2.rb | 4 +- .../models/customer_initiated_return_risk.rb | 4 +- lib/plaid/models/dashboard_user.rb | 26 +- .../models/dashboard_user_get_request.rb | 4 +- .../models/dashboard_user_get_response.rb | 26 +- .../models/dashboard_user_list_request.rb | 4 +- .../models/dashboard_user_list_response.rb | 4 +- lib/plaid/models/dashboard_user_status.rb | 4 +- lib/plaid/models/date_range.rb | 4 +- lib/plaid/models/deductions.rb | 4 +- lib/plaid/models/deductions_breakdown.rb | 4 +- lib/plaid/models/deductions_total.rb | 4 +- lib/plaid/models/default_update_webhook.rb | 26 +- .../models/deposit_switch_address_data.rb | 4 +- .../deposit_switch_alt_create_request.rb | 4 +- .../deposit_switch_alt_create_response.rb | 4 +- .../models/deposit_switch_create_request.rb | 4 +- .../deposit_switch_create_request_options.rb | 4 +- .../models/deposit_switch_create_response.rb | 4 +- .../models/deposit_switch_get_request.rb | 4 +- .../models/deposit_switch_get_response.rb | 4 +- .../deposit_switch_state_update_webhook.rb | 26 +- .../models/deposit_switch_target_account.rb | 4 +- .../models/deposit_switch_target_user.rb | 4 +- .../deposit_switch_token_create_request.rb | 4 +- .../deposit_switch_token_create_response.rb | 4 +- .../models/depository_account_subtype.rb | 4 +- lib/plaid/models/depository_filter.rb | 4 +- lib/plaid/models/detailed_originator.rb | 26 +- lib/plaid/models/detected_account.rb | 4 +- lib/plaid/models/distribution_breakdown.rb | 4 +- lib/plaid/models/doc_type.rb | 4 +- lib/plaid/models/document_analysis.rb | 26 +- .../document_authenticity_match_code.rb | 4 +- .../document_date_of_birth_match_code.rb | 4 +- lib/plaid/models/document_metadata.rb | 26 +- lib/plaid/models/document_name_match_code.rb | 4 +- lib/plaid/models/document_risk_signal.rb | 4 +- ...cument_risk_signal_institution_metadata.rb | 4 +- .../models/document_risk_signals_object.rb | 4 +- lib/plaid/models/document_risk_summary.rb | 4 +- lib/plaid/models/document_status.rb | 4 +- lib/plaid/models/documentary_verification.rb | 4 +- .../documentary_verification_document.rb | 26 +- lib/plaid/models/earnings.rb | 4 +- lib/plaid/models/earnings_breakdown.rb | 26 +- ...arnings_breakdown_canonical_description.rb | 4 +- lib/plaid/models/earnings_total.rb | 4 +- lib/plaid/models/email.rb | 4 +- lib/plaid/models/email_address_match_score.rb | 4 +- lib/plaid/models/employee.rb | 4 +- .../employee_income_summary_field_string.rb | 26 +- lib/plaid/models/employer.rb | 4 +- .../employer_income_summary_field_string.rb | 26 +- lib/plaid/models/employer_verification.rb | 4 +- lib/plaid/models/employers_search_request.rb | 4 +- lib/plaid/models/employers_search_response.rb | 4 +- lib/plaid/models/employment_details.rb | 4 +- lib/plaid/models/employment_source_type.rb | 4 +- lib/plaid/models/employment_verification.rb | 26 +- .../employment_verification_get_request.rb | 4 +- .../employment_verification_get_response.rb | 4 +- .../models/employment_verification_status.rb | 4 +- lib/plaid/models/enhancements.rb | 26 +- .../models/enrich_transaction_direction.rb | 4 +- lib/plaid/models/enrichments.rb | 26 +- lib/plaid/models/entity_document.rb | 26 +- lib/plaid/models/entity_document_type.rb | 4 +- .../models/entity_screening_hit_analysis.rb | 26 +- lib/plaid/models/entity_screening_hit_data.rb | 4 +- .../entity_screening_hit_documents_items.rb | 4 +- .../models/entity_screening_hit_emails.rb | 4 +- .../entity_screening_hit_emails_items.rb | 4 +- .../models/entity_screening_hit_names.rb | 26 +- .../entity_screening_hit_names_items.rb | 4 +- .../entity_screening_hit_phone_numbers.rb | 26 +- lib/plaid/models/entity_screening_hit_urls.rb | 4 +- .../models/entity_screening_hit_urls_items.rb | 4 +- ...ntity_screening_hits_phone_number_items.rb | 4 +- ...entity_screening_status_updated_webhook.rb | 26 +- lib/plaid/models/entity_watchlist_code.rb | 4 +- lib/plaid/models/entity_watchlist_program.rb | 26 +- .../models/entity_watchlist_screening.rb | 26 +- .../models/entity_watchlist_screening_hit.rb | 26 +- .../entity_watchlist_screening_review.rb | 4 +- ...entity_watchlist_screening_search_terms.rb | 4 +- .../models/entity_watchlist_search_terms.rb | 4 +- lib/plaid/models/expiration_date.rb | 4 +- ...rnal_payment_initiation_consent_options.rb | 4 +- lib/plaid/models/external_payment_options.rb | 26 +- .../models/external_payment_refund_details.rb | 4 +- .../models/external_payment_schedule_base.rb | 26 +- .../models/external_payment_schedule_get.rb | 26 +- .../external_payment_schedule_request.rb | 26 +- ...auth_microdeposit_auto_verified_webhook.rb | 26 +- ...crodeposit_verification_expired_webhook.rb | 26 +- lib/plaid/models/fdx_content_types.rb | 4 +- lib/plaid/models/fdx_hateoas_link.rb | 26 +- lib/plaid/models/fdx_hateoas_link_action.rb | 4 +- .../models/fdx_initiator_fi_attribute.rb | 26 +- lib/plaid/models/fdx_notification.rb | 26 +- lib/plaid/models/fdx_notification_category.rb | 4 +- lib/plaid/models/fdx_notification_payload.rb | 26 +- .../fdx_notification_payload_id_type.rb | 4 +- lib/plaid/models/fdx_notification_priority.rb | 4 +- lib/plaid/models/fdx_notification_severity.rb | 4 +- lib/plaid/models/fdx_notification_type.rb | 4 +- lib/plaid/models/fdx_party.rb | 26 +- lib/plaid/models/fdx_party_registry.rb | 4 +- lib/plaid/models/fdx_party_type.rb | 4 +- lib/plaid/models/fdxfi_attribute.rb | 4 +- .../models/financial_institution_insights.rb | 4 +- lib/plaid/models/form1099_type.rb | 4 +- lib/plaid/models/fraud_amount.rb | 26 +- .../generic_screening_hit_location_items.rb | 4 +- lib/plaid/models/health_incident.rb | 4 +- lib/plaid/models/historical_balance.rb | 4 +- lib/plaid/models/historical_update_webhook.rb | 26 +- lib/plaid/models/holding.rb | 4 +- .../models/holdings_default_update_webhook.rb | 26 +- lib/plaid/models/holdings_override.rb | 4 +- .../models/hosted_link_delivery_method.rb | 4 +- lib/plaid/models/id_number_type.rb | 4 +- .../models/identity_default_update_webhook.rb | 26 +- lib/plaid/models/identity_get_request.rb | 4 +- .../models/identity_get_request_options.rb | 4 +- lib/plaid/models/identity_get_response.rb | 4 +- lib/plaid/models/identity_match_request.rb | 4 +- .../models/identity_match_request_options.rb | 4 +- lib/plaid/models/identity_match_response.rb | 4 +- lib/plaid/models/identity_match_user.rb | 4 +- lib/plaid/models/identity_refresh_request.rb | 4 +- lib/plaid/models/identity_refresh_response.rb | 4 +- lib/plaid/models/identity_update_types.rb | 4 +- lib/plaid/models/identity_verification.rb | 26 +- .../identity_verification_create_request.rb | 4 +- ...entity_verification_create_request_user.rb | 4 +- .../identity_verification_create_response.rb | 26 +- ..._verification_document_address_response.rb | 4 +- .../identity_verification_get_request.rb | 4 +- .../identity_verification_get_response.rb | 26 +- .../identity_verification_list_request.rb | 4 +- .../identity_verification_list_response.rb | 4 +- .../identity_verification_request_user.rb | 4 +- ...identity_verification_request_user_name.rb | 4 +- ...dentity_verification_response_user_name.rb | 4 +- .../identity_verification_retried_webhook.rb | 26 +- .../identity_verification_retry_request.rb | 26 +- ...verification_retry_request_steps_object.rb | 4 +- .../identity_verification_retry_response.rb | 26 +- .../models/identity_verification_status.rb | 4 +- ...ity_verification_status_updated_webhook.rb | 26 +- .../identity_verification_step_status.rb | 4 +- .../identity_verification_step_summary.rb | 26 +- ...ntity_verification_step_updated_webhook.rb | 26 +- ...dentity_verification_template_reference.rb | 4 +- .../identity_verification_user_address.rb | 4 +- .../models/identity_verification_user_data.rb | 4 +- lib/plaid/models/image_quality.rb | 4 +- lib/plaid/models/incident_update.rb | 4 +- lib/plaid/models/income_breakdown.rb | 26 +- lib/plaid/models/income_breakdown_type.rb | 4 +- lib/plaid/models/income_override.rb | 4 +- lib/plaid/models/income_summary.rb | 4 +- .../models/income_summary_field_number.rb | 26 +- .../models/income_summary_field_string.rb | 26 +- .../income_verification_create_request.rb | 4 +- ...ome_verification_create_request_options.rb | 4 +- .../income_verification_create_response.rb | 4 +- .../income_verification_doc_parsing_config.rb | 4 +- ...verification_documents_download_request.rb | 4 +- .../income_verification_payroll_flow_type.rb | 4 +- ...ncome_verification_paystubs_get_request.rb | 4 +- ...come_verification_paystubs_get_response.rb | 4 +- ...income_verification_precheck_confidence.rb | 4 +- .../income_verification_precheck_employer.rb | 4 +- ..._verification_precheck_employer_address.rb | 4 +- ...fication_precheck_employer_address_data.rb | 4 +- ...ome_verification_precheck_military_info.rb | 4 +- ...rification_precheck_payroll_institution.rb | 4 +- .../income_verification_precheck_request.rb | 4 +- .../income_verification_precheck_response.rb | 26 +- .../income_verification_precheck_user.rb | 4 +- ...cation_refresh_reconnect_needed_webhook.rb | 26 +- ...erification_risk_signals_status_webhook.rb | 26 +- .../models/income_verification_source_type.rb | 4 +- .../income_verification_status_webhook.rb | 26 +- ...ncome_verification_taxforms_get_request.rb | 4 +- ...come_verification_taxforms_get_response.rb | 4 +- .../income_verification_webhook_status.rb | 4 +- lib/plaid/models/individual_name.rb | 4 +- .../models/individual_screening_hit_names.rb | 26 +- lib/plaid/models/individual_watchlist_code.rb | 4 +- .../models/individual_watchlist_program.rb | 26 +- lib/plaid/models/inflow_model.rb | 4 +- lib/plaid/models/initial_update_webhook.rb | 26 +- lib/plaid/models/institution.rb | 4 +- lib/plaid/models/institution_status.rb | 4 +- .../institution_status_alert_webhook.rb | 26 +- .../models/institution_supported_networks.rb | 4 +- .../models/institutions_get_by_id_request.rb | 4 +- .../institutions_get_by_id_request_options.rb | 4 +- .../models/institutions_get_by_id_response.rb | 4 +- lib/plaid/models/institutions_get_request.rb | 4 +- .../institutions_get_request_options.rb | 4 +- lib/plaid/models/institutions_get_response.rb | 4 +- .../institutions_search_account_filter.rb | 4 +- ...tions_search_payment_initiation_options.rb | 4 +- .../models/institutions_search_request.rb | 10 +- .../institutions_search_request_options.rb | 4 +- .../models/institutions_search_response.rb | 4 +- .../models/investment_account_subtype.rb | 4 +- lib/plaid/models/investment_filter.rb | 4 +- ...investment_holdings_get_request_options.rb | 4 +- lib/plaid/models/investment_transaction.rb | 26 +- .../models/investment_transaction_subtype.rb | 4 +- .../models/investment_transaction_type.rb | 4 +- .../models/investments_auth_get_numbers.rb | 4 +- .../models/investments_auth_get_request.rb | 4 +- .../investments_auth_get_request_options.rb | 4 +- .../models/investments_auth_get_response.rb | 4 +- lib/plaid/models/investments_auth_owner.rb | 4 +- .../investments_default_update_webhook.rb | 26 +- .../investments_historical_update_webhook.rb | 26 +- .../investments_holdings_get_request.rb | 4 +- .../investments_holdings_get_response.rb | 4 +- .../models/investments_refresh_request.rb | 4 +- .../models/investments_refresh_response.rb | 4 +- .../investments_transactions_get_request.rb | 4 +- ...tments_transactions_get_request_options.rb | 4 +- .../investments_transactions_get_response.rb | 4 +- .../investments_transactions_override.rb | 4 +- lib/plaid/models/iso_currency_code.rb | 4 +- lib/plaid/models/issuing_country.rb | 4 +- lib/plaid/models/item.rb | 4 +- .../item_access_token_invalidate_request.rb | 4 +- .../item_access_token_invalidate_response.rb | 4 +- .../models/item_activity_list_request.rb | 4 +- .../models/item_activity_list_response.rb | 4 +- .../models/item_application_list_request.rb | 4 +- .../models/item_application_list_response.rb | 4 +- .../models/item_application_list_user_auth.rb | 4 +- .../item_application_scopes_update_request.rb | 26 +- ...item_application_scopes_update_response.rb | 4 +- .../models/item_application_unlink_request.rb | 4 +- .../item_application_unlink_response.rb | 4 +- lib/plaid/models/item_error_webhook.rb | 26 +- lib/plaid/models/item_get_request.rb | 4 +- lib/plaid/models/item_get_response.rb | 4 +- lib/plaid/models/item_import_request.rb | 4 +- .../models/item_import_request_options.rb | 4 +- .../models/item_import_request_user_auth.rb | 4 +- lib/plaid/models/item_import_response.rb | 4 +- .../models/item_login_repaired_webhook.rb | 26 +- .../models/item_product_ready_webhook.rb | 26 +- .../item_public_token_create_request.rb | 4 +- .../item_public_token_create_response.rb | 4 +- .../item_public_token_exchange_request.rb | 4 +- .../item_public_token_exchange_response.rb | 4 +- lib/plaid/models/item_remove_request.rb | 4 +- lib/plaid/models/item_remove_response.rb | 4 +- lib/plaid/models/item_status.rb | 4 +- lib/plaid/models/item_status_investments.rb | 4 +- lib/plaid/models/item_status_last_webhook.rb | 4 +- lib/plaid/models/item_status_nullable.rb | 4 +- lib/plaid/models/item_status_transactions.rb | 4 +- .../models/item_webhook_update_request.rb | 4 +- .../models/item_webhook_update_response.rb | 4 +- lib/plaid/models/jwk_public_key.rb | 4 +- lib/plaid/models/jwt_header.rb | 4 +- lib/plaid/models/kyc_check_address_summary.rb | 26 +- .../models/kyc_check_date_of_birth_summary.rb | 26 +- lib/plaid/models/kyc_check_details.rb | 4 +- .../models/kyc_check_id_number_summary.rb | 26 +- lib/plaid/models/kyc_check_name_summary.rb | 26 +- lib/plaid/models/kyc_check_phone_summary.rb | 26 +- lib/plaid/models/last_data_access_times.rb | 4 +- .../liabilities_default_update_webhook.rb | 26 +- lib/plaid/models/liabilities_get_request.rb | 4 +- .../models/liabilities_get_request_options.rb | 4 +- lib/plaid/models/liabilities_get_response.rb | 4 +- lib/plaid/models/liabilities_object.rb | 4 +- lib/plaid/models/liability_override.rb | 4 +- lib/plaid/models/link_callback_metadata.rb | 26 +- lib/plaid/models/link_delivery_account.rb | 26 +- .../models/link_delivery_callback_webhook.rb | 4 +- .../link_delivery_communication_method.rb | 26 +- .../models/link_delivery_create_request.rb | 4 +- .../models/link_delivery_create_response.rb | 4 +- .../models/link_delivery_delivery_method.rb | 4 +- lib/plaid/models/link_delivery_get_request.rb | 4 +- .../models/link_delivery_get_response.rb | 26 +- lib/plaid/models/link_delivery_institution.rb | 4 +- lib/plaid/models/link_delivery_metadata.rb | 26 +- lib/plaid/models/link_delivery_options.rb | 4 +- lib/plaid/models/link_delivery_recipient.rb | 4 +- .../models/link_delivery_session_status.rb | 4 +- .../link_delivery_verification_status.rb | 4 +- .../link_delivery_webhook_callback_type.rb | 4 +- ...k_delivery_webhook_communication_method.rb | 4 +- .../link_delivery_webhook_delivery_status.rb | 4 +- lib/plaid/models/link_event.rb | 4 +- lib/plaid/models/link_event_metadata.rb | 4 +- lib/plaid/models/link_event_name.rb | 4 +- lib/plaid/models/link_events_webhook.rb | 4 +- ..._o_auth_correlation_id_exchange_request.rb | 4 +- ...o_auth_correlation_id_exchange_response.rb | 4 +- lib/plaid/models/link_session_exit.rb | 4 +- .../models/link_session_exit_metadata.rb | 4 +- .../link_session_exit_metadata_institution.rb | 4 +- .../models/link_session_finished_webhook.rb | 4 +- lib/plaid/models/link_session_success.rb | 4 +- .../models/link_session_success_metadata.rb | 26 +- .../link_session_success_metadata_account.rb | 4 +- ...nk_session_success_metadata_institution.rb | 4 +- ...ession_success_metadata_transfer_status.rb | 4 +- .../models/link_token_account_filters.rb | 4 +- .../models/link_token_create_credit_filter.rb | 4 +- .../link_token_create_depository_filter.rb | 4 +- .../models/link_token_create_hosted_link.rb | 26 +- .../link_token_create_institution_data.rb | 4 +- .../link_token_create_investment_filter.rb | 4 +- .../models/link_token_create_loan_filter.rb | 4 +- lib/plaid/models/link_token_create_request.rb | 37 ++- ...k_token_create_request_account_subtypes.rb | 4 +- .../models/link_token_create_request_auth.rb | 4 +- .../link_token_create_request_base_report.rb | 4 +- ...ink_token_create_request_deposit_switch.rb | 4 +- .../link_token_create_request_employment.rb | 4 +- ...n_create_request_employment_bank_income.rb | 4 +- ...en_create_request_identity_verification.rb | 4 +- ...oken_create_request_income_verification.rb | 4 +- ...request_income_verification_bank_income.rb | 4 +- ...uest_income_verification_payroll_income.rb | 4 +- ...token_create_request_payment_initiation.rb | 4 +- .../link_token_create_request_statements.rb | 6 +- .../link_token_create_request_transfer.rb | 4 +- .../link_token_create_request_update.rb | 4 +- .../models/link_token_create_request_user.rb | 4 +- .../link_token_create_request_user_address.rb | 4 +- ...ink_token_create_request_user_id_number.rb | 26 +- .../link_token_create_request_user_name.rb | 4 +- ...reate_request_user_stated_income_source.rb | 26 +- .../models/link_token_create_response.rb | 4 +- lib/plaid/models/link_token_eu_config.rb | 4 +- .../link_token_get_metadata_response.rb | 4 +- lib/plaid/models/link_token_get_request.rb | 4 +- lib/plaid/models/link_token_get_response.rb | 4 +- .../link_token_get_sessions_response.rb | 4 +- lib/plaid/models/link_token_investments.rb | 4 +- .../models/link_token_investments_auth.rb | 4 +- lib/plaid/models/link_token_transactions.rb | 249 +++++++++++++++ .../link_user_delivery_status_webhook.rb | 4 +- lib/plaid/models/loan.rb | 4 +- lib/plaid/models/loan_account_subtype.rb | 4 +- lib/plaid/models/loan_filter.rb | 4 +- lib/plaid/models/loan_identifier.rb | 26 +- lib/plaid/models/loan_identifier_type.rb | 4 +- lib/plaid/models/loan_identifiers.rb | 4 +- lib/plaid/models/loans.rb | 4 +- lib/plaid/models/location.rb | 4 +- lib/plaid/models/match_summary.rb | 26 +- lib/plaid/models/match_summary_code.rb | 4 +- lib/plaid/models/merchant_insights.rb | 4 +- lib/plaid/models/meta.rb | 4 +- lib/plaid/models/mfa.rb | 4 +- lib/plaid/models/mortgage_interest_rate.rb | 4 +- lib/plaid/models/mortgage_liability.rb | 4 +- lib/plaid/models/mortgage_property_address.rb | 4 +- .../models/multi_document_risk_signal.rb | 4 +- lib/plaid/models/name_match_score.rb | 4 +- lib/plaid/models/net_pay.rb | 4 +- .../models/new_accounts_available_webhook.rb | 26 +- lib/plaid/models/numbers.rb | 4 +- lib/plaid/models/numbers_acats.rb | 4 +- lib/plaid/models/numbers_ach.rb | 4 +- lib/plaid/models/numbers_ach_nullable.rb | 4 +- lib/plaid/models/numbers_aton.rb | 4 +- lib/plaid/models/numbers_bacs.rb | 4 +- lib/plaid/models/numbers_bacs_nullable.rb | 4 +- lib/plaid/models/numbers_eft.rb | 4 +- lib/plaid/models/numbers_eft_nullable.rb | 4 +- lib/plaid/models/numbers_iban_nullable.rb | 4 +- lib/plaid/models/numbers_international.rb | 4 +- .../models/numbers_international_iban.rb | 4 +- .../models/numbers_international_nullable.rb | 4 +- lib/plaid/models/omittable_transfer_type.rb | 4 +- lib/plaid/models/originator.rb | 26 +- .../originator_expected_transfer_frequency.rb | 4 +- lib/plaid/models/other_account_subtype.rb | 4 +- lib/plaid/models/other_filter.rb | 4 +- lib/plaid/models/override_account_type.rb | 4 +- lib/plaid/models/override_accounts.rb | 26 +- lib/plaid/models/owner.rb | 4 +- lib/plaid/models/owner_override.rb | 4 +- lib/plaid/models/ownership_type.rb | 4 +- lib/plaid/models/parties.rb | 4 +- .../models/partner_customer_create_request.rb | 4 +- .../partner_customer_create_response.rb | 4 +- .../models/partner_customer_enable_request.rb | 4 +- .../partner_customer_enable_response.rb | 4 +- .../models/partner_customer_get_request.rb | 4 +- .../models/partner_customer_get_response.rb | 4 +- ...ustomer_o_auth_institutions_get_request.rb | 4 +- ...stomer_o_auth_institutions_get_response.rb | 26 +- .../models/partner_customer_remove_request.rb | 4 +- .../partner_customer_remove_response.rb | 4 +- lib/plaid/models/partner_end_customer.rb | 26 +- .../models/partner_end_customer_address.rb | 4 +- ...er_end_customer_assets_under_management.rb | 4 +- .../partner_end_customer_billing_contact.rb | 4 +- ...tner_end_customer_customer_support_info.rb | 4 +- .../partner_end_customer_flowdown_status.rb | 4 +- ...partner_end_customer_o_auth_institution.rb | 4 +- ...r_o_auth_institution_application_status.rb | 4 +- ...ustomer_o_auth_institution_environments.rb | 26 +- ...d_customer_o_auth_status_updated_values.rb | 4 +- ..._customer_o_auth_status_updated_webhook.rb | 26 +- ...rtner_end_customer_questionnaire_status.rb | 4 +- .../models/partner_end_customer_secrets.rb | 4 +- .../models/partner_end_customer_status.rb | 4 +- .../partner_end_customer_technical_contact.rb | 4 +- .../partner_end_customer_with_secrets.rb | 26 +- ...artner_end_customer_with_secrets_all_of.rb | 4 +- lib/plaid/models/party.rb | 4 +- lib/plaid/models/party_individual.rb | 4 +- lib/plaid/models/party_role_type.rb | 4 +- lib/plaid/models/pay.rb | 4 +- lib/plaid/models/pay_frequency.rb | 26 +- lib/plaid/models/pay_frequency_value.rb | 4 +- lib/plaid/models/pay_period_details.rb | 4 +- .../models/pay_stub_deductions_breakdown.rb | 4 +- lib/plaid/models/pay_stub_deductions_total.rb | 4 +- .../models/pay_stub_distribution_breakdown.rb | 4 +- .../models/pay_stub_earnings_breakdown.rb | 4 +- lib/plaid/models/pay_stub_earnings_total.rb | 4 +- .../models/pay_stub_pay_period_details.rb | 26 +- lib/plaid/models/pay_stub_taxpayer_id.rb | 4 +- lib/plaid/models/payment_amount.rb | 26 +- lib/plaid/models/payment_amount_currency.rb | 4 +- lib/plaid/models/payment_amount_nullable.rb | 26 +- lib/plaid/models/payment_amount_refunded.rb | 26 +- lib/plaid/models/payment_amount_to_refund.rb | 26 +- lib/plaid/models/payment_channel.rb | 4 +- .../payment_consent_max_payment_amount.rb | 26 +- .../payment_consent_periodic_alignment.rb | 4 +- .../models/payment_consent_periodic_amount.rb | 26 +- .../payment_consent_periodic_amount_amount.rb | 26 +- .../payment_consent_periodic_interval.rb | 4 +- .../models/payment_consent_valid_date_time.rb | 4 +- .../models/payment_initiation_address.rb | 4 +- .../models/payment_initiation_consent.rb | 26 +- .../payment_initiation_consent_constraints.rb | 4 +- ...yment_initiation_consent_create_request.rb | 4 +- ...ment_initiation_consent_create_response.rb | 26 +- .../payment_initiation_consent_get_request.rb | 4 +- ...payment_initiation_consent_get_response.rb | 26 +- ...tiation_consent_payment_execute_request.rb | 4 +- ...iation_consent_payment_execute_response.rb | 26 +- ...yment_initiation_consent_revoke_request.rb | 4 +- ...ment_initiation_consent_revoke_response.rb | 4 +- .../payment_initiation_consent_scope.rb | 4 +- .../payment_initiation_consent_status.rb | 4 +- .../models/payment_initiation_metadata.rb | 4 +- ...nt_initiation_optional_restriction_bacs.rb | 4 +- .../models/payment_initiation_payment.rb | 26 +- ...yment_initiation_payment_create_request.rb | 4 +- ...ment_initiation_payment_create_response.rb | 26 +- ...ayment_initiation_payment_create_status.rb | 4 +- .../payment_initiation_payment_get_request.rb | 4 +- ...payment_initiation_payment_get_response.rb | 26 +- ...payment_initiation_payment_list_request.rb | 4 +- ...ayment_initiation_payment_list_response.rb | 4 +- ...ment_initiation_payment_reverse_request.rb | 4 +- ...ent_initiation_payment_reverse_response.rb | 26 +- .../payment_initiation_payment_status.rb | 4 +- ...initiation_payment_token_create_request.rb | 4 +- ...nitiation_payment_token_create_response.rb | 4 +- .../models/payment_initiation_recipient.rb | 4 +- ...ent_initiation_recipient_create_request.rb | 4 +- ...nt_initiation_recipient_create_response.rb | 4 +- ...ayment_initiation_recipient_get_request.rb | 4 +- ...yment_initiation_recipient_get_response.rb | 4 +- ...nitiation_recipient_get_response_all_of.rb | 4 +- ...yment_initiation_recipient_list_request.rb | 4 +- ...ment_initiation_recipient_list_response.rb | 4 +- ...ment_initiation_standing_order_metadata.rb | 4 +- lib/plaid/models/payment_meta.rb | 4 +- .../models/payment_profile_create_request.rb | 4 +- .../models/payment_profile_create_response.rb | 4 +- .../models/payment_profile_get_request.rb | 4 +- .../models/payment_profile_get_response.rb | 26 +- .../models/payment_profile_remove_request.rb | 4 +- .../models/payment_profile_remove_response.rb | 4 +- lib/plaid/models/payment_profile_status.rb | 4 +- lib/plaid/models/payment_schedule_interval.rb | 4 +- lib/plaid/models/payment_scheme.rb | 4 +- .../models/payment_status_update_webhook.rb | 26 +- .../models/payroll_income_account_data.rb | 4 +- lib/plaid/models/payroll_income_object.rb | 4 +- .../models/payroll_income_rate_of_pay.rb | 4 +- lib/plaid/models/payroll_item.rb | 4 +- lib/plaid/models/payroll_item_status.rb | 4 +- lib/plaid/models/payroll_risk_signals_item.rb | 4 +- lib/plaid/models/paystub.rb | 4 +- lib/plaid/models/paystub_address.rb | 4 +- lib/plaid/models/paystub_deduction.rb | 4 +- lib/plaid/models/paystub_details.rb | 26 +- lib/plaid/models/paystub_employer.rb | 4 +- lib/plaid/models/paystub_override.rb | 4 +- lib/plaid/models/paystub_override_employee.rb | 4 +- .../paystub_override_employee_address.rb | 4 +- lib/plaid/models/paystub_override_employer.rb | 4 +- lib/plaid/models/paystub_pay_frequency.rb | 4 +- lib/plaid/models/paystub_ytd_details.rb | 4 +- .../models/pending_expiration_webhook.rb | 26 +- lib/plaid/models/personal_finance_category.rb | 4 +- lib/plaid/models/phone_number.rb | 4 +- lib/plaid/models/phone_number_match_score.rb | 4 +- lib/plaid/models/phone_type.rb | 4 +- .../models/physical_document_category.rb | 4 +- .../physical_document_extracted_data.rb | 26 +- ...ysical_document_extracted_data_analysis.rb | 26 +- lib/plaid/models/physical_document_images.rb | 4 +- lib/plaid/models/plaid_error.rb | 26 +- lib/plaid/models/plaid_error_type.rb | 4 +- lib/plaid/models/platform_ids.rb | 4 +- lib/plaid/models/po_box_status.rb | 4 +- .../models/processor_account_get_request.rb | 4 +- .../models/processor_account_get_response.rb | 4 +- ...sor_apex_processor_token_create_request.rb | 4 +- .../models/processor_auth_get_request.rb | 4 +- .../models/processor_auth_get_response.rb | 4 +- .../models/processor_balance_get_request.rb | 4 +- .../processor_balance_get_request_options.rb | 4 +- .../models/processor_balance_get_response.rb | 4 +- .../processor_bank_transfer_create_request.rb | 26 +- ...processor_bank_transfer_create_response.rb | 4 +- .../processor_default_update_webhook.rb | 26 +- .../processor_historical_update_webhook.rb | 26 +- .../models/processor_identity_get_request.rb | 4 +- .../models/processor_identity_get_response.rb | 4 +- .../processor_identity_match_request.rb | 4 +- .../processor_identity_match_response.rb | 4 +- .../processor_initial_update_webhook.rb | 26 +- lib/plaid/models/processor_number.rb | 4 +- ...r_recurring_transactions_update_webhook.rb | 26 +- ...rocessor_signal_decision_report_request.rb | 26 +- ...ocessor_signal_decision_report_response.rb | 4 +- .../processor_signal_evaluate_request.rb | 4 +- .../processor_signal_evaluate_response.rb | 4 +- .../processor_signal_prepare_request.rb | 4 +- .../processor_signal_prepare_response.rb | 4 +- .../processor_signal_return_report_request.rb | 4 +- ...processor_signal_return_report_response.rb | 4 +- ...tripe_bank_account_token_create_request.rb | 4 +- ...ripe_bank_account_token_create_response.rb | 4 +- ...rocessor_sync_updates_available_webhook.rb | 26 +- .../models/processor_token_create_request.rb | 8 +- .../models/processor_token_create_response.rb | 4 +- ...processor_token_permissions_get_request.rb | 4 +- ...rocessor_token_permissions_get_response.rb | 4 +- ...processor_token_permissions_set_request.rb | 4 +- ...rocessor_token_permissions_set_response.rb | 4 +- .../models/processor_token_webhook_update.rb | 26 +- .../processor_token_webhook_update_request.rb | 4 +- ...processor_token_webhook_update_response.rb | 4 +- .../processor_transactions_get_request.rb | 4 +- ...cessor_transactions_get_request_options.rb | 4 +- .../processor_transactions_get_response.rb | 4 +- ...ssor_transactions_recurring_get_request.rb | 4 +- ...sor_transactions_recurring_get_response.rb | 4 +- .../processor_transactions_refresh_request.rb | 4 +- ...processor_transactions_refresh_response.rb | 4 +- .../processor_transactions_removed_webhook.rb | 26 +- .../processor_transactions_sync_request.rb | 4 +- .../processor_transactions_sync_response.rb | 4 +- lib/plaid/models/product_access.rb | 4 +- ...oduct_permissions_required_auth_webhook.rb | 26 +- ...t_permissions_required_identity_webhook.rb | 26 +- lib/plaid/models/product_status.rb | 4 +- lib/plaid/models/product_status_breakdown.rb | 4 +- lib/plaid/models/products.rb | 4 +- lib/plaid/models/program_name_sensitivity.rb | 4 +- .../projected_income_summary_field_number.rb | 26 +- lib/plaid/models/proxy_type.rb | 4 +- lib/plaid/models/pslf_status.rb | 4 +- lib/plaid/models/recaptcha_required_error.rb | 4 +- lib/plaid/models/recipient_bacs.rb | 4 +- lib/plaid/models/recipient_bacs_nullable.rb | 4 +- lib/plaid/models/recurrence.rb | 26 +- .../models/recurring_cancelled_webhook.rb | 26 +- lib/plaid/models/recurring_frequency.rb | 4 +- lib/plaid/models/recurring_insights_stream.rb | 26 +- .../models/recurring_new_transfer_webhook.rb | 26 +- .../models/recurring_transaction_frequency.rb | 4 +- lib/plaid/models/recurring_transactions.rb | 4 +- .../recurring_transactions_update_webhook.rb | 26 +- lib/plaid/models/recurring_transfer.rb | 26 +- .../models/recurring_transfer_nullable.rb | 26 +- .../recurring_transfer_skipped_webhook.rb | 26 +- lib/plaid/models/removed_transaction.rb | 4 +- lib/plaid/models/report_type.rb | 4 +- lib/plaid/models/reporting_information.rb | 4 +- lib/plaid/models/risk_check_behavior.rb | 26 +- .../risk_check_behavior_bot_detected_label.rb | 4 +- ...heck_behavior_fraud_ring_detected_label.rb | 4 +- ..._check_behavior_user_interactions_label.rb | 4 +- lib/plaid/models/risk_check_details.rb | 26 +- lib/plaid/models/risk_check_device.rb | 26 +- lib/plaid/models/risk_check_email.rb | 26 +- .../risk_check_email_domain_is_custom.rb | 4 +- .../risk_check_email_domain_is_disposable.rb | 4 +- ...isk_check_email_domain_is_free_provider.rb | 4 +- .../risk_check_email_is_deliverable_status.rb | 4 +- ...ck_email_top_level_domain_is_suspicious.rb | 4 +- .../risk_check_identity_abuse_signals.rb | 4 +- lib/plaid/models/risk_check_linked_service.rb | 4 +- lib/plaid/models/risk_check_phone.rb | 4 +- .../models/risk_check_stolen_identity.rb | 4 +- .../models/risk_check_synthetic_identity.rb | 4 +- .../models/risk_signal_document_reference.rb | 26 +- .../models/risk_signal_document_status.rb | 4 +- lib/plaid/models/role.rb | 4 +- lib/plaid/models/role_detail.rb | 26 +- lib/plaid/models/roles.rb | 4 +- ...andbox_bank_income_fire_webhook_request.rb | 26 +- ...ndbox_bank_income_fire_webhook_response.rb | 4 +- ...ncome_webhook_fire_request_webhook_code.rb | 4 +- ...ome_webhook_fire_request_webhook_fields.rb | 26 +- ...dbox_bank_transfer_fire_webhook_request.rb | 4 +- ...box_bank_transfer_fire_webhook_response.rb | 4 +- .../sandbox_bank_transfer_simulate_request.rb | 4 +- ...sandbox_bank_transfer_simulate_response.rb | 4 +- .../sandbox_income_fire_webhook_request.rb | 4 +- .../sandbox_income_fire_webhook_response.rb | 4 +- ...ncome_webhook_fire_request_webhook_code.rb | 4 +- .../sandbox_item_fire_webhook_request.rb | 4 +- .../sandbox_item_fire_webhook_response.rb | 4 +- .../sandbox_item_reset_login_request.rb | 4 +- .../sandbox_item_reset_login_response.rb | 4 +- ...ox_item_set_verification_status_request.rb | 4 +- ...x_item_set_verification_status_response.rb | 4 +- .../sandbox_oauth_select_accounts_request.rb | 4 +- ...box_payment_profile_reset_login_request.rb | 4 +- ...ox_payment_profile_reset_login_response.rb | 4 +- .../sandbox_processor_token_create_request.rb | 4 +- ..._processor_token_create_request_options.rb | 4 +- ...sandbox_processor_token_create_response.rb | 4 +- .../sandbox_public_token_create_request.rb | 4 +- ...request_income_verification_bank_income.rb | 4 +- ...box_public_token_create_request_options.rb | 4 +- ...ate_request_options_income_verification.rb | 4 +- ...ken_create_request_options_transactions.rb | 50 ++- .../sandbox_public_token_create_response.rb | 4 +- .../sandbox_transfer_fire_webhook_request.rb | 4 +- .../sandbox_transfer_fire_webhook_response.rb | 4 +- ...ransfer_ledger_deposit_simulate_request.rb | 26 +- ...ansfer_ledger_deposit_simulate_response.rb | 4 +- ...nsfer_ledger_simulate_available_request.rb | 4 +- ...sfer_ledger_simulate_available_response.rb | 4 +- ...ansfer_ledger_withdraw_simulate_request.rb | 26 +- ...nsfer_ledger_withdraw_simulate_response.rb | 4 +- ...andbox_transfer_refund_simulate_request.rb | 4 +- ...ndbox_transfer_refund_simulate_response.rb | 4 +- ...box_transfer_repayment_simulate_request.rb | 4 +- ...ox_transfer_repayment_simulate_response.rb | 4 +- .../sandbox_transfer_simulate_request.rb | 4 +- .../sandbox_transfer_simulate_response.rb | 4 +- ...sandbox_transfer_sweep_simulate_request.rb | 4 +- ...andbox_transfer_sweep_simulate_response.rb | 4 +- ...box_transfer_test_clock_advance_request.rb | 4 +- ...ox_transfer_test_clock_advance_response.rb | 4 +- ...dbox_transfer_test_clock_create_request.rb | 4 +- ...box_transfer_test_clock_create_response.rb | 4 +- ...sandbox_transfer_test_clock_get_request.rb | 4 +- ...andbox_transfer_test_clock_get_response.rb | 4 +- ...andbox_transfer_test_clock_list_request.rb | 4 +- ...ndbox_transfer_test_clock_list_response.rb | 4 +- lib/plaid/models/scopes.rb | 4 +- lib/plaid/models/scopes_context.rb | 4 +- lib/plaid/models/scopes_nullable.rb | 4 +- lib/plaid/models/screening_hit_analysis.rb | 26 +- lib/plaid/models/screening_hit_data.rb | 4 +- .../screening_hit_date_of_birth_item.rb | 4 +- .../models/screening_hit_documents_items.rb | 4 +- lib/plaid/models/screening_hit_names_items.rb | 4 +- .../screening_status_updated_webhook.rb | 26 +- lib/plaid/models/security.rb | 4 +- lib/plaid/models/security_override.rb | 4 +- lib/plaid/models/selfie_analysis.rb | 26 +- .../selfie_analysis_document_comparison.rb | 4 +- lib/plaid/models/selfie_capture.rb | 4 +- lib/plaid/models/selfie_check.rb | 26 +- lib/plaid/models/selfie_check_selfie.rb | 26 +- lib/plaid/models/selfie_check_status.rb | 4 +- lib/plaid/models/selfie_status.rb | 4 +- lib/plaid/models/sender_bacs_nullable.rb | 4 +- lib/plaid/models/service.rb | 4 +- .../models/service_product_fulfillment.rb | 4 +- .../service_product_fulfillment_detail.rb | 26 +- .../service_product_fulfillment_identifier.rb | 4 +- lib/plaid/models/servicer_address_data.rb | 4 +- lib/plaid/models/services.rb | 4 +- lib/plaid/models/signal_address_data.rb | 4 +- lib/plaid/models/signal_decision_outcome.rb | 4 +- .../models/signal_decision_report_request.rb | 26 +- .../models/signal_decision_report_response.rb | 4 +- lib/plaid/models/signal_device.rb | 4 +- .../models/signal_evaluate_core_attributes.rb | 4 +- lib/plaid/models/signal_evaluate_request.rb | 4 +- lib/plaid/models/signal_evaluate_response.rb | 4 +- lib/plaid/models/signal_payment_method.rb | 4 +- lib/plaid/models/signal_person_name.rb | 4 +- lib/plaid/models/signal_prepare_request.rb | 4 +- lib/plaid/models/signal_prepare_response.rb | 4 +- .../models/signal_return_report_request.rb | 4 +- .../models/signal_return_report_response.rb | 4 +- lib/plaid/models/signal_scores.rb | 4 +- lib/plaid/models/signal_user.rb | 4 +- lib/plaid/models/signal_warning.rb | 4 +- lib/plaid/models/simulated_transfer_sweep.rb | 26 +- .../models/single_document_risk_signal.rb | 4 +- lib/plaid/models/source.rb | 4 +- lib/plaid/models/standalone_account_type.rb | 4 +- .../models/standalone_currency_code_list.rb | 4 +- .../standalone_investment_transaction_type.rb | 4 +- lib/plaid/models/statements_account.rb | 4 +- .../models/statements_download_request.rb | 4 +- lib/plaid/models/statements_list_request.rb | 4 +- lib/plaid/models/statements_list_response.rb | 4 +- .../models/statements_refresh_request.rb | 276 +++++++++++++++++ .../models/statements_refresh_response.rb | 226 ++++++++++++++ lib/plaid/models/statements_statement.rb | 4 +- lib/plaid/models/status.rb | 4 +- lib/plaid/models/statuses.rb | 4 +- lib/plaid/models/strategy.rb | 4 +- lib/plaid/models/student_loan.rb | 4 +- .../models/student_loan_repayment_model.rb | 4 +- lib/plaid/models/student_loan_status.rb | 4 +- lib/plaid/models/student_repayment_plan.rb | 4 +- lib/plaid/models/sweep_status.rb | 4 +- lib/plaid/models/sweep_trigger.rb | 4 +- .../models/sync_updates_available_webhook.rb | 26 +- lib/plaid/models/taxform.rb | 4 +- lib/plaid/models/taxpayer_id.rb | 4 +- lib/plaid/models/taxpayer_identifier.rb | 26 +- lib/plaid/models/taxpayer_identifier_type.rb | 4 +- lib/plaid/models/taxpayer_identifiers.rb | 4 +- lib/plaid/models/total.rb | 26 +- .../models/total_canonical_description.rb | 4 +- lib/plaid/models/transaction.rb | 4 +- lib/plaid/models/transaction_all_of.rb | 4 +- lib/plaid/models/transaction_base.rb | 4 +- lib/plaid/models/transaction_code.rb | 4 +- lib/plaid/models/transaction_counterparty.rb | 26 +- lib/plaid/models/transaction_data.rb | 4 +- lib/plaid/models/transaction_override.rb | 4 +- lib/plaid/models/transaction_stream.rb | 26 +- lib/plaid/models/transaction_stream_amount.rb | 4 +- lib/plaid/models/transaction_stream_status.rb | 4 +- .../models/transactions_category_rule.rb | 4 +- .../transactions_enhance_get_request.rb | 4 +- .../transactions_enhance_get_response.rb | 4 +- .../models/transactions_enrich_request.rb | 4 +- .../transactions_enrich_request_options.rb | 4 +- .../models/transactions_enrich_response.rb | 4 +- lib/plaid/models/transactions_get_request.rb | 4 +- .../transactions_get_request_options.rb | 50 ++- lib/plaid/models/transactions_get_response.rb | 4 +- .../transactions_recurring_create_input.rb | 4 +- .../transactions_recurring_create_request.rb | 4 +- .../transactions_recurring_create_response.rb | 4 +- .../transactions_recurring_get_request.rb | 4 +- ...nsactions_recurring_get_request_options.rb | 4 +- .../transactions_recurring_get_response.rb | 4 +- .../transactions_recurring_merge_input.rb | 4 +- .../transactions_recurring_merge_request.rb | 4 +- .../transactions_recurring_merge_response.rb | 4 +- .../transactions_recurring_update_input.rb | 4 +- .../transactions_recurring_update_request.rb | 4 +- .../transactions_recurring_update_response.rb | 4 +- .../models/transactions_refresh_request.rb | 4 +- .../models/transactions_refresh_response.rb | 4 +- .../models/transactions_removed_webhook.rb | 26 +- lib/plaid/models/transactions_rule_details.rb | 26 +- lib/plaid/models/transactions_rule_field.rb | 4 +- lib/plaid/models/transactions_rule_type.rb | 4 +- .../transactions_rules_create_request.rb | 4 +- .../transactions_rules_create_response.rb | 4 +- .../models/transactions_rules_list_request.rb | 4 +- .../transactions_rules_list_response.rb | 4 +- .../transactions_rules_remove_request.rb | 4 +- .../transactions_rules_remove_response.rb | 4 +- lib/plaid/models/transactions_sync_request.rb | 4 +- .../transactions_sync_request_options.rb | 50 ++- .../models/transactions_sync_response.rb | 4 +- .../transactions_user_insights_get_request.rb | 4 +- ...transactions_user_insights_get_response.rb | 4 +- lib/plaid/models/transfer.rb | 26 +- lib/plaid/models/transfer_ach_network.rb | 4 +- lib/plaid/models/transfer_authorization.rb | 26 +- .../transfer_authorization_create_request.rb | 26 +- .../transfer_authorization_create_response.rb | 4 +- .../models/transfer_authorization_decision.rb | 4 +- ...ansfer_authorization_decision_rationale.rb | 26 +- ...r_authorization_decision_rationale_code.rb | 4 +- .../models/transfer_authorization_device.rb | 4 +- ...ansfer_authorization_guarantee_decision.rb | 4 +- ...horization_guarantee_decision_rationale.rb | 26 +- ...ation_guarantee_decision_rationale_code.rb | 4 +- .../transfer_authorization_payment_risk.rb | 26 +- ...ransfer_authorization_proposed_transfer.rb | 26 +- .../transfer_authorization_risk_level.rb | 4 +- .../transfer_authorization_user_in_request.rb | 4 +- lib/plaid/models/transfer_balance.rb | 26 +- .../models/transfer_balance_get_request.rb | 26 +- .../models/transfer_balance_get_response.rb | 4 +- lib/plaid/models/transfer_balance_type.rb | 4 +- lib/plaid/models/transfer_cancel_request.rb | 4 +- lib/plaid/models/transfer_cancel_response.rb | 4 +- .../transfer_capabilities_get_request.rb | 4 +- .../transfer_capabilities_get_response.rb | 4 +- .../models/transfer_capabilities_get_rtp.rb | 4 +- .../transfer_configuration_get_request.rb | 4 +- .../transfer_configuration_get_response.rb | 4 +- lib/plaid/models/transfer_create_request.rb | 4 +- lib/plaid/models/transfer_create_response.rb | 4 +- .../models/transfer_credit_funds_source.rb | 4 +- .../transfer_credit_usage_configuration.rb | 26 +- .../transfer_debit_usage_configuration.rb | 26 +- lib/plaid/models/transfer_device.rb | 4 +- ...nsfer_diligence_document_upload_request.rb | 26 +- ...sfer_diligence_document_upload_response.rb | 4 +- lib/plaid/models/transfer_diligence_status.rb | 4 +- .../transfer_diligence_submit_request.rb | 4 +- .../transfer_diligence_submit_response.rb | 4 +- lib/plaid/models/transfer_document_purpose.rb | 4 +- lib/plaid/models/transfer_event.rb | 26 +- .../models/transfer_event_list_request.rb | 26 +- .../models/transfer_event_list_response.rb | 4 +- .../transfer_event_list_transfer_type.rb | 4 +- .../models/transfer_event_sync_request.rb | 4 +- .../models/transfer_event_sync_response.rb | 4 +- lib/plaid/models/transfer_event_type.rb | 4 +- .../models/transfer_events_update_webhook.rb | 26 +- ...expected_sweep_settlement_schedule_item.rb | 4 +- lib/plaid/models/transfer_failure.rb | 4 +- lib/plaid/models/transfer_funding_account.rb | 4 +- lib/plaid/models/transfer_get_request.rb | 4 +- lib/plaid/models/transfer_get_response.rb | 4 +- .../transfer_intent_authorization_decision.rb | 4 +- lib/plaid/models/transfer_intent_create.rb | 26 +- .../models/transfer_intent_create_mode.rb | 4 +- .../models/transfer_intent_create_network.rb | 4 +- .../models/transfer_intent_create_request.rb | 26 +- .../models/transfer_intent_create_response.rb | 4 +- lib/plaid/models/transfer_intent_get.rb | 26 +- .../transfer_intent_get_failure_reason.rb | 4 +- .../models/transfer_intent_get_request.rb | 4 +- .../models/transfer_intent_get_response.rb | 4 +- lib/plaid/models/transfer_intent_status.rb | 4 +- lib/plaid/models/transfer_ledger_balance.rb | 4 +- .../models/transfer_ledger_deposit_request.rb | 26 +- .../transfer_ledger_deposit_response.rb | 4 +- .../transfer_ledger_distribute_request.rb | 4 +- .../transfer_ledger_distribute_response.rb | 4 +- .../models/transfer_ledger_get_request.rb | 4 +- .../models/transfer_ledger_get_response.rb | 4 +- ...ansfer_ledger_sweep_simulate_event_type.rb | 4 +- .../transfer_ledger_withdraw_request.rb | 26 +- .../transfer_ledger_withdraw_response.rb | 4 +- lib/plaid/models/transfer_list_request.rb | 4 +- lib/plaid/models/transfer_list_response.rb | 4 +- .../models/transfer_metrics_get_request.rb | 4 +- .../models/transfer_metrics_get_response.rb | 4 +- .../transfer_migrate_account_request.rb | 4 +- .../transfer_migrate_account_response.rb | 4 +- lib/plaid/models/transfer_network.rb | 4 +- .../models/transfer_originator_address.rb | 4 +- .../transfer_originator_create_request.rb | 4 +- .../transfer_originator_create_response.rb | 4 +- .../models/transfer_originator_diligence.rb | 4 +- ...iginator_funding_account_update_request.rb | 4 +- ...ginator_funding_account_update_response.rb | 4 +- .../models/transfer_originator_get_request.rb | 4 +- .../transfer_originator_get_response.rb | 4 +- .../transfer_originator_list_request.rb | 4 +- .../transfer_originator_list_response.rb | 4 +- .../transfer_questionnaire_create_request.rb | 4 +- .../transfer_questionnaire_create_response.rb | 4 +- .../transfer_recurring_cancel_request.rb | 4 +- .../transfer_recurring_cancel_response.rb | 4 +- .../transfer_recurring_create_request.rb | 26 +- .../transfer_recurring_create_response.rb | 26 +- .../models/transfer_recurring_get_request.rb | 4 +- .../models/transfer_recurring_get_response.rb | 4 +- .../models/transfer_recurring_list_request.rb | 4 +- .../transfer_recurring_list_response.rb | 4 +- .../models/transfer_recurring_schedule.rb | 26 +- lib/plaid/models/transfer_recurring_status.rb | 4 +- lib/plaid/models/transfer_refund.rb | 26 +- .../models/transfer_refund_cancel_request.rb | 4 +- .../models/transfer_refund_cancel_response.rb | 4 +- .../models/transfer_refund_create_request.rb | 4 +- .../models/transfer_refund_create_response.rb | 4 +- lib/plaid/models/transfer_refund_failure.rb | 4 +- .../models/transfer_refund_get_request.rb | 4 +- .../models/transfer_refund_get_response.rb | 4 +- lib/plaid/models/transfer_refund_status.rb | 4 +- lib/plaid/models/transfer_repayment.rb | 4 +- .../models/transfer_repayment_list_request.rb | 4 +- .../transfer_repayment_list_response.rb | 4 +- lib/plaid/models/transfer_repayment_return.rb | 4 +- .../transfer_repayment_return_list_request.rb | 4 +- ...transfer_repayment_return_list_response.rb | 4 +- .../models/transfer_schedule_interval_unit.rb | 4 +- lib/plaid/models/transfer_status.rb | 4 +- lib/plaid/models/transfer_sweep.rb | 26 +- .../models/transfer_sweep_get_request.rb | 4 +- .../models/transfer_sweep_get_response.rb | 4 +- .../models/transfer_sweep_list_request.rb | 26 +- .../models/transfer_sweep_list_response.rb | 4 +- lib/plaid/models/transfer_sweep_status.rb | 4 +- lib/plaid/models/transfer_test_clock.rb | 4 +- lib/plaid/models/transfer_type.rb | 4 +- .../transfer_user_address_in_request.rb | 4 +- .../transfer_user_address_in_response.rb | 4 +- lib/plaid/models/transfer_user_in_request.rb | 4 +- .../transfer_user_in_request_deprecated.rb | 4 +- lib/plaid/models/transfer_user_in_response.rb | 4 +- ...e_entity_screening_request_search_terms.rb | 4 +- ...dividual_screening_request_search_terms.rb | 4 +- lib/plaid/models/user_address.rb | 4 +- lib/plaid/models/user_create_request.rb | 4 +- lib/plaid/models/user_create_response.rb | 4 +- lib/plaid/models/user_custom_password.rb | 4 +- lib/plaid/models/user_data_overview.rb | 4 +- lib/plaid/models/user_id_number.rb | 26 +- .../models/user_permission_revoked_webhook.rb | 26 +- .../user_stated_income_source_category.rb | 4 +- .../user_stated_income_source_frequency.rb | 4 +- .../user_stated_income_source_pay_type.rb | 4 +- lib/plaid/models/user_update_request.rb | 4 +- lib/plaid/models/user_update_response.rb | 4 +- lib/plaid/models/validation_source.rb | 4 +- lib/plaid/models/validation_sources.rb | 4 +- .../models/verification_expired_webhook.rb | 26 +- lib/plaid/models/verification_of_asset.rb | 4 +- .../models/verification_of_asset_response.rb | 4 +- .../models/verification_refresh_status.rb | 4 +- lib/plaid/models/verification_status.rb | 4 +- lib/plaid/models/w2.rb | 4 +- lib/plaid/models/w2_box12.rb | 4 +- lib/plaid/models/w2_state_and_local_wages.rb | 4 +- lib/plaid/models/wallet.rb | 26 +- lib/plaid/models/wallet_balance.rb | 4 +- lib/plaid/models/wallet_create_request.rb | 26 +- lib/plaid/models/wallet_create_response.rb | 26 +- lib/plaid/models/wallet_get_request.rb | 4 +- lib/plaid/models/wallet_get_response.rb | 26 +- lib/plaid/models/wallet_iso_currency_code.rb | 4 +- lib/plaid/models/wallet_list_request.rb | 26 +- lib/plaid/models/wallet_list_response.rb | 4 +- lib/plaid/models/wallet_numbers.rb | 4 +- lib/plaid/models/wallet_payment_scheme.rb | 4 +- lib/plaid/models/wallet_status.rb | 4 +- lib/plaid/models/wallet_transaction.rb | 4 +- lib/plaid/models/wallet_transaction_amount.rb | 26 +- .../models/wallet_transaction_counterparty.rb | 4 +- .../wallet_transaction_counterparty_bacs.rb | 4 +- ..._transaction_counterparty_international.rb | 4 +- ...wallet_transaction_counterparty_numbers.rb | 4 +- .../wallet_transaction_execute_request.rb | 4 +- .../wallet_transaction_execute_response.rb | 26 +- .../wallet_transaction_failure_reason.rb | 4 +- .../models/wallet_transaction_get_request.rb | 4 +- .../models/wallet_transaction_get_response.rb | 4 +- .../models/wallet_transaction_list_request.rb | 4 +- ...wallet_transaction_list_request_options.rb | 4 +- .../wallet_transaction_list_response.rb | 4 +- lib/plaid/models/wallet_transaction_status.rb | 4 +- ...allet_transaction_status_update_webhook.rb | 26 +- .../wallet_transactions_list_request.rb | 4 +- lib/plaid/models/warning.rb | 4 +- .../models/watchlist_screening_audit_trail.rb | 26 +- .../models/watchlist_screening_document.rb | 26 +- .../watchlist_screening_document_type.rb | 4 +- ...tchlist_screening_entity_create_request.rb | 4 +- ...chlist_screening_entity_create_response.rb | 26 +- .../watchlist_screening_entity_get_request.rb | 4 +- ...watchlist_screening_entity_get_response.rb | 26 +- ...t_screening_entity_history_list_request.rb | 4 +- ..._screening_entity_history_list_response.rb | 4 +- ...hlist_screening_entity_hit_list_request.rb | 4 +- ...list_screening_entity_hit_list_response.rb | 4 +- ...watchlist_screening_entity_list_request.rb | 26 +- ...atchlist_screening_entity_list_response.rb | 4 +- ...st_screening_entity_program_get_request.rb | 4 +- ...t_screening_entity_program_get_response.rb | 26 +- ...t_screening_entity_program_list_request.rb | 4 +- ..._screening_entity_program_list_response.rb | 4 +- ..._screening_entity_review_create_request.rb | 4 +- ...screening_entity_review_create_response.rb | 4 +- ...st_screening_entity_review_list_request.rb | 4 +- ...t_screening_entity_review_list_response.rb | 4 +- ...tchlist_screening_entity_update_request.rb | 26 +- ..._entity_update_request_resettable_field.rb | 4 +- ...chlist_screening_entity_update_response.rb | 26 +- lib/plaid/models/watchlist_screening_hit.rb | 26 +- .../watchlist_screening_hit_locations.rb | 4 +- .../models/watchlist_screening_hit_status.rb | 4 +- .../models/watchlist_screening_individual.rb | 26 +- ...ist_screening_individual_create_request.rb | 4 +- ...st_screening_individual_create_response.rb | 26 +- ...chlist_screening_individual_get_request.rb | 4 +- ...hlist_screening_individual_get_response.rb | 26 +- ...reening_individual_history_list_request.rb | 4 +- ...eening_individual_history_list_response.rb | 4 +- ...t_screening_individual_hit_list_request.rb | 4 +- ..._screening_individual_hit_list_response.rb | 4 +- ...hlist_screening_individual_list_request.rb | 26 +- ...list_screening_individual_list_response.rb | 4 +- ...creening_individual_program_get_request.rb | 4 +- ...reening_individual_program_get_response.rb | 26 +- ...reening_individual_program_list_request.rb | 4 +- ...eening_individual_program_list_response.rb | 4 +- ...eening_individual_review_create_request.rb | 4 +- ...ening_individual_review_create_response.rb | 4 +- ...creening_individual_review_list_request.rb | 4 +- ...reening_individual_review_list_response.rb | 4 +- ...ist_screening_individual_update_request.rb | 26 +- ...ividual_update_request_resettable_field.rb | 4 +- ...st_screening_individual_update_response.rb | 26 +- ...atchlist_screening_request_search_terms.rb | 4 +- .../models/watchlist_screening_review.rb | 4 +- .../watchlist_screening_search_terms.rb | 4 +- .../models/watchlist_screening_status.rb | 4 +- lib/plaid/models/weak_alias_determination.rb | 4 +- .../models/webhook_environment_values.rb | 4 +- lib/plaid/models/webhook_type.rb | 4 +- .../webhook_update_acknowledged_webhook.rb | 26 +- .../webhook_verification_key_get_request.rb | 4 +- .../webhook_verification_key_get_response.rb | 4 +- .../ytd_gross_income_summary_field_number.rb | 26 +- .../ytd_net_income_summary_field_number.rb | 26 +- lib/plaid/version.rb | 6 +- plaid.gemspec | 4 +- .../ruby/api_client_faraday_partial.mustache | 4 +- templates/ruby/api_error.mustache | 3 +- templates/ruby/configuration.mustache | 16 +- templates/ruby/gemspec.mustache | 2 +- 1397 files changed, 10854 insertions(+), 2794 deletions(-) create mode 100644 lib/plaid/models/beacon_duplicate_detected_webhook.rb create mode 100644 lib/plaid/models/beacon_report_created_webhook.rb create mode 100644 lib/plaid/models/beacon_report_syndication_created_webhook.rb create mode 100644 lib/plaid/models/beacon_report_updated_webhook.rb create mode 100644 lib/plaid/models/link_token_transactions.rb create mode 100644 lib/plaid/models/statements_refresh_request.rb create mode 100644 lib/plaid/models/statements_refresh_response.rb diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index fda92d873..e019ec39d 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -150,18 +150,22 @@ docs/BaseReportsErrorWebhook.md docs/BaseReportsProductReadyWebhook.md docs/BeaconAuditTrail.md docs/BeaconAuditTrailSource.md +docs/BeaconDuplicateDetectedWebhook.md docs/BeaconMatchSummaryCode.md docs/BeaconReport.md docs/BeaconReportCreateRequest.md docs/BeaconReportCreateResponse.md +docs/BeaconReportCreatedWebhook.md docs/BeaconReportListRequest.md docs/BeaconReportListResponse.md docs/BeaconReportSyndication.md docs/BeaconReportSyndicationAnalysis.md +docs/BeaconReportSyndicationCreatedWebhook.md docs/BeaconReportSyndicationListRequest.md docs/BeaconReportSyndicationListResponse.md docs/BeaconReportSyndicationOriginalReport.md docs/BeaconReportType.md +docs/BeaconReportUpdatedWebhook.md docs/BeaconUserAddress.md docs/BeaconUserCreateRequest.md docs/BeaconUserCreateResponse.md @@ -681,6 +685,7 @@ docs/LinkTokenGetResponse.md docs/LinkTokenGetSessionsResponse.md docs/LinkTokenInvestments.md docs/LinkTokenInvestmentsAuth.md +docs/LinkTokenTransactions.md docs/LinkUserDeliveryStatusWebhook.md docs/Loan.md docs/LoanAccountSubtype.md @@ -1061,6 +1066,8 @@ docs/StatementsAccount.md docs/StatementsDownloadRequest.md docs/StatementsListRequest.md docs/StatementsListResponse.md +docs/StatementsRefreshRequest.md +docs/StatementsRefreshResponse.md docs/StatementsStatement.md docs/Status.md docs/Statuses.md @@ -1531,18 +1538,22 @@ lib/plaid/models/base_reports_error_webhook.rb lib/plaid/models/base_reports_product_ready_webhook.rb lib/plaid/models/beacon_audit_trail.rb lib/plaid/models/beacon_audit_trail_source.rb +lib/plaid/models/beacon_duplicate_detected_webhook.rb lib/plaid/models/beacon_match_summary_code.rb lib/plaid/models/beacon_report.rb lib/plaid/models/beacon_report_create_request.rb lib/plaid/models/beacon_report_create_response.rb +lib/plaid/models/beacon_report_created_webhook.rb lib/plaid/models/beacon_report_list_request.rb lib/plaid/models/beacon_report_list_response.rb lib/plaid/models/beacon_report_syndication.rb lib/plaid/models/beacon_report_syndication_analysis.rb +lib/plaid/models/beacon_report_syndication_created_webhook.rb lib/plaid/models/beacon_report_syndication_list_request.rb lib/plaid/models/beacon_report_syndication_list_response.rb lib/plaid/models/beacon_report_syndication_original_report.rb lib/plaid/models/beacon_report_type.rb +lib/plaid/models/beacon_report_updated_webhook.rb lib/plaid/models/beacon_user_address.rb lib/plaid/models/beacon_user_create_request.rb lib/plaid/models/beacon_user_create_response.rb @@ -2062,6 +2073,7 @@ lib/plaid/models/link_token_get_response.rb lib/plaid/models/link_token_get_sessions_response.rb lib/plaid/models/link_token_investments.rb lib/plaid/models/link_token_investments_auth.rb +lib/plaid/models/link_token_transactions.rb lib/plaid/models/link_user_delivery_status_webhook.rb lib/plaid/models/loan.rb lib/plaid/models/loan_account_subtype.rb @@ -2441,6 +2453,8 @@ lib/plaid/models/statements_account.rb lib/plaid/models/statements_download_request.rb lib/plaid/models/statements_list_request.rb lib/plaid/models/statements_list_response.rb +lib/plaid/models/statements_refresh_request.rb +lib/plaid/models/statements_refresh_response.rb lib/plaid/models/statements_statement.rb lib/plaid/models/status.rb lib/plaid/models/statuses.rb diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 358e78e60..e7e42a4b5 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -6.1.0 \ No newline at end of file +6.3.0 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 7dd947af8..3ae2ff719 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,32 @@ See full changelog for the OpenAPI schema (OAS) [here](https://github.com/plaid/plaid-openapi/blob/master/CHANGELOG.md). +# 24.2.0 + +- Updating to OAS 2020-09-14_1.474.0 + +## OpenAPI Schema Changes + +### 2020-09-14_1.474.0 + +- Added `statements/refresh` endpoint + +### 2020-09-14_1.473.0 + +- Add Beacon webhooks + +### 2020-09-14_1.472.0 + +- Change client library visibility of `options.transactions.days_requested` field for `/link/token/create` and `/sandbox/public_token/create` +- Add `options.days_requested` field to `/transactions/get` and `/transactions/sync` + +### 2020-09-14_1.471.0 + +[Breaking change for Go client libraries] Make `products` field in `/institutions/search` request optional to fix https://github.com/plaid/plaid-ruby/issues/476 + +# 24.1.0 + +- Updated OpenAPI generator version to 6.3.0 for bug fixes. + # 24.0.0 - Updating to OAS 2020-09-14_1.470.1 diff --git a/Makefile b/Makefile index 542d8277f..3176458b8 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ # Ruby embeds the version in the generator where as others don't so it's not possible to cat for it. -RUBY_PACKAGE_VERSION=24.0.0 +RUBY_PACKAGE_VERSION=24.2.0 .PHONY: release release: diff --git a/lib/plaid.rb b/lib/plaid.rb index 3de166b49..8b783f184 100644 --- a/lib/plaid.rb +++ b/lib/plaid.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -169,18 +169,22 @@ Plaid.autoload :BaseReportsProductReadyWebhook, 'plaid/models/base_reports_product_ready_webhook' Plaid.autoload :BeaconAuditTrail, 'plaid/models/beacon_audit_trail' Plaid.autoload :BeaconAuditTrailSource, 'plaid/models/beacon_audit_trail_source' +Plaid.autoload :BeaconDuplicateDetectedWebhook, 'plaid/models/beacon_duplicate_detected_webhook' Plaid.autoload :BeaconMatchSummaryCode, 'plaid/models/beacon_match_summary_code' Plaid.autoload :BeaconReport, 'plaid/models/beacon_report' Plaid.autoload :BeaconReportCreateRequest, 'plaid/models/beacon_report_create_request' Plaid.autoload :BeaconReportCreateResponse, 'plaid/models/beacon_report_create_response' +Plaid.autoload :BeaconReportCreatedWebhook, 'plaid/models/beacon_report_created_webhook' Plaid.autoload :BeaconReportListRequest, 'plaid/models/beacon_report_list_request' Plaid.autoload :BeaconReportListResponse, 'plaid/models/beacon_report_list_response' Plaid.autoload :BeaconReportSyndication, 'plaid/models/beacon_report_syndication' Plaid.autoload :BeaconReportSyndicationAnalysis, 'plaid/models/beacon_report_syndication_analysis' +Plaid.autoload :BeaconReportSyndicationCreatedWebhook, 'plaid/models/beacon_report_syndication_created_webhook' Plaid.autoload :BeaconReportSyndicationListRequest, 'plaid/models/beacon_report_syndication_list_request' Plaid.autoload :BeaconReportSyndicationListResponse, 'plaid/models/beacon_report_syndication_list_response' Plaid.autoload :BeaconReportSyndicationOriginalReport, 'plaid/models/beacon_report_syndication_original_report' Plaid.autoload :BeaconReportType, 'plaid/models/beacon_report_type' +Plaid.autoload :BeaconReportUpdatedWebhook, 'plaid/models/beacon_report_updated_webhook' Plaid.autoload :BeaconUserAddress, 'plaid/models/beacon_user_address' Plaid.autoload :BeaconUserCreateRequest, 'plaid/models/beacon_user_create_request' Plaid.autoload :BeaconUserCreateResponse, 'plaid/models/beacon_user_create_response' @@ -700,6 +704,7 @@ Plaid.autoload :LinkTokenGetSessionsResponse, 'plaid/models/link_token_get_sessions_response' Plaid.autoload :LinkTokenInvestments, 'plaid/models/link_token_investments' Plaid.autoload :LinkTokenInvestmentsAuth, 'plaid/models/link_token_investments_auth' +Plaid.autoload :LinkTokenTransactions, 'plaid/models/link_token_transactions' Plaid.autoload :LinkUserDeliveryStatusWebhook, 'plaid/models/link_user_delivery_status_webhook' Plaid.autoload :Loan, 'plaid/models/loan' Plaid.autoload :LoanAccountSubtype, 'plaid/models/loan_account_subtype' @@ -1079,6 +1084,8 @@ Plaid.autoload :StatementsDownloadRequest, 'plaid/models/statements_download_request' Plaid.autoload :StatementsListRequest, 'plaid/models/statements_list_request' Plaid.autoload :StatementsListResponse, 'plaid/models/statements_list_response' +Plaid.autoload :StatementsRefreshRequest, 'plaid/models/statements_refresh_request' +Plaid.autoload :StatementsRefreshResponse, 'plaid/models/statements_refresh_response' Plaid.autoload :StatementsStatement, 'plaid/models/statements_statement' Plaid.autoload :Status, 'plaid/models/status' Plaid.autoload :Statuses, 'plaid/models/statuses' diff --git a/lib/plaid/api/plaid_api.rb b/lib/plaid/api/plaid_api.rb index 1efe3238d..5ba02bc69 100644 --- a/lib/plaid/api/plaid_api.rb +++ b/lib/plaid/api/plaid_api.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/api_client.rb b/lib/plaid/api_client.rb index c181d11ce..fc6ea4eed 100644 --- a/lib/plaid/api_client.rb +++ b/lib/plaid/api_client.rb @@ -7,10 +7,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -38,7 +38,7 @@ class ApiClient # @option config [Configuration] Configuration for initializing the object, default to Configuration.default def initialize(config = Configuration.default) @config = config - @user_agent = "Plaid Ruby v24.0.0" + @user_agent = "Plaid Ruby v24.2.0" @default_headers = { 'Content-Type' => 'application/json', 'User-Agent' => @user_agent, @@ -79,7 +79,7 @@ def call_api(http_method, path, opts = {}) end unless response.success? - if response.status == 0 + if response.status == 0 && response.respond_to?(:return_message) # Errors from libcurl will be made visible here fail ApiError.new(:code => 0, :message => response.return_message) @@ -100,6 +100,8 @@ def call_api(http_method, path, opts = {}) end rescue Faraday::TimeoutError fail ApiError.new('Connection timed out') + rescue Faraday::ConnectionFailed + fail ApiError.new('Connection failed') end if opts[:return_type] diff --git a/lib/plaid/api_error.rb b/lib/plaid/api_error.rb index 46f4bf40c..2b6b5cc56 100644 --- a/lib/plaid/api_error.rb +++ b/lib/plaid/api_error.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -25,6 +25,7 @@ def initialize(arg = nil) super(arg[:message] || arg['message']) else super arg + @message = arg end arg.each do |k, v| @@ -54,4 +55,4 @@ def message msg end end -end \ No newline at end of file +end diff --git a/lib/plaid/configuration.rb b/lib/plaid/configuration.rb index 1d2079677..eafe43bc4 100644 --- a/lib/plaid/configuration.rb +++ b/lib/plaid/configuration.rb @@ -7,10 +7,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -71,6 +71,12 @@ class Configuration # Defines the access token (Bearer) used with OAuth2. attr_accessor :access_token + # Defines a Proc used to fetch or refresh access tokens (Bearer) used with OAuth2. + # Overrides the access_token if set + # @return [Proc] + attr_accessor :access_token_getter + + # Set this to enable/disable debugging. When enabled (set to true), HTTP request/response # details will be logged with `logger.debug` (see the `logger` attribute). # Default to false. @@ -216,6 +222,12 @@ def api_key_with_prefix(param_name) end end + # Gets access_token using access_token_getter or uses the static access_token + def access_token_with_refresh + return access_token if access_token_getter.nil? + access_token_getter.call + end + # Gets Basic Auth token string def basic_auth_token 'Basic ' + ["#{username}:#{password}"].pack('m').delete("\r\n") diff --git a/lib/plaid/models/account_access.rb b/lib/plaid/models/account_access.rb index b28e41912..7df8d136c 100644 --- a/lib/plaid/models/account_access.rb +++ b/lib/plaid/models/account_access.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/account_assets.rb b/lib/plaid/models/account_assets.rb index 3e62ac658..daed2cb86 100644 --- a/lib/plaid/models/account_assets.rb +++ b/lib/plaid/models/account_assets.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/account_assets_all_of.rb b/lib/plaid/models/account_assets_all_of.rb index c02150691..744aa33d0 100644 --- a/lib/plaid/models/account_assets_all_of.rb +++ b/lib/plaid/models/account_assets_all_of.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -31,6 +31,28 @@ class AccountAssetsAllOf # Calculated data about the historical balances on the account. attr_accessor :historical_balances + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/account_balance.rb b/lib/plaid/models/account_balance.rb index b9ecaabb8..efdd68d7c 100644 --- a/lib/plaid/models/account_balance.rb +++ b/lib/plaid/models/account_balance.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/account_base.rb b/lib/plaid/models/account_base.rb index 3c061a95c..1726ee891 100644 --- a/lib/plaid/models/account_base.rb +++ b/lib/plaid/models/account_base.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/account_filter.rb b/lib/plaid/models/account_filter.rb index ec0d80a24..d6b163318 100644 --- a/lib/plaid/models/account_filter.rb +++ b/lib/plaid/models/account_filter.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/account_filters_response.rb b/lib/plaid/models/account_filters_response.rb index 1bed72536..40e6f20b4 100644 --- a/lib/plaid/models/account_filters_response.rb +++ b/lib/plaid/models/account_filters_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/account_identity.rb b/lib/plaid/models/account_identity.rb index eb3aea0e9..68d52946b 100644 --- a/lib/plaid/models/account_identity.rb +++ b/lib/plaid/models/account_identity.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/account_identity_all_of.rb b/lib/plaid/models/account_identity_all_of.rb index a827b8677..9d3033f46 100644 --- a/lib/plaid/models/account_identity_all_of.rb +++ b/lib/plaid/models/account_identity_all_of.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/account_identity_match_score.rb b/lib/plaid/models/account_identity_match_score.rb index 9022f0ac4..c3f264d77 100644 --- a/lib/plaid/models/account_identity_match_score.rb +++ b/lib/plaid/models/account_identity_match_score.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/account_identity_match_score_all_of.rb b/lib/plaid/models/account_identity_match_score_all_of.rb index ea9b52b99..da08cedd1 100644 --- a/lib/plaid/models/account_identity_match_score_all_of.rb +++ b/lib/plaid/models/account_identity_match_score_all_of.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/account_product_access.rb b/lib/plaid/models/account_product_access.rb index 966dbf3b0..beea818bf 100644 --- a/lib/plaid/models/account_product_access.rb +++ b/lib/plaid/models/account_product_access.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/account_product_access_nullable.rb b/lib/plaid/models/account_product_access_nullable.rb index 87634c4bd..9ae4e00e2 100644 --- a/lib/plaid/models/account_product_access_nullable.rb +++ b/lib/plaid/models/account_product_access_nullable.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/account_selection_cardinality.rb b/lib/plaid/models/account_selection_cardinality.rb index 218ad2aac..2d97f9bee 100644 --- a/lib/plaid/models/account_selection_cardinality.rb +++ b/lib/plaid/models/account_selection_cardinality.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/account_subtype.rb b/lib/plaid/models/account_subtype.rb index 2dc48dabd..1b6a33a4e 100644 --- a/lib/plaid/models/account_subtype.rb +++ b/lib/plaid/models/account_subtype.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/account_type.rb b/lib/plaid/models/account_type.rb index 501478d25..11311ce9d 100644 --- a/lib/plaid/models/account_type.rb +++ b/lib/plaid/models/account_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/accounts_balance_get_request.rb b/lib/plaid/models/accounts_balance_get_request.rb index 3f444c738..1d681ffc2 100644 --- a/lib/plaid/models/accounts_balance_get_request.rb +++ b/lib/plaid/models/accounts_balance_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/accounts_balance_get_request_options.rb b/lib/plaid/models/accounts_balance_get_request_options.rb index 107b621f6..5f2e4466a 100644 --- a/lib/plaid/models/accounts_balance_get_request_options.rb +++ b/lib/plaid/models/accounts_balance_get_request_options.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/accounts_get_request.rb b/lib/plaid/models/accounts_get_request.rb index d97bfd19e..279f9b846 100644 --- a/lib/plaid/models/accounts_get_request.rb +++ b/lib/plaid/models/accounts_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/accounts_get_request_options.rb b/lib/plaid/models/accounts_get_request_options.rb index 23beb78c7..2d70648e7 100644 --- a/lib/plaid/models/accounts_get_request_options.rb +++ b/lib/plaid/models/accounts_get_request_options.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/accounts_get_response.rb b/lib/plaid/models/accounts_get_response.rb index fcc4383a2..d89e437e1 100644 --- a/lib/plaid/models/accounts_get_response.rb +++ b/lib/plaid/models/accounts_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/ach_class.rb b/lib/plaid/models/ach_class.rb index 839db221f..b9f20079e 100644 --- a/lib/plaid/models/ach_class.rb +++ b/lib/plaid/models/ach_class.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/action_state.rb b/lib/plaid/models/action_state.rb index 890f4bd81..4e2074e91 100644 --- a/lib/plaid/models/action_state.rb +++ b/lib/plaid/models/action_state.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/activity.rb b/lib/plaid/models/activity.rb index 3bb04aedd..c2108d8df 100644 --- a/lib/plaid/models/activity.rb +++ b/lib/plaid/models/activity.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -34,6 +34,28 @@ class Activity attr_accessor :scopes + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/activity_type.rb b/lib/plaid/models/activity_type.rb index e77b046c1..07325645f 100644 --- a/lib/plaid/models/activity_type.rb +++ b/lib/plaid/models/activity_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/address.rb b/lib/plaid/models/address.rb index effd2effa..8ba5a5412 100644 --- a/lib/plaid/models/address.rb +++ b/lib/plaid/models/address.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/address_data.rb b/lib/plaid/models/address_data.rb index f608746b5..42d77a569 100644 --- a/lib/plaid/models/address_data.rb +++ b/lib/plaid/models/address_data.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/address_data_not_required.rb b/lib/plaid/models/address_data_not_required.rb index dcc81c34e..990ad2255 100644 --- a/lib/plaid/models/address_data_not_required.rb +++ b/lib/plaid/models/address_data_not_required.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/address_data_nullable.rb b/lib/plaid/models/address_data_nullable.rb index f56ca9833..12e2837b7 100644 --- a/lib/plaid/models/address_data_nullable.rb +++ b/lib/plaid/models/address_data_nullable.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/address_data_nullable_no_required_fields.rb b/lib/plaid/models/address_data_nullable_no_required_fields.rb index 92372acce..368b07af4 100644 --- a/lib/plaid/models/address_data_nullable_no_required_fields.rb +++ b/lib/plaid/models/address_data_nullable_no_required_fields.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/address_match_score.rb b/lib/plaid/models/address_match_score.rb index e0fd39ad5..364fbd081 100644 --- a/lib/plaid/models/address_match_score.rb +++ b/lib/plaid/models/address_match_score.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/address_nullable.rb b/lib/plaid/models/address_nullable.rb index 8812d5a20..d0667a438 100644 --- a/lib/plaid/models/address_nullable.rb +++ b/lib/plaid/models/address_nullable.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/address_purpose_label.rb b/lib/plaid/models/address_purpose_label.rb index 53e677afd..017f0a6b8 100644 --- a/lib/plaid/models/address_purpose_label.rb +++ b/lib/plaid/models/address_purpose_label.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/application.rb b/lib/plaid/models/application.rb index 952b9b93f..8fc018281 100644 --- a/lib/plaid/models/application.rb +++ b/lib/plaid/models/application.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/application_get_request.rb b/lib/plaid/models/application_get_request.rb index 9b551bf83..20ad76eb5 100644 --- a/lib/plaid/models/application_get_request.rb +++ b/lib/plaid/models/application_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/application_get_response.rb b/lib/plaid/models/application_get_response.rb index e94017b8f..c4304fcc2 100644 --- a/lib/plaid/models/application_get_response.rb +++ b/lib/plaid/models/application_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/apr.rb b/lib/plaid/models/apr.rb index ad43e1613..f1be7b604 100644 --- a/lib/plaid/models/apr.rb +++ b/lib/plaid/models/apr.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset.rb b/lib/plaid/models/asset.rb index d5a436bf6..a8ba2c6d4 100644 --- a/lib/plaid/models/asset.rb +++ b/lib/plaid/models/asset.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_detail.rb b/lib/plaid/models/asset_detail.rb index 7c3d7dbde..307c68e5a 100644 --- a/lib/plaid/models/asset_detail.rb +++ b/lib/plaid/models/asset_detail.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -45,6 +45,28 @@ class AssetDetail # Ownership type of the asset account. attr_accessor :asset_ownership_type + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/asset_holder.rb b/lib/plaid/models/asset_holder.rb index 9410c3baa..6f7e54a8c 100644 --- a/lib/plaid/models/asset_holder.rb +++ b/lib/plaid/models/asset_holder.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_holder_name.rb b/lib/plaid/models/asset_holder_name.rb index ca0f9e83e..4001d92b6 100644 --- a/lib/plaid/models/asset_holder_name.rb +++ b/lib/plaid/models/asset_holder_name.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_owner.rb b/lib/plaid/models/asset_owner.rb index 4258e8e84..c4f492662 100644 --- a/lib/plaid/models/asset_owner.rb +++ b/lib/plaid/models/asset_owner.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_owners.rb b/lib/plaid/models/asset_owners.rb index 64b93c897..f62112e50 100644 --- a/lib/plaid/models/asset_owners.rb +++ b/lib/plaid/models/asset_owners.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_report.rb b/lib/plaid/models/asset_report.rb index 77774f687..9c54e8f8a 100644 --- a/lib/plaid/models/asset_report.rb +++ b/lib/plaid/models/asset_report.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_report_add_ons.rb b/lib/plaid/models/asset_report_add_ons.rb index 728384ff2..e727676af 100644 --- a/lib/plaid/models/asset_report_add_ons.rb +++ b/lib/plaid/models/asset_report_add_ons.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_report_audit_copy_create_request.rb b/lib/plaid/models/asset_report_audit_copy_create_request.rb index af3e49d96..0e1b9fc08 100644 --- a/lib/plaid/models/asset_report_audit_copy_create_request.rb +++ b/lib/plaid/models/asset_report_audit_copy_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_report_audit_copy_create_response.rb b/lib/plaid/models/asset_report_audit_copy_create_response.rb index 4409c9e0b..2c05f6000 100644 --- a/lib/plaid/models/asset_report_audit_copy_create_response.rb +++ b/lib/plaid/models/asset_report_audit_copy_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_report_audit_copy_get_request.rb b/lib/plaid/models/asset_report_audit_copy_get_request.rb index 4c748ca36..4fcd7b3e9 100644 --- a/lib/plaid/models/asset_report_audit_copy_get_request.rb +++ b/lib/plaid/models/asset_report_audit_copy_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_report_audit_copy_remove_request.rb b/lib/plaid/models/asset_report_audit_copy_remove_request.rb index afa11bfc3..2cd6b1911 100644 --- a/lib/plaid/models/asset_report_audit_copy_remove_request.rb +++ b/lib/plaid/models/asset_report_audit_copy_remove_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_report_audit_copy_remove_response.rb b/lib/plaid/models/asset_report_audit_copy_remove_response.rb index 856fea644..629044ed6 100644 --- a/lib/plaid/models/asset_report_audit_copy_remove_response.rb +++ b/lib/plaid/models/asset_report_audit_copy_remove_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_report_create_request.rb b/lib/plaid/models/asset_report_create_request.rb index 70ddacd70..616b456b0 100644 --- a/lib/plaid/models/asset_report_create_request.rb +++ b/lib/plaid/models/asset_report_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_report_create_request_options.rb b/lib/plaid/models/asset_report_create_request_options.rb index e9a6c84cc..9ca2da24c 100644 --- a/lib/plaid/models/asset_report_create_request_options.rb +++ b/lib/plaid/models/asset_report_create_request_options.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_report_create_response.rb b/lib/plaid/models/asset_report_create_response.rb index 7d1729993..77496e133 100644 --- a/lib/plaid/models/asset_report_create_response.rb +++ b/lib/plaid/models/asset_report_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_report_filter_request.rb b/lib/plaid/models/asset_report_filter_request.rb index 5a8c94666..25e287a7f 100644 --- a/lib/plaid/models/asset_report_filter_request.rb +++ b/lib/plaid/models/asset_report_filter_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_report_filter_response.rb b/lib/plaid/models/asset_report_filter_response.rb index 8b9a1b4b0..9e230f82f 100644 --- a/lib/plaid/models/asset_report_filter_response.rb +++ b/lib/plaid/models/asset_report_filter_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_report_freddie.rb b/lib/plaid/models/asset_report_freddie.rb index fad2e7f27..8d715d851 100644 --- a/lib/plaid/models/asset_report_freddie.rb +++ b/lib/plaid/models/asset_report_freddie.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_report_freddie_get_request.rb b/lib/plaid/models/asset_report_freddie_get_request.rb index cd8e251a7..e0e531f73 100644 --- a/lib/plaid/models/asset_report_freddie_get_request.rb +++ b/lib/plaid/models/asset_report_freddie_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_report_freddie_get_response.rb b/lib/plaid/models/asset_report_freddie_get_response.rb index a13c02c3f..7dc1b8f8d 100644 --- a/lib/plaid/models/asset_report_freddie_get_response.rb +++ b/lib/plaid/models/asset_report_freddie_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_report_get_request.rb b/lib/plaid/models/asset_report_get_request.rb index 9e5217205..7ee36a484 100644 --- a/lib/plaid/models/asset_report_get_request.rb +++ b/lib/plaid/models/asset_report_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_report_get_request_options.rb b/lib/plaid/models/asset_report_get_request_options.rb index f5733cde3..ca675c401 100644 --- a/lib/plaid/models/asset_report_get_request_options.rb +++ b/lib/plaid/models/asset_report_get_request_options.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_report_get_response.rb b/lib/plaid/models/asset_report_get_response.rb index cc59b61cc..b5794df1f 100644 --- a/lib/plaid/models/asset_report_get_response.rb +++ b/lib/plaid/models/asset_report_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_report_investment_holding.rb b/lib/plaid/models/asset_report_investment_holding.rb index 9fd57803a..0389f6dd3 100644 --- a/lib/plaid/models/asset_report_investment_holding.rb +++ b/lib/plaid/models/asset_report_investment_holding.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_report_investment_security.rb b/lib/plaid/models/asset_report_investment_security.rb index 7b4bfa9c7..5d927f81f 100644 --- a/lib/plaid/models/asset_report_investment_security.rb +++ b/lib/plaid/models/asset_report_investment_security.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_report_investments.rb b/lib/plaid/models/asset_report_investments.rb index 00c83ed34..6554f8d0b 100644 --- a/lib/plaid/models/asset_report_investments.rb +++ b/lib/plaid/models/asset_report_investments.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -53,6 +53,28 @@ class AssetReportInvestments # The unofficial currency code associated with the holding. Always `null` if `iso_currency_code` is non-`null`. Unofficial currency codes are used for currencies that do not have official ISO currency codes, such as cryptocurrencies and the currencies of certain countries. See the [currency code schema](https://plaid.com/docs/api/accounts#currency-code-schema) for a full listing of supported `iso_currency_code`s. attr_accessor :unofficial_currency_code + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/asset_report_item.rb b/lib/plaid/models/asset_report_item.rb index 951631cf4..8c22bd6b8 100644 --- a/lib/plaid/models/asset_report_item.rb +++ b/lib/plaid/models/asset_report_item.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_report_pdf_get_request.rb b/lib/plaid/models/asset_report_pdf_get_request.rb index 1418de6da..beb3c3157 100644 --- a/lib/plaid/models/asset_report_pdf_get_request.rb +++ b/lib/plaid/models/asset_report_pdf_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_report_pdf_get_request_options.rb b/lib/plaid/models/asset_report_pdf_get_request_options.rb index cbd07914f..044a7104b 100644 --- a/lib/plaid/models/asset_report_pdf_get_request_options.rb +++ b/lib/plaid/models/asset_report_pdf_get_request_options.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_report_refresh_request.rb b/lib/plaid/models/asset_report_refresh_request.rb index f89e1e3e0..cd037a7f6 100644 --- a/lib/plaid/models/asset_report_refresh_request.rb +++ b/lib/plaid/models/asset_report_refresh_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_report_refresh_request_options.rb b/lib/plaid/models/asset_report_refresh_request_options.rb index 073abe454..3d89240ad 100644 --- a/lib/plaid/models/asset_report_refresh_request_options.rb +++ b/lib/plaid/models/asset_report_refresh_request_options.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_report_refresh_response.rb b/lib/plaid/models/asset_report_refresh_response.rb index e17c11128..40e73a56f 100644 --- a/lib/plaid/models/asset_report_refresh_response.rb +++ b/lib/plaid/models/asset_report_refresh_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_report_remove_request.rb b/lib/plaid/models/asset_report_remove_request.rb index c29a5ceae..499c9657f 100644 --- a/lib/plaid/models/asset_report_remove_request.rb +++ b/lib/plaid/models/asset_report_remove_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_report_remove_response.rb b/lib/plaid/models/asset_report_remove_response.rb index dbd6208cd..859636d9b 100644 --- a/lib/plaid/models/asset_report_remove_response.rb +++ b/lib/plaid/models/asset_report_remove_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_report_transaction.rb b/lib/plaid/models/asset_report_transaction.rb index e01449125..a66023ba1 100644 --- a/lib/plaid/models/asset_report_transaction.rb +++ b/lib/plaid/models/asset_report_transaction.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -75,6 +75,28 @@ class AssetReportTransaction # A unique identifier for an income source. attr_accessor :income_source_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/asset_report_transaction_type.rb b/lib/plaid/models/asset_report_transaction_type.rb index dad2c8475..9b0ff867a 100644 --- a/lib/plaid/models/asset_report_transaction_type.rb +++ b/lib/plaid/models/asset_report_transaction_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_report_user.rb b/lib/plaid/models/asset_report_user.rb index bddfc5df6..913ae036c 100644 --- a/lib/plaid/models/asset_report_user.rb +++ b/lib/plaid/models/asset_report_user.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_transaction.rb b/lib/plaid/models/asset_transaction.rb index f08b5a20f..a67dd253a 100644 --- a/lib/plaid/models/asset_transaction.rb +++ b/lib/plaid/models/asset_transaction.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_transaction_category_type.rb b/lib/plaid/models/asset_transaction_category_type.rb index a9c1d6f2e..678b8ef2e 100644 --- a/lib/plaid/models/asset_transaction_category_type.rb +++ b/lib/plaid/models/asset_transaction_category_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_transaction_description.rb b/lib/plaid/models/asset_transaction_description.rb index fe8006702..d55fcdbf3 100644 --- a/lib/plaid/models/asset_transaction_description.rb +++ b/lib/plaid/models/asset_transaction_description.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_transaction_detail.rb b/lib/plaid/models/asset_transaction_detail.rb index 0b481dad8..f7299151d 100644 --- a/lib/plaid/models/asset_transaction_detail.rb +++ b/lib/plaid/models/asset_transaction_detail.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -41,6 +41,28 @@ class AssetTransactionDetail # FI provided Transaction Identifier. attr_accessor :financial_institution_transaction_identifier + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/asset_transaction_type.rb b/lib/plaid/models/asset_transaction_type.rb index b85e1d4ef..4a6609540 100644 --- a/lib/plaid/models/asset_transaction_type.rb +++ b/lib/plaid/models/asset_transaction_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_transactions.rb b/lib/plaid/models/asset_transactions.rb index f09f0e8cb..d52a452c2 100644 --- a/lib/plaid/models/asset_transactions.rb +++ b/lib/plaid/models/asset_transactions.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/asset_type.rb b/lib/plaid/models/asset_type.rb index 7231c52bf..cc7aa1452 100644 --- a/lib/plaid/models/asset_type.rb +++ b/lib/plaid/models/asset_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/assets.rb b/lib/plaid/models/assets.rb index 856fe8571..06591906a 100644 --- a/lib/plaid/models/assets.rb +++ b/lib/plaid/models/assets.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/assets_error_webhook.rb b/lib/plaid/models/assets_error_webhook.rb index 73c964f42..2b54ac495 100644 --- a/lib/plaid/models/assets_error_webhook.rb +++ b/lib/plaid/models/assets_error_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -32,6 +32,28 @@ class AssetsErrorWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/assets_product_ready_webhook.rb b/lib/plaid/models/assets_product_ready_webhook.rb index 0d4858405..90f4244d5 100644 --- a/lib/plaid/models/assets_product_ready_webhook.rb +++ b/lib/plaid/models/assets_product_ready_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -33,6 +33,28 @@ class AssetsProductReadyWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/auth_get_numbers.rb b/lib/plaid/models/auth_get_numbers.rb index a9c250fbb..9565fb4a1 100644 --- a/lib/plaid/models/auth_get_numbers.rb +++ b/lib/plaid/models/auth_get_numbers.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/auth_get_request.rb b/lib/plaid/models/auth_get_request.rb index 7d318dd91..d582ae886 100644 --- a/lib/plaid/models/auth_get_request.rb +++ b/lib/plaid/models/auth_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/auth_get_request_options.rb b/lib/plaid/models/auth_get_request_options.rb index 2497224e1..c4f363095 100644 --- a/lib/plaid/models/auth_get_request_options.rb +++ b/lib/plaid/models/auth_get_request_options.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/auth_get_response.rb b/lib/plaid/models/auth_get_response.rb index d0413c177..3a5dea66a 100644 --- a/lib/plaid/models/auth_get_response.rb +++ b/lib/plaid/models/auth_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/auth_metadata.rb b/lib/plaid/models/auth_metadata.rb index 3be7ae522..c701bd3d1 100644 --- a/lib/plaid/models/auth_metadata.rb +++ b/lib/plaid/models/auth_metadata.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/auth_supported_methods.rb b/lib/plaid/models/auth_supported_methods.rb index 04f712fe4..a888d1a01 100644 --- a/lib/plaid/models/auth_supported_methods.rb +++ b/lib/plaid/models/auth_supported_methods.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/automatically_verified_webhook.rb b/lib/plaid/models/automatically_verified_webhook.rb index 107d11c1f..cd7755c97 100644 --- a/lib/plaid/models/automatically_verified_webhook.rb +++ b/lib/plaid/models/automatically_verified_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -32,6 +32,28 @@ class AutomaticallyVerifiedWebhook attr_accessor :error + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/bank_income_complete_result.rb b/lib/plaid/models/bank_income_complete_result.rb index fec89b58a..998893eb6 100644 --- a/lib/plaid/models/bank_income_complete_result.rb +++ b/lib/plaid/models/bank_income_complete_result.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/bank_income_complete_webhook.rb b/lib/plaid/models/bank_income_complete_webhook.rb index a6e3c403c..1bbe8aa65 100644 --- a/lib/plaid/models/bank_income_complete_webhook.rb +++ b/lib/plaid/models/bank_income_complete_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -29,6 +29,28 @@ class BankIncomeCompleteWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/bank_income_refresh_complete_result.rb b/lib/plaid/models/bank_income_refresh_complete_result.rb index 726548624..09579e784 100644 --- a/lib/plaid/models/bank_income_refresh_complete_result.rb +++ b/lib/plaid/models/bank_income_refresh_complete_result.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/bank_income_refresh_complete_webhook.rb b/lib/plaid/models/bank_income_refresh_complete_webhook.rb index b8d662dc6..d98fb4728 100644 --- a/lib/plaid/models/bank_income_refresh_complete_webhook.rb +++ b/lib/plaid/models/bank_income_refresh_complete_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -29,6 +29,28 @@ class BankIncomeRefreshCompleteWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/bank_income_refresh_update_webhook.rb b/lib/plaid/models/bank_income_refresh_update_webhook.rb index 77670ff97..7f51d0c15 100644 --- a/lib/plaid/models/bank_income_refresh_update_webhook.rb +++ b/lib/plaid/models/bank_income_refresh_update_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -27,6 +27,28 @@ class BankIncomeRefreshUpdateWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/bank_initiated_return_risk.rb b/lib/plaid/models/bank_initiated_return_risk.rb index 6e6781f78..6fe2a75ed 100644 --- a/lib/plaid/models/bank_initiated_return_risk.rb +++ b/lib/plaid/models/bank_initiated_return_risk.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/bank_transfer.rb b/lib/plaid/models/bank_transfer.rb index a98405108..07437fe2e 100644 --- a/lib/plaid/models/bank_transfer.rb +++ b/lib/plaid/models/bank_transfer.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -60,6 +60,28 @@ class BankTransfer attr_accessor :direction + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/bank_transfer_balance.rb b/lib/plaid/models/bank_transfer_balance.rb index 8028a46cc..dfc4af4e1 100644 --- a/lib/plaid/models/bank_transfer_balance.rb +++ b/lib/plaid/models/bank_transfer_balance.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/bank_transfer_balance_get_request.rb b/lib/plaid/models/bank_transfer_balance_get_request.rb index a642d5889..8d6614fc6 100644 --- a/lib/plaid/models/bank_transfer_balance_get_request.rb +++ b/lib/plaid/models/bank_transfer_balance_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/bank_transfer_balance_get_response.rb b/lib/plaid/models/bank_transfer_balance_get_response.rb index 9241cde02..cf0576436 100644 --- a/lib/plaid/models/bank_transfer_balance_get_response.rb +++ b/lib/plaid/models/bank_transfer_balance_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/bank_transfer_cancel_request.rb b/lib/plaid/models/bank_transfer_cancel_request.rb index 2453fe05d..92c841387 100644 --- a/lib/plaid/models/bank_transfer_cancel_request.rb +++ b/lib/plaid/models/bank_transfer_cancel_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/bank_transfer_cancel_response.rb b/lib/plaid/models/bank_transfer_cancel_response.rb index 489aa58ba..4230fe8b2 100644 --- a/lib/plaid/models/bank_transfer_cancel_response.rb +++ b/lib/plaid/models/bank_transfer_cancel_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/bank_transfer_create_request.rb b/lib/plaid/models/bank_transfer_create_request.rb index dc31a9653..9e5a5b876 100644 --- a/lib/plaid/models/bank_transfer_create_request.rb +++ b/lib/plaid/models/bank_transfer_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -57,6 +57,28 @@ class BankTransferCreateRequest # Plaid’s unique identifier for the origination account for this transfer. If you have more than one origination account, this value must be specified. Otherwise, this field should be left blank. attr_accessor :origination_account_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/bank_transfer_create_response.rb b/lib/plaid/models/bank_transfer_create_response.rb index a25d86a39..9fbd039f2 100644 --- a/lib/plaid/models/bank_transfer_create_response.rb +++ b/lib/plaid/models/bank_transfer_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/bank_transfer_direction.rb b/lib/plaid/models/bank_transfer_direction.rb index 815690dcc..dfd6ac45c 100644 --- a/lib/plaid/models/bank_transfer_direction.rb +++ b/lib/plaid/models/bank_transfer_direction.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/bank_transfer_event.rb b/lib/plaid/models/bank_transfer_event.rb index 3afa43afe..118eb7cc6 100644 --- a/lib/plaid/models/bank_transfer_event.rb +++ b/lib/plaid/models/bank_transfer_event.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -45,6 +45,28 @@ class BankTransferEvent attr_accessor :direction + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/bank_transfer_event_list_bank_transfer_type.rb b/lib/plaid/models/bank_transfer_event_list_bank_transfer_type.rb index 40beed2db..173ebe40d 100644 --- a/lib/plaid/models/bank_transfer_event_list_bank_transfer_type.rb +++ b/lib/plaid/models/bank_transfer_event_list_bank_transfer_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/bank_transfer_event_list_direction.rb b/lib/plaid/models/bank_transfer_event_list_direction.rb index 1daa83add..4ed659d57 100644 --- a/lib/plaid/models/bank_transfer_event_list_direction.rb +++ b/lib/plaid/models/bank_transfer_event_list_direction.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/bank_transfer_event_list_request.rb b/lib/plaid/models/bank_transfer_event_list_request.rb index 5c61cfae3..aea3f8d44 100644 --- a/lib/plaid/models/bank_transfer_event_list_request.rb +++ b/lib/plaid/models/bank_transfer_event_list_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -50,6 +50,28 @@ class BankTransferEventListRequest attr_accessor :direction + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/bank_transfer_event_list_response.rb b/lib/plaid/models/bank_transfer_event_list_response.rb index 4ba7b1030..1124619af 100644 --- a/lib/plaid/models/bank_transfer_event_list_response.rb +++ b/lib/plaid/models/bank_transfer_event_list_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/bank_transfer_event_sync_request.rb b/lib/plaid/models/bank_transfer_event_sync_request.rb index 94dc1a7f7..5a66ffb1c 100644 --- a/lib/plaid/models/bank_transfer_event_sync_request.rb +++ b/lib/plaid/models/bank_transfer_event_sync_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/bank_transfer_event_sync_response.rb b/lib/plaid/models/bank_transfer_event_sync_response.rb index b112bf33c..ab0c17c1b 100644 --- a/lib/plaid/models/bank_transfer_event_sync_response.rb +++ b/lib/plaid/models/bank_transfer_event_sync_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/bank_transfer_event_type.rb b/lib/plaid/models/bank_transfer_event_type.rb index c38097a5f..064b13b74 100644 --- a/lib/plaid/models/bank_transfer_event_type.rb +++ b/lib/plaid/models/bank_transfer_event_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/bank_transfer_failure.rb b/lib/plaid/models/bank_transfer_failure.rb index 5e26b2358..a6165e40e 100644 --- a/lib/plaid/models/bank_transfer_failure.rb +++ b/lib/plaid/models/bank_transfer_failure.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/bank_transfer_get_request.rb b/lib/plaid/models/bank_transfer_get_request.rb index ce1e4985f..51b35ffa9 100644 --- a/lib/plaid/models/bank_transfer_get_request.rb +++ b/lib/plaid/models/bank_transfer_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/bank_transfer_get_response.rb b/lib/plaid/models/bank_transfer_get_response.rb index 8973b8d7d..0f66685ce 100644 --- a/lib/plaid/models/bank_transfer_get_response.rb +++ b/lib/plaid/models/bank_transfer_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/bank_transfer_list_request.rb b/lib/plaid/models/bank_transfer_list_request.rb index 71ee1ff67..3ea1a36b1 100644 --- a/lib/plaid/models/bank_transfer_list_request.rb +++ b/lib/plaid/models/bank_transfer_list_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -39,6 +39,28 @@ class BankTransferListRequest attr_accessor :direction + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/bank_transfer_list_response.rb b/lib/plaid/models/bank_transfer_list_response.rb index a0ca96f61..407e6608c 100644 --- a/lib/plaid/models/bank_transfer_list_response.rb +++ b/lib/plaid/models/bank_transfer_list_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/bank_transfer_migrate_account_request.rb b/lib/plaid/models/bank_transfer_migrate_account_request.rb index 693d99449..530f3b8da 100644 --- a/lib/plaid/models/bank_transfer_migrate_account_request.rb +++ b/lib/plaid/models/bank_transfer_migrate_account_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/bank_transfer_migrate_account_response.rb b/lib/plaid/models/bank_transfer_migrate_account_response.rb index 3565185b8..753053b64 100644 --- a/lib/plaid/models/bank_transfer_migrate_account_response.rb +++ b/lib/plaid/models/bank_transfer_migrate_account_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/bank_transfer_network.rb b/lib/plaid/models/bank_transfer_network.rb index efab9f2ef..4162ab374 100644 --- a/lib/plaid/models/bank_transfer_network.rb +++ b/lib/plaid/models/bank_transfer_network.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/bank_transfer_status.rb b/lib/plaid/models/bank_transfer_status.rb index cfb9671d5..c51131ffb 100644 --- a/lib/plaid/models/bank_transfer_status.rb +++ b/lib/plaid/models/bank_transfer_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/bank_transfer_sweep.rb b/lib/plaid/models/bank_transfer_sweep.rb index 77df3474d..a4cdd8e89 100644 --- a/lib/plaid/models/bank_transfer_sweep.rb +++ b/lib/plaid/models/bank_transfer_sweep.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/bank_transfer_sweep_get_request.rb b/lib/plaid/models/bank_transfer_sweep_get_request.rb index 375663b03..57ea14620 100644 --- a/lib/plaid/models/bank_transfer_sweep_get_request.rb +++ b/lib/plaid/models/bank_transfer_sweep_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/bank_transfer_sweep_get_response.rb b/lib/plaid/models/bank_transfer_sweep_get_response.rb index 0e1b2d5b4..3a7507d56 100644 --- a/lib/plaid/models/bank_transfer_sweep_get_response.rb +++ b/lib/plaid/models/bank_transfer_sweep_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/bank_transfer_sweep_list_request.rb b/lib/plaid/models/bank_transfer_sweep_list_request.rb index ebdeb5375..8465601d5 100644 --- a/lib/plaid/models/bank_transfer_sweep_list_request.rb +++ b/lib/plaid/models/bank_transfer_sweep_list_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/bank_transfer_sweep_list_response.rb b/lib/plaid/models/bank_transfer_sweep_list_response.rb index 271b8c545..755c8e9e4 100644 --- a/lib/plaid/models/bank_transfer_sweep_list_response.rb +++ b/lib/plaid/models/bank_transfer_sweep_list_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/bank_transfer_type.rb b/lib/plaid/models/bank_transfer_type.rb index 8c73612e5..eb0abf089 100644 --- a/lib/plaid/models/bank_transfer_type.rb +++ b/lib/plaid/models/bank_transfer_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/bank_transfer_user.rb b/lib/plaid/models/bank_transfer_user.rb index 55ba7fff2..179ed1ea5 100644 --- a/lib/plaid/models/bank_transfer_user.rb +++ b/lib/plaid/models/bank_transfer_user.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/bank_transfers_events_update_webhook.rb b/lib/plaid/models/bank_transfers_events_update_webhook.rb index d1b29e354..759953eaa 100644 --- a/lib/plaid/models/bank_transfers_events_update_webhook.rb +++ b/lib/plaid/models/bank_transfers_events_update_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -24,6 +24,28 @@ class BankTransfersEventsUpdateWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/bank_transfers_events_update_webhook_for_auth.rb b/lib/plaid/models/bank_transfers_events_update_webhook_for_auth.rb index 50ee2b4d6..a483c93fd 100644 --- a/lib/plaid/models/bank_transfers_events_update_webhook_for_auth.rb +++ b/lib/plaid/models/bank_transfers_events_update_webhook_for_auth.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -24,6 +24,28 @@ class BankTransfersEventsUpdateWebhookForAuth attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/base_report.rb b/lib/plaid/models/base_report.rb index 9d2f2af96..66fd16579 100644 --- a/lib/plaid/models/base_report.rb +++ b/lib/plaid/models/base_report.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/base_report_account.rb b/lib/plaid/models/base_report_account.rb index 3cda468b5..f5933611d 100644 --- a/lib/plaid/models/base_report_account.rb +++ b/lib/plaid/models/base_report_account.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -47,6 +47,28 @@ class BaseReportAccount attr_accessor :account_insights + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/base_report_account_balances.rb b/lib/plaid/models/base_report_account_balances.rb index eb4a53dfd..2e0beaea8 100644 --- a/lib/plaid/models/base_report_account_balances.rb +++ b/lib/plaid/models/base_report_account_balances.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/base_report_account_balances_all_of.rb b/lib/plaid/models/base_report_account_balances_all_of.rb index 926ff8a0d..6511bf3b6 100644 --- a/lib/plaid/models/base_report_account_balances_all_of.rb +++ b/lib/plaid/models/base_report_account_balances_all_of.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/base_report_account_insights.rb b/lib/plaid/models/base_report_account_insights.rb index 9ed3b5b65..7c3933d45 100644 --- a/lib/plaid/models/base_report_account_insights.rb +++ b/lib/plaid/models/base_report_account_insights.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/base_report_average_flow_insights.rb b/lib/plaid/models/base_report_average_flow_insights.rb index 80f508880..8f8c4aca2 100644 --- a/lib/plaid/models/base_report_average_flow_insights.rb +++ b/lib/plaid/models/base_report_average_flow_insights.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/base_report_average_monthly_balances.rb b/lib/plaid/models/base_report_average_monthly_balances.rb index 0cba0cf22..9d5626098 100644 --- a/lib/plaid/models/base_report_average_monthly_balances.rb +++ b/lib/plaid/models/base_report_average_monthly_balances.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/base_report_get_request.rb b/lib/plaid/models/base_report_get_request.rb index 211a6144b..254e0d557 100644 --- a/lib/plaid/models/base_report_get_request.rb +++ b/lib/plaid/models/base_report_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/base_report_get_response.rb b/lib/plaid/models/base_report_get_response.rb index 347839e15..167ff11e1 100644 --- a/lib/plaid/models/base_report_get_response.rb +++ b/lib/plaid/models/base_report_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/base_report_item.rb b/lib/plaid/models/base_report_item.rb index 7975c5ba0..6e01be1da 100644 --- a/lib/plaid/models/base_report_item.rb +++ b/lib/plaid/models/base_report_item.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/base_report_longest_gap_insights.rb b/lib/plaid/models/base_report_longest_gap_insights.rb index 3fabee95d..73e87d84f 100644 --- a/lib/plaid/models/base_report_longest_gap_insights.rb +++ b/lib/plaid/models/base_report_longest_gap_insights.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/base_report_number_flow_insights.rb b/lib/plaid/models/base_report_number_flow_insights.rb index 5668ad434..044098761 100644 --- a/lib/plaid/models/base_report_number_flow_insights.rb +++ b/lib/plaid/models/base_report_number_flow_insights.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/base_report_transaction.rb b/lib/plaid/models/base_report_transaction.rb index dda4fac91..c6115b523 100644 --- a/lib/plaid/models/base_report_transaction.rb +++ b/lib/plaid/models/base_report_transaction.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/base_report_warning.rb b/lib/plaid/models/base_report_warning.rb index 265a7c926..70a2a06e2 100644 --- a/lib/plaid/models/base_report_warning.rb +++ b/lib/plaid/models/base_report_warning.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -23,6 +23,28 @@ class BaseReportWarning attr_accessor :cause + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/base_report_warning_code.rb b/lib/plaid/models/base_report_warning_code.rb index 344a7c3f9..228c7a949 100644 --- a/lib/plaid/models/base_report_warning_code.rb +++ b/lib/plaid/models/base_report_warning_code.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/base_reports_error_webhook.rb b/lib/plaid/models/base_reports_error_webhook.rb index 18c680172..2e4b222ca 100644 --- a/lib/plaid/models/base_reports_error_webhook.rb +++ b/lib/plaid/models/base_reports_error_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -29,6 +29,28 @@ class BaseReportsErrorWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/base_reports_product_ready_webhook.rb b/lib/plaid/models/base_reports_product_ready_webhook.rb index e4455e3ec..d16a4d726 100644 --- a/lib/plaid/models/base_reports_product_ready_webhook.rb +++ b/lib/plaid/models/base_reports_product_ready_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -27,6 +27,28 @@ class BaseReportsProductReadyWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/beacon_audit_trail.rb b/lib/plaid/models/beacon_audit_trail.rb index 601cdb5bc..004bd5efb 100644 --- a/lib/plaid/models/beacon_audit_trail.rb +++ b/lib/plaid/models/beacon_audit_trail.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -21,6 +21,28 @@ class BeaconAuditTrail # ID of the associated user. attr_accessor :dashboard_user_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/beacon_audit_trail_source.rb b/lib/plaid/models/beacon_audit_trail_source.rb index 22cbfcb01..430a71a32 100644 --- a/lib/plaid/models/beacon_audit_trail_source.rb +++ b/lib/plaid/models/beacon_audit_trail_source.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/beacon_duplicate_detected_webhook.rb b/lib/plaid/models/beacon_duplicate_detected_webhook.rb new file mode 100644 index 000000000..97d89d189 --- /dev/null +++ b/lib/plaid/models/beacon_duplicate_detected_webhook.rb @@ -0,0 +1,292 @@ +=begin +#The Plaid API + +#The Plaid REST API. Please see https://plaid.com/docs/api for more details. + +The version of the OpenAPI document: 2020-09-14_1.474.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 6.3.0 + +=end + +require 'date' +require 'time' + +module Plaid + # Fired when a Beacon User created within your organization matches one of your existing users. + class BeaconDuplicateDetectedWebhook + # `BEACON` + attr_accessor :webhook_type + + # `DUPLICATE_DETECTED` + attr_accessor :webhook_code + + # The ID of the associated Beacon Duplicate. + attr_accessor :beacon_duplicate_id + + attr_accessor :environment + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'webhook_type' => :'webhook_type', + :'webhook_code' => :'webhook_code', + :'beacon_duplicate_id' => :'beacon_duplicate_id', + :'environment' => :'environment' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'webhook_type' => :'String', + :'webhook_code' => :'String', + :'beacon_duplicate_id' => :'String', + :'environment' => :'WebhookEnvironmentValues' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `Plaid::BeaconDuplicateDetectedWebhook` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Plaid::BeaconDuplicateDetectedWebhook`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'webhook_type') + self.webhook_type = attributes[:'webhook_type'] + end + + if attributes.key?(:'webhook_code') + self.webhook_code = attributes[:'webhook_code'] + end + + if attributes.key?(:'beacon_duplicate_id') + self.beacon_duplicate_id = attributes[:'beacon_duplicate_id'] + end + + if attributes.key?(:'environment') + self.environment = attributes[:'environment'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + if @webhook_type.nil? + invalid_properties.push('invalid value for "webhook_type", webhook_type cannot be nil.') + end + + if @webhook_code.nil? + invalid_properties.push('invalid value for "webhook_code", webhook_code cannot be nil.') + end + + if @beacon_duplicate_id.nil? + invalid_properties.push('invalid value for "beacon_duplicate_id", beacon_duplicate_id cannot be nil.') + end + + if @environment.nil? + invalid_properties.push('invalid value for "environment", environment cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + return false if @webhook_type.nil? + return false if @webhook_code.nil? + return false if @beacon_duplicate_id.nil? + return false if @environment.nil? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + webhook_type == o.webhook_type && + webhook_code == o.webhook_code && + beacon_duplicate_id == o.beacon_duplicate_id && + environment == o.environment + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [webhook_type, webhook_code, beacon_duplicate_id, environment].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = Plaid.const_get(type) + klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/lib/plaid/models/beacon_match_summary_code.rb b/lib/plaid/models/beacon_match_summary_code.rb index 14579be49..0e6b6a214 100644 --- a/lib/plaid/models/beacon_match_summary_code.rb +++ b/lib/plaid/models/beacon_match_summary_code.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/beacon_report.rb b/lib/plaid/models/beacon_report.rb index c3a71f9a6..6f47f4cf7 100644 --- a/lib/plaid/models/beacon_report.rb +++ b/lib/plaid/models/beacon_report.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -34,6 +34,28 @@ class BeaconReport attr_accessor :audit_trail + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/beacon_report_create_request.rb b/lib/plaid/models/beacon_report_create_request.rb index 50b39affb..13ed7742d 100644 --- a/lib/plaid/models/beacon_report_create_request.rb +++ b/lib/plaid/models/beacon_report_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -32,6 +32,28 @@ class BeaconReportCreateRequest # 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. attr_accessor :secret + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/beacon_report_create_response.rb b/lib/plaid/models/beacon_report_create_response.rb index 1aeb08879..fe745cee3 100644 --- a/lib/plaid/models/beacon_report_create_response.rb +++ b/lib/plaid/models/beacon_report_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -37,6 +37,28 @@ class BeaconReportCreateResponse # A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive. attr_accessor :request_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/beacon_report_created_webhook.rb b/lib/plaid/models/beacon_report_created_webhook.rb new file mode 100644 index 000000000..6b7212bd8 --- /dev/null +++ b/lib/plaid/models/beacon_report_created_webhook.rb @@ -0,0 +1,292 @@ +=begin +#The Plaid API + +#The Plaid REST API. Please see https://plaid.com/docs/api for more details. + +The version of the OpenAPI document: 2020-09-14_1.474.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 6.3.0 + +=end + +require 'date' +require 'time' + +module Plaid + # Fired when one of your Beacon Users is first reported to the Beacon network. + class BeaconReportCreatedWebhook + # `BEACON` + attr_accessor :webhook_type + + # `REPORT_CREATED` + attr_accessor :webhook_code + + # The ID of the associated Beacon Report. + attr_accessor :beacon_report_id + + attr_accessor :environment + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'webhook_type' => :'webhook_type', + :'webhook_code' => :'webhook_code', + :'beacon_report_id' => :'beacon_report_id', + :'environment' => :'environment' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'webhook_type' => :'String', + :'webhook_code' => :'String', + :'beacon_report_id' => :'String', + :'environment' => :'WebhookEnvironmentValues' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `Plaid::BeaconReportCreatedWebhook` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Plaid::BeaconReportCreatedWebhook`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'webhook_type') + self.webhook_type = attributes[:'webhook_type'] + end + + if attributes.key?(:'webhook_code') + self.webhook_code = attributes[:'webhook_code'] + end + + if attributes.key?(:'beacon_report_id') + self.beacon_report_id = attributes[:'beacon_report_id'] + end + + if attributes.key?(:'environment') + self.environment = attributes[:'environment'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + if @webhook_type.nil? + invalid_properties.push('invalid value for "webhook_type", webhook_type cannot be nil.') + end + + if @webhook_code.nil? + invalid_properties.push('invalid value for "webhook_code", webhook_code cannot be nil.') + end + + if @beacon_report_id.nil? + invalid_properties.push('invalid value for "beacon_report_id", beacon_report_id cannot be nil.') + end + + if @environment.nil? + invalid_properties.push('invalid value for "environment", environment cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + return false if @webhook_type.nil? + return false if @webhook_code.nil? + return false if @beacon_report_id.nil? + return false if @environment.nil? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + webhook_type == o.webhook_type && + webhook_code == o.webhook_code && + beacon_report_id == o.beacon_report_id && + environment == o.environment + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [webhook_type, webhook_code, beacon_report_id, environment].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = Plaid.const_get(type) + klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/lib/plaid/models/beacon_report_list_request.rb b/lib/plaid/models/beacon_report_list_request.rb index 0b41835aa..3d33feb7a 100644 --- a/lib/plaid/models/beacon_report_list_request.rb +++ b/lib/plaid/models/beacon_report_list_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/beacon_report_list_response.rb b/lib/plaid/models/beacon_report_list_response.rb index 376a427c1..5f59c4682 100644 --- a/lib/plaid/models/beacon_report_list_response.rb +++ b/lib/plaid/models/beacon_report_list_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/beacon_report_syndication.rb b/lib/plaid/models/beacon_report_syndication.rb index 7029a574d..c45f82ae0 100644 --- a/lib/plaid/models/beacon_report_syndication.rb +++ b/lib/plaid/models/beacon_report_syndication.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/beacon_report_syndication_analysis.rb b/lib/plaid/models/beacon_report_syndication_analysis.rb index e8c9f26df..bae1aa6f7 100644 --- a/lib/plaid/models/beacon_report_syndication_analysis.rb +++ b/lib/plaid/models/beacon_report_syndication_analysis.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -30,6 +30,28 @@ class BeaconReportSyndicationAnalysis attr_accessor :phone_number + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/beacon_report_syndication_created_webhook.rb b/lib/plaid/models/beacon_report_syndication_created_webhook.rb new file mode 100644 index 000000000..f06af05e1 --- /dev/null +++ b/lib/plaid/models/beacon_report_syndication_created_webhook.rb @@ -0,0 +1,292 @@ +=begin +#The Plaid API + +#The Plaid REST API. Please see https://plaid.com/docs/api for more details. + +The version of the OpenAPI document: 2020-09-14_1.474.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 6.3.0 + +=end + +require 'date' +require 'time' + +module Plaid + # Fired when a report created on the Beacon Network matches with one of your Beacon Users. + class BeaconReportSyndicationCreatedWebhook + # `BEACON` + attr_accessor :webhook_type + + # `REPORT_SYNDICATION_CREATED` + attr_accessor :webhook_code + + # The ID of the associated Beacon Report Syndication. + attr_accessor :beacon_report_syndication_id + + attr_accessor :environment + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'webhook_type' => :'webhook_type', + :'webhook_code' => :'webhook_code', + :'beacon_report_syndication_id' => :'beacon_report_syndication_id', + :'environment' => :'environment' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'webhook_type' => :'String', + :'webhook_code' => :'String', + :'beacon_report_syndication_id' => :'String', + :'environment' => :'WebhookEnvironmentValues' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `Plaid::BeaconReportSyndicationCreatedWebhook` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Plaid::BeaconReportSyndicationCreatedWebhook`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'webhook_type') + self.webhook_type = attributes[:'webhook_type'] + end + + if attributes.key?(:'webhook_code') + self.webhook_code = attributes[:'webhook_code'] + end + + if attributes.key?(:'beacon_report_syndication_id') + self.beacon_report_syndication_id = attributes[:'beacon_report_syndication_id'] + end + + if attributes.key?(:'environment') + self.environment = attributes[:'environment'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + if @webhook_type.nil? + invalid_properties.push('invalid value for "webhook_type", webhook_type cannot be nil.') + end + + if @webhook_code.nil? + invalid_properties.push('invalid value for "webhook_code", webhook_code cannot be nil.') + end + + if @beacon_report_syndication_id.nil? + invalid_properties.push('invalid value for "beacon_report_syndication_id", beacon_report_syndication_id cannot be nil.') + end + + if @environment.nil? + invalid_properties.push('invalid value for "environment", environment cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + return false if @webhook_type.nil? + return false if @webhook_code.nil? + return false if @beacon_report_syndication_id.nil? + return false if @environment.nil? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + webhook_type == o.webhook_type && + webhook_code == o.webhook_code && + beacon_report_syndication_id == o.beacon_report_syndication_id && + environment == o.environment + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [webhook_type, webhook_code, beacon_report_syndication_id, environment].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = Plaid.const_get(type) + klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/lib/plaid/models/beacon_report_syndication_list_request.rb b/lib/plaid/models/beacon_report_syndication_list_request.rb index aa1731fcb..ec0ee66e2 100644 --- a/lib/plaid/models/beacon_report_syndication_list_request.rb +++ b/lib/plaid/models/beacon_report_syndication_list_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/beacon_report_syndication_list_response.rb b/lib/plaid/models/beacon_report_syndication_list_response.rb index dd476eee6..77f642e40 100644 --- a/lib/plaid/models/beacon_report_syndication_list_response.rb +++ b/lib/plaid/models/beacon_report_syndication_list_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/beacon_report_syndication_original_report.rb b/lib/plaid/models/beacon_report_syndication_original_report.rb index 4572fbe6a..ccd35e6fa 100644 --- a/lib/plaid/models/beacon_report_syndication_original_report.rb +++ b/lib/plaid/models/beacon_report_syndication_original_report.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -27,6 +27,28 @@ class BeaconReportSyndicationOriginalReport # A date in the format YYYY-MM-DD (RFC 3339 Section 5.6). attr_accessor :fraud_date + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/beacon_report_type.rb b/lib/plaid/models/beacon_report_type.rb index 8002e4225..ff8d41ba9 100644 --- a/lib/plaid/models/beacon_report_type.rb +++ b/lib/plaid/models/beacon_report_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/beacon_report_updated_webhook.rb b/lib/plaid/models/beacon_report_updated_webhook.rb new file mode 100644 index 000000000..8ad8a9769 --- /dev/null +++ b/lib/plaid/models/beacon_report_updated_webhook.rb @@ -0,0 +1,292 @@ +=begin +#The Plaid API + +#The Plaid REST API. Please see https://plaid.com/docs/api for more details. + +The version of the OpenAPI document: 2020-09-14_1.474.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 6.3.0 + +=end + +require 'date' +require 'time' + +module Plaid + # Fired when one of your existing Beacon Reports has been modified or removed from the Beacon Network. + class BeaconReportUpdatedWebhook + # `BEACON` + attr_accessor :webhook_type + + # `REPORT_UPDATED` + attr_accessor :webhook_code + + # The ID of the associated Beacon Report. + attr_accessor :beacon_report_id + + attr_accessor :environment + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'webhook_type' => :'webhook_type', + :'webhook_code' => :'webhook_code', + :'beacon_report_id' => :'beacon_report_id', + :'environment' => :'environment' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'webhook_type' => :'String', + :'webhook_code' => :'String', + :'beacon_report_id' => :'String', + :'environment' => :'WebhookEnvironmentValues' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `Plaid::BeaconReportUpdatedWebhook` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Plaid::BeaconReportUpdatedWebhook`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'webhook_type') + self.webhook_type = attributes[:'webhook_type'] + end + + if attributes.key?(:'webhook_code') + self.webhook_code = attributes[:'webhook_code'] + end + + if attributes.key?(:'beacon_report_id') + self.beacon_report_id = attributes[:'beacon_report_id'] + end + + if attributes.key?(:'environment') + self.environment = attributes[:'environment'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + if @webhook_type.nil? + invalid_properties.push('invalid value for "webhook_type", webhook_type cannot be nil.') + end + + if @webhook_code.nil? + invalid_properties.push('invalid value for "webhook_code", webhook_code cannot be nil.') + end + + if @beacon_report_id.nil? + invalid_properties.push('invalid value for "beacon_report_id", beacon_report_id cannot be nil.') + end + + if @environment.nil? + invalid_properties.push('invalid value for "environment", environment cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + return false if @webhook_type.nil? + return false if @webhook_code.nil? + return false if @beacon_report_id.nil? + return false if @environment.nil? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + webhook_type == o.webhook_type && + webhook_code == o.webhook_code && + beacon_report_id == o.beacon_report_id && + environment == o.environment + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [webhook_type, webhook_code, beacon_report_id, environment].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = Plaid.const_get(type) + klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/lib/plaid/models/beacon_user_address.rb b/lib/plaid/models/beacon_user_address.rb index 837ff3ecd..f1708592e 100644 --- a/lib/plaid/models/beacon_user_address.rb +++ b/lib/plaid/models/beacon_user_address.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/beacon_user_create_request.rb b/lib/plaid/models/beacon_user_create_request.rb index 27417eb2c..543a792fa 100644 --- a/lib/plaid/models/beacon_user_create_request.rb +++ b/lib/plaid/models/beacon_user_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/beacon_user_create_response.rb b/lib/plaid/models/beacon_user_create_response.rb index 2a4efabec..7310e143f 100644 --- a/lib/plaid/models/beacon_user_create_response.rb +++ b/lib/plaid/models/beacon_user_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -40,6 +40,28 @@ class BeaconUserCreateResponse # A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive. attr_accessor :request_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/beacon_user_data.rb b/lib/plaid/models/beacon_user_data.rb index 00b70d782..3305281af 100644 --- a/lib/plaid/models/beacon_user_data.rb +++ b/lib/plaid/models/beacon_user_data.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/beacon_user_get_request.rb b/lib/plaid/models/beacon_user_get_request.rb index 57a56a759..4e80d195d 100644 --- a/lib/plaid/models/beacon_user_get_request.rb +++ b/lib/plaid/models/beacon_user_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/beacon_user_get_response.rb b/lib/plaid/models/beacon_user_get_response.rb index ab8b76aee..91dfe6f42 100644 --- a/lib/plaid/models/beacon_user_get_response.rb +++ b/lib/plaid/models/beacon_user_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -40,6 +40,28 @@ class BeaconUserGetResponse # A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive. attr_accessor :request_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/beacon_user_id_number.rb b/lib/plaid/models/beacon_user_id_number.rb index 8e3314436..b72711d00 100644 --- a/lib/plaid/models/beacon_user_id_number.rb +++ b/lib/plaid/models/beacon_user_id_number.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -21,6 +21,28 @@ class BeaconUserIDNumber attr_accessor :type + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/beacon_user_name.rb b/lib/plaid/models/beacon_user_name.rb index 03fb88149..430f269b1 100644 --- a/lib/plaid/models/beacon_user_name.rb +++ b/lib/plaid/models/beacon_user_name.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/beacon_user_request_address.rb b/lib/plaid/models/beacon_user_request_address.rb index 802f3d02a..8989d8dc1 100644 --- a/lib/plaid/models/beacon_user_request_address.rb +++ b/lib/plaid/models/beacon_user_request_address.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/beacon_user_request_data.rb b/lib/plaid/models/beacon_user_request_data.rb index ea53dc15a..a5728d289 100644 --- a/lib/plaid/models/beacon_user_request_data.rb +++ b/lib/plaid/models/beacon_user_request_data.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/beacon_user_review_request.rb b/lib/plaid/models/beacon_user_review_request.rb index 619f1664d..3dbb04a1d 100644 --- a/lib/plaid/models/beacon_user_review_request.rb +++ b/lib/plaid/models/beacon_user_review_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -27,6 +27,28 @@ class BeaconUserReviewRequest # 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. attr_accessor :secret + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/beacon_user_status.rb b/lib/plaid/models/beacon_user_status.rb index 5f8666bd1..a1ef73aea 100644 --- a/lib/plaid/models/beacon_user_status.rb +++ b/lib/plaid/models/beacon_user_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/beacon_user_status_updated_webhook.rb b/lib/plaid/models/beacon_user_status_updated_webhook.rb index 47651dfc1..362494f6b 100644 --- a/lib/plaid/models/beacon_user_status_updated_webhook.rb +++ b/lib/plaid/models/beacon_user_status_updated_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -27,6 +27,28 @@ class BeaconUserStatusUpdatedWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/categories_get_response.rb b/lib/plaid/models/categories_get_response.rb index f41948b2b..9c4a9eeb1 100644 --- a/lib/plaid/models/categories_get_response.rb +++ b/lib/plaid/models/categories_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/category.rb b/lib/plaid/models/category.rb index 299177669..ff2fdee09 100644 --- a/lib/plaid/models/category.rb +++ b/lib/plaid/models/category.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/category_insight_details.rb b/lib/plaid/models/category_insight_details.rb index 4b041bff7..5163ed993 100644 --- a/lib/plaid/models/category_insight_details.rb +++ b/lib/plaid/models/category_insight_details.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/category_insights.rb b/lib/plaid/models/category_insights.rb index c3bbcb6e0..cbef95415 100644 --- a/lib/plaid/models/category_insights.rb +++ b/lib/plaid/models/category_insights.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/cause.rb b/lib/plaid/models/cause.rb index 53952ff16..1848d0840 100644 --- a/lib/plaid/models/cause.rb +++ b/lib/plaid/models/cause.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -45,6 +45,28 @@ class Cause # The `item_id` of the Item associated with this webhook, warning, or error attr_accessor :item_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/cause_all_of.rb b/lib/plaid/models/cause_all_of.rb index 2f653ea08..e4aa1e7f0 100644 --- a/lib/plaid/models/cause_all_of.rb +++ b/lib/plaid/models/cause_all_of.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/client_provided_enhanced_transaction.rb b/lib/plaid/models/client_provided_enhanced_transaction.rb index 5f476a54c..c626f7479 100644 --- a/lib/plaid/models/client_provided_enhanced_transaction.rb +++ b/lib/plaid/models/client_provided_enhanced_transaction.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/client_provided_enriched_transaction.rb b/lib/plaid/models/client_provided_enriched_transaction.rb index 4029dbea1..bf3e0502f 100644 --- a/lib/plaid/models/client_provided_enriched_transaction.rb +++ b/lib/plaid/models/client_provided_enriched_transaction.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -44,6 +44,28 @@ class ClientProvidedEnrichedTransaction attr_accessor :enrichments + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/client_provided_raw_transaction.rb b/lib/plaid/models/client_provided_raw_transaction.rb index e4aad94e3..34afeb6a0 100644 --- a/lib/plaid/models/client_provided_raw_transaction.rb +++ b/lib/plaid/models/client_provided_raw_transaction.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/client_provided_transaction.rb b/lib/plaid/models/client_provided_transaction.rb index fdca34f9a..75d1db368 100644 --- a/lib/plaid/models/client_provided_transaction.rb +++ b/lib/plaid/models/client_provided_transaction.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -50,6 +50,28 @@ class ClientProvidedTransaction # The date the transaction posted, in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) (YYYY-MM-DD) format. attr_accessor :date_posted + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/client_provided_transaction_location.rb b/lib/plaid/models/client_provided_transaction_location.rb index d3fd307c8..1bd1ce7ec 100644 --- a/lib/plaid/models/client_provided_transaction_location.rb +++ b/lib/plaid/models/client_provided_transaction_location.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/connected_application.rb b/lib/plaid/models/connected_application.rb index 3cf573273..f053339de 100644 --- a/lib/plaid/models/connected_application.rb +++ b/lib/plaid/models/connected_application.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/consumer_report_permissible_purpose.rb b/lib/plaid/models/consumer_report_permissible_purpose.rb index d672e07a3..f7e2c9261 100644 --- a/lib/plaid/models/consumer_report_permissible_purpose.rb +++ b/lib/plaid/models/consumer_report_permissible_purpose.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/consumer_report_user_identity.rb b/lib/plaid/models/consumer_report_user_identity.rb index ba5841fbe..fdf29e140 100644 --- a/lib/plaid/models/consumer_report_user_identity.rb +++ b/lib/plaid/models/consumer_report_user_identity.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/counterparty.rb b/lib/plaid/models/counterparty.rb index df592f74f..0f293bdf8 100644 --- a/lib/plaid/models/counterparty.rb +++ b/lib/plaid/models/counterparty.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -33,6 +33,28 @@ class Counterparty # A description of how confident we are that the provided counterparty is involved in the transaction. `VERY_HIGH`: We recognize this counterparty and we are more than 98% confident that it is involved in this transaction. `HIGH`: We recognize this counterparty and we are more than 90% confident that it is involved in this transaction. `MEDIUM`: We are moderately confident that this counterparty was involved in this transaction, but some details may differ from our records. `LOW`: We didn’t find a matching counterparty in our records, so we are returning a cleansed name parsed out of the request description. `UNKNOWN`: We don’t know the confidence level for this counterparty. attr_accessor :confidence_level + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/counterparty_insights.rb b/lib/plaid/models/counterparty_insights.rb index 170e4c8f7..914d86d3a 100644 --- a/lib/plaid/models/counterparty_insights.rb +++ b/lib/plaid/models/counterparty_insights.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/counterparty_type.rb b/lib/plaid/models/counterparty_type.rb index f3ff92089..6f5aa5196 100644 --- a/lib/plaid/models/counterparty_type.rb +++ b/lib/plaid/models/counterparty_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/country_code.rb b/lib/plaid/models/country_code.rb index 255890b7b..feefbbc87 100644 --- a/lib/plaid/models/country_code.rb +++ b/lib/plaid/models/country_code.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/cra_bank_income.rb b/lib/plaid/models/cra_bank_income.rb index e84d00ecd..64e50c8a6 100644 --- a/lib/plaid/models/cra_bank_income.rb +++ b/lib/plaid/models/cra_bank_income.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/cra_bank_income_account.rb b/lib/plaid/models/cra_bank_income_account.rb index 6e45a1331..120bdce09 100644 --- a/lib/plaid/models/cra_bank_income_account.rb +++ b/lib/plaid/models/cra_bank_income_account.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -32,6 +32,28 @@ class CraBankIncomeAccount # Data returned by the financial institution about the account owner or owners. Identity information is optional, so field may return an empty array. attr_accessor :owners + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/cra_bank_income_cause.rb b/lib/plaid/models/cra_bank_income_cause.rb index 93f058fb5..09c6536d2 100644 --- a/lib/plaid/models/cra_bank_income_cause.rb +++ b/lib/plaid/models/cra_bank_income_cause.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -27,6 +27,28 @@ class CraBankIncomeCause # A user-friendly representation of the error code. null if the error is not related to user action. This may change over time and is not safe for programmatic use. attr_accessor :display_message + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/cra_bank_income_complete_result.rb b/lib/plaid/models/cra_bank_income_complete_result.rb index 40e4b171e..b68313a08 100644 --- a/lib/plaid/models/cra_bank_income_complete_result.rb +++ b/lib/plaid/models/cra_bank_income_complete_result.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/cra_bank_income_complete_webhook.rb b/lib/plaid/models/cra_bank_income_complete_webhook.rb index eeaaf0748..b74c98271 100644 --- a/lib/plaid/models/cra_bank_income_complete_webhook.rb +++ b/lib/plaid/models/cra_bank_income_complete_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -29,6 +29,28 @@ class CraBankIncomeCompleteWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/cra_bank_income_employer.rb b/lib/plaid/models/cra_bank_income_employer.rb index 5ff94f4db..2e784e28f 100644 --- a/lib/plaid/models/cra_bank_income_employer.rb +++ b/lib/plaid/models/cra_bank_income_employer.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/cra_bank_income_get_request.rb b/lib/plaid/models/cra_bank_income_get_request.rb index 093a59e9c..9a435c070 100644 --- a/lib/plaid/models/cra_bank_income_get_request.rb +++ b/lib/plaid/models/cra_bank_income_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/cra_bank_income_get_response.rb b/lib/plaid/models/cra_bank_income_get_response.rb index 6be41076c..bb0ab7bc1 100644 --- a/lib/plaid/models/cra_bank_income_get_response.rb +++ b/lib/plaid/models/cra_bank_income_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/cra_bank_income_historical_summary.rb b/lib/plaid/models/cra_bank_income_historical_summary.rb index 3b13e58a2..2adf1990d 100644 --- a/lib/plaid/models/cra_bank_income_historical_summary.rb +++ b/lib/plaid/models/cra_bank_income_historical_summary.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/cra_bank_income_item.rb b/lib/plaid/models/cra_bank_income_item.rb index 43aa2c4e3..5eb3c367d 100644 --- a/lib/plaid/models/cra_bank_income_item.rb +++ b/lib/plaid/models/cra_bank_income_item.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/cra_bank_income_source.rb b/lib/plaid/models/cra_bank_income_source.rb index e17b0b994..bfcb64803 100644 --- a/lib/plaid/models/cra_bank_income_source.rb +++ b/lib/plaid/models/cra_bank_income_source.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -60,6 +60,28 @@ class CraBankIncomeSource attr_accessor :historical_summary + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/cra_bank_income_summary.rb b/lib/plaid/models/cra_bank_income_summary.rb index fc7b8df04..efd0748b4 100644 --- a/lib/plaid/models/cra_bank_income_summary.rb +++ b/lib/plaid/models/cra_bank_income_summary.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/cra_bank_income_transaction.rb b/lib/plaid/models/cra_bank_income_transaction.rb index 881a37f89..5b3c78d41 100644 --- a/lib/plaid/models/cra_bank_income_transaction.rb +++ b/lib/plaid/models/cra_bank_income_transaction.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/cra_bank_income_warning.rb b/lib/plaid/models/cra_bank_income_warning.rb index 5cca9bc50..d8d5978d1 100644 --- a/lib/plaid/models/cra_bank_income_warning.rb +++ b/lib/plaid/models/cra_bank_income_warning.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -22,6 +22,28 @@ class CraBankIncomeWarning attr_accessor :cause + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/cra_bank_income_warning_code.rb b/lib/plaid/models/cra_bank_income_warning_code.rb index d05975776..9e0d78cef 100644 --- a/lib/plaid/models/cra_bank_income_warning_code.rb +++ b/lib/plaid/models/cra_bank_income_warning_code.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit1099.rb b/lib/plaid/models/credit1099.rb index 16cb2e763..a3f717765 100644 --- a/lib/plaid/models/credit1099.rb +++ b/lib/plaid/models/credit1099.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -167,6 +167,28 @@ class Credit1099 # State income tax reported for secondary state. attr_accessor :secondary_state_income_tax + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/credit1099_filer.rb b/lib/plaid/models/credit1099_filer.rb index d2eec53c2..ba5d8a443 100644 --- a/lib/plaid/models/credit1099_filer.rb +++ b/lib/plaid/models/credit1099_filer.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit1099_payer.rb b/lib/plaid/models/credit1099_payer.rb index 45d7300a4..7c019f542 100644 --- a/lib/plaid/models/credit1099_payer.rb +++ b/lib/plaid/models/credit1099_payer.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit1099_recipient.rb b/lib/plaid/models/credit1099_recipient.rb index c52da02e4..9ce2e12dd 100644 --- a/lib/plaid/models/credit1099_recipient.rb +++ b/lib/plaid/models/credit1099_recipient.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_account_subtype.rb b/lib/plaid/models/credit_account_subtype.rb index 518f51673..3a85cfb93 100644 --- a/lib/plaid/models/credit_account_subtype.rb +++ b/lib/plaid/models/credit_account_subtype.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_ach_class.rb b/lib/plaid/models/credit_ach_class.rb index a5af0cecd..34e787930 100644 --- a/lib/plaid/models/credit_ach_class.rb +++ b/lib/plaid/models/credit_ach_class.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_amount_with_currency.rb b/lib/plaid/models/credit_amount_with_currency.rb index 5faea8538..101e774f7 100644 --- a/lib/plaid/models/credit_amount_with_currency.rb +++ b/lib/plaid/models/credit_amount_with_currency.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_audit_copy_token_create_request.rb b/lib/plaid/models/credit_audit_copy_token_create_request.rb index b64600126..da7e6e386 100644 --- a/lib/plaid/models/credit_audit_copy_token_create_request.rb +++ b/lib/plaid/models/credit_audit_copy_token_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_audit_copy_token_create_response.rb b/lib/plaid/models/credit_audit_copy_token_create_response.rb index 5ddcfa178..3603af338 100644 --- a/lib/plaid/models/credit_audit_copy_token_create_response.rb +++ b/lib/plaid/models/credit_audit_copy_token_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_audit_copy_token_remove_request.rb b/lib/plaid/models/credit_audit_copy_token_remove_request.rb index 0e8b3f24e..5a1522e40 100644 --- a/lib/plaid/models/credit_audit_copy_token_remove_request.rb +++ b/lib/plaid/models/credit_audit_copy_token_remove_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_audit_copy_token_remove_response.rb b/lib/plaid/models/credit_audit_copy_token_remove_response.rb index 2f41c47aa..948e9e9cf 100644 --- a/lib/plaid/models/credit_audit_copy_token_remove_response.rb +++ b/lib/plaid/models/credit_audit_copy_token_remove_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_audit_copy_token_update_request.rb b/lib/plaid/models/credit_audit_copy_token_update_request.rb index 78d8379bb..a7534b481 100644 --- a/lib/plaid/models/credit_audit_copy_token_update_request.rb +++ b/lib/plaid/models/credit_audit_copy_token_update_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_audit_copy_token_update_response.rb b/lib/plaid/models/credit_audit_copy_token_update_response.rb index f8b058344..82b0a39b4 100644 --- a/lib/plaid/models/credit_audit_copy_token_update_response.rb +++ b/lib/plaid/models/credit_audit_copy_token_update_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_bank_employer.rb b/lib/plaid/models/credit_bank_employer.rb index 6fe4517b5..d3351a1d9 100644 --- a/lib/plaid/models/credit_bank_employer.rb +++ b/lib/plaid/models/credit_bank_employer.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_bank_employment.rb b/lib/plaid/models/credit_bank_employment.rb index b19c74e32..9ac6c2686 100644 --- a/lib/plaid/models/credit_bank_employment.rb +++ b/lib/plaid/models/credit_bank_employment.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_bank_employment_get_request.rb b/lib/plaid/models/credit_bank_employment_get_request.rb index f3b73d3c4..935550396 100644 --- a/lib/plaid/models/credit_bank_employment_get_request.rb +++ b/lib/plaid/models/credit_bank_employment_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_bank_employment_get_response.rb b/lib/plaid/models/credit_bank_employment_get_response.rb index ef271efb4..4ef8ee971 100644 --- a/lib/plaid/models/credit_bank_employment_get_response.rb +++ b/lib/plaid/models/credit_bank_employment_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_bank_employment_item.rb b/lib/plaid/models/credit_bank_employment_item.rb index 35cbf727c..6e92c1b3d 100644 --- a/lib/plaid/models/credit_bank_employment_item.rb +++ b/lib/plaid/models/credit_bank_employment_item.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_bank_employment_report.rb b/lib/plaid/models/credit_bank_employment_report.rb index 5bb0e5ba1..eb427bc19 100644 --- a/lib/plaid/models/credit_bank_employment_report.rb +++ b/lib/plaid/models/credit_bank_employment_report.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_bank_employment_warning.rb b/lib/plaid/models/credit_bank_employment_warning.rb index 7cf3f4250..84e9b25da 100644 --- a/lib/plaid/models/credit_bank_employment_warning.rb +++ b/lib/plaid/models/credit_bank_employment_warning.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -22,6 +22,28 @@ class CreditBankEmploymentWarning attr_accessor :cause + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/credit_bank_employment_warning_type.rb b/lib/plaid/models/credit_bank_employment_warning_type.rb index b5c5e354d..6bc4147a2 100644 --- a/lib/plaid/models/credit_bank_employment_warning_type.rb +++ b/lib/plaid/models/credit_bank_employment_warning_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_bank_income.rb b/lib/plaid/models/credit_bank_income.rb index 2c39b2fd3..cde7bd88f 100644 --- a/lib/plaid/models/credit_bank_income.rb +++ b/lib/plaid/models/credit_bank_income.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_bank_income_account.rb b/lib/plaid/models/credit_bank_income_account.rb index 30e8958cf..bfb5535dc 100644 --- a/lib/plaid/models/credit_bank_income_account.rb +++ b/lib/plaid/models/credit_bank_income_account.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -35,6 +35,28 @@ class CreditBankIncomeAccount # Data returned by the financial institution about the account owner or owners. Identity information is optional, so field may return an empty array. attr_accessor :owners + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/credit_bank_income_account_type.rb b/lib/plaid/models/credit_bank_income_account_type.rb index 6b8ce7974..b935b8e7d 100644 --- a/lib/plaid/models/credit_bank_income_account_type.rb +++ b/lib/plaid/models/credit_bank_income_account_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_bank_income_category.rb b/lib/plaid/models/credit_bank_income_category.rb index 1114be86f..44b0a63ac 100644 --- a/lib/plaid/models/credit_bank_income_category.rb +++ b/lib/plaid/models/credit_bank_income_category.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_bank_income_cause.rb b/lib/plaid/models/credit_bank_income_cause.rb index d2c9ccb0b..fcc3e5560 100644 --- a/lib/plaid/models/credit_bank_income_cause.rb +++ b/lib/plaid/models/credit_bank_income_cause.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -30,6 +30,28 @@ class CreditBankIncomeCause # The `item_id` of the Item associated with this warning. attr_accessor :item_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/credit_bank_income_error_type.rb b/lib/plaid/models/credit_bank_income_error_type.rb index 725fc0062..9e9a5b145 100644 --- a/lib/plaid/models/credit_bank_income_error_type.rb +++ b/lib/plaid/models/credit_bank_income_error_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_bank_income_get_request.rb b/lib/plaid/models/credit_bank_income_get_request.rb index bd2e8bb13..2bcdffe5f 100644 --- a/lib/plaid/models/credit_bank_income_get_request.rb +++ b/lib/plaid/models/credit_bank_income_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_bank_income_get_request_options.rb b/lib/plaid/models/credit_bank_income_get_request_options.rb index a9feeaa5d..d52493904 100644 --- a/lib/plaid/models/credit_bank_income_get_request_options.rb +++ b/lib/plaid/models/credit_bank_income_get_request_options.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_bank_income_get_response.rb b/lib/plaid/models/credit_bank_income_get_response.rb index 738d6887f..269f0481e 100644 --- a/lib/plaid/models/credit_bank_income_get_response.rb +++ b/lib/plaid/models/credit_bank_income_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_bank_income_historical_summary.rb b/lib/plaid/models/credit_bank_income_historical_summary.rb index 1c15768b8..8b8820ddb 100644 --- a/lib/plaid/models/credit_bank_income_historical_summary.rb +++ b/lib/plaid/models/credit_bank_income_historical_summary.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_bank_income_item.rb b/lib/plaid/models/credit_bank_income_item.rb index 39ae5df51..91266f7e5 100644 --- a/lib/plaid/models/credit_bank_income_item.rb +++ b/lib/plaid/models/credit_bank_income_item.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_bank_income_pay_frequency.rb b/lib/plaid/models/credit_bank_income_pay_frequency.rb index f4a94bd69..194835e2f 100644 --- a/lib/plaid/models/credit_bank_income_pay_frequency.rb +++ b/lib/plaid/models/credit_bank_income_pay_frequency.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_bank_income_pdf_get_request.rb b/lib/plaid/models/credit_bank_income_pdf_get_request.rb index 91f785c53..e72b24601 100644 --- a/lib/plaid/models/credit_bank_income_pdf_get_request.rb +++ b/lib/plaid/models/credit_bank_income_pdf_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_bank_income_refresh_request.rb b/lib/plaid/models/credit_bank_income_refresh_request.rb index 5aa0bed25..ee86f160b 100644 --- a/lib/plaid/models/credit_bank_income_refresh_request.rb +++ b/lib/plaid/models/credit_bank_income_refresh_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_bank_income_refresh_request_options.rb b/lib/plaid/models/credit_bank_income_refresh_request_options.rb index b8a4cbb30..f046719b5 100644 --- a/lib/plaid/models/credit_bank_income_refresh_request_options.rb +++ b/lib/plaid/models/credit_bank_income_refresh_request_options.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_bank_income_refresh_response.rb b/lib/plaid/models/credit_bank_income_refresh_response.rb index ff74bc104..10d675ba4 100644 --- a/lib/plaid/models/credit_bank_income_refresh_response.rb +++ b/lib/plaid/models/credit_bank_income_refresh_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_bank_income_source.rb b/lib/plaid/models/credit_bank_income_source.rb index 894c44a17..d96263d03 100644 --- a/lib/plaid/models/credit_bank_income_source.rb +++ b/lib/plaid/models/credit_bank_income_source.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -43,6 +43,28 @@ class CreditBankIncomeSource attr_accessor :historical_summary + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/credit_bank_income_summary.rb b/lib/plaid/models/credit_bank_income_summary.rb index 0abe1e956..cc272682a 100644 --- a/lib/plaid/models/credit_bank_income_summary.rb +++ b/lib/plaid/models/credit_bank_income_summary.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_bank_income_transaction.rb b/lib/plaid/models/credit_bank_income_transaction.rb index d8cb5805c..a7d12e89e 100644 --- a/lib/plaid/models/credit_bank_income_transaction.rb +++ b/lib/plaid/models/credit_bank_income_transaction.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_bank_income_warning.rb b/lib/plaid/models/credit_bank_income_warning.rb index 0f86a27c0..144424216 100644 --- a/lib/plaid/models/credit_bank_income_warning.rb +++ b/lib/plaid/models/credit_bank_income_warning.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -22,6 +22,28 @@ class CreditBankIncomeWarning attr_accessor :cause + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/credit_bank_income_warning_code.rb b/lib/plaid/models/credit_bank_income_warning_code.rb index 5820a9401..4c06c10bf 100644 --- a/lib/plaid/models/credit_bank_income_warning_code.rb +++ b/lib/plaid/models/credit_bank_income_warning_code.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_bank_income_warning_type.rb b/lib/plaid/models/credit_bank_income_warning_type.rb index 02e218424..b9a0903a8 100644 --- a/lib/plaid/models/credit_bank_income_warning_type.rb +++ b/lib/plaid/models/credit_bank_income_warning_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_bank_income_webhook_update_request.rb b/lib/plaid/models/credit_bank_income_webhook_update_request.rb index a39835364..e4e6ebe22 100644 --- a/lib/plaid/models/credit_bank_income_webhook_update_request.rb +++ b/lib/plaid/models/credit_bank_income_webhook_update_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_bank_income_webhook_update_response.rb b/lib/plaid/models/credit_bank_income_webhook_update_response.rb index 0bb290776..5addb6787 100644 --- a/lib/plaid/models/credit_bank_income_webhook_update_response.rb +++ b/lib/plaid/models/credit_bank_income_webhook_update_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_bank_statement_upload_account_owner.rb b/lib/plaid/models/credit_bank_statement_upload_account_owner.rb index 7abb0160d..77972d661 100644 --- a/lib/plaid/models/credit_bank_statement_upload_account_owner.rb +++ b/lib/plaid/models/credit_bank_statement_upload_account_owner.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_bank_statement_upload_account_owner_address.rb b/lib/plaid/models/credit_bank_statement_upload_account_owner_address.rb index 66646937c..48f52cd79 100644 --- a/lib/plaid/models/credit_bank_statement_upload_account_owner_address.rb +++ b/lib/plaid/models/credit_bank_statement_upload_account_owner_address.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_bank_statement_upload_bank_account.rb b/lib/plaid/models/credit_bank_statement_upload_bank_account.rb index b9d0197e0..d8ca963a4 100644 --- a/lib/plaid/models/credit_bank_statement_upload_bank_account.rb +++ b/lib/plaid/models/credit_bank_statement_upload_bank_account.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_bank_statement_upload_bank_account_period.rb b/lib/plaid/models/credit_bank_statement_upload_bank_account_period.rb index 9e1136bc0..ea0b484f8 100644 --- a/lib/plaid/models/credit_bank_statement_upload_bank_account_period.rb +++ b/lib/plaid/models/credit_bank_statement_upload_bank_account_period.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_bank_statement_upload_item.rb b/lib/plaid/models/credit_bank_statement_upload_item.rb index c251859f3..9ccc7a2f2 100644 --- a/lib/plaid/models/credit_bank_statement_upload_item.rb +++ b/lib/plaid/models/credit_bank_statement_upload_item.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_bank_statement_upload_object.rb b/lib/plaid/models/credit_bank_statement_upload_object.rb index 9fe7fc708..c42206c5a 100644 --- a/lib/plaid/models/credit_bank_statement_upload_object.rb +++ b/lib/plaid/models/credit_bank_statement_upload_object.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_bank_statement_upload_transaction.rb b/lib/plaid/models/credit_bank_statement_upload_transaction.rb index 3f0b37620..c1a077839 100644 --- a/lib/plaid/models/credit_bank_statement_upload_transaction.rb +++ b/lib/plaid/models/credit_bank_statement_upload_transaction.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_bank_statements_uploads_get_request.rb b/lib/plaid/models/credit_bank_statements_uploads_get_request.rb index 43f4be155..6eaf80968 100644 --- a/lib/plaid/models/credit_bank_statements_uploads_get_request.rb +++ b/lib/plaid/models/credit_bank_statements_uploads_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_bank_statements_uploads_get_response.rb b/lib/plaid/models/credit_bank_statements_uploads_get_response.rb index 4a35f97e6..9c5e22bb2 100644 --- a/lib/plaid/models/credit_bank_statements_uploads_get_response.rb +++ b/lib/plaid/models/credit_bank_statements_uploads_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_card_liability.rb b/lib/plaid/models/credit_card_liability.rb index 81f411322..5aa2308ad 100644 --- a/lib/plaid/models/credit_card_liability.rb +++ b/lib/plaid/models/credit_card_liability.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_category.rb b/lib/plaid/models/credit_category.rb index c71558049..ea36501e2 100644 --- a/lib/plaid/models/credit_category.rb +++ b/lib/plaid/models/credit_category.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_document_metadata.rb b/lib/plaid/models/credit_document_metadata.rb index 06533ee29..56eb3775c 100644 --- a/lib/plaid/models/credit_document_metadata.rb +++ b/lib/plaid/models/credit_document_metadata.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_employer_verification.rb b/lib/plaid/models/credit_employer_verification.rb index 1004cd421..cc89afeba 100644 --- a/lib/plaid/models/credit_employer_verification.rb +++ b/lib/plaid/models/credit_employer_verification.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_employment_get_request.rb b/lib/plaid/models/credit_employment_get_request.rb index 349cef6c2..c4981f905 100644 --- a/lib/plaid/models/credit_employment_get_request.rb +++ b/lib/plaid/models/credit_employment_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_employment_get_response.rb b/lib/plaid/models/credit_employment_get_response.rb index 112ca23b7..419340d39 100644 --- a/lib/plaid/models/credit_employment_get_response.rb +++ b/lib/plaid/models/credit_employment_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_employment_item.rb b/lib/plaid/models/credit_employment_item.rb index 1b5721c7e..c9928b8ff 100644 --- a/lib/plaid/models/credit_employment_item.rb +++ b/lib/plaid/models/credit_employment_item.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_employment_verification.rb b/lib/plaid/models/credit_employment_verification.rb index b53f6da4d..2b063e76e 100644 --- a/lib/plaid/models/credit_employment_verification.rb +++ b/lib/plaid/models/credit_employment_verification.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_filter.rb b/lib/plaid/models/credit_filter.rb index b0f8923a5..cd75c9ca7 100644 --- a/lib/plaid/models/credit_filter.rb +++ b/lib/plaid/models/credit_filter.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_freddie_mac_asset.rb b/lib/plaid/models/credit_freddie_mac_asset.rb index dbdd8a7f3..dfc12a592 100644 --- a/lib/plaid/models/credit_freddie_mac_asset.rb +++ b/lib/plaid/models/credit_freddie_mac_asset.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_freddie_mac_asset_transaction.rb b/lib/plaid/models/credit_freddie_mac_asset_transaction.rb index 971c8e45b..854dcb189 100644 --- a/lib/plaid/models/credit_freddie_mac_asset_transaction.rb +++ b/lib/plaid/models/credit_freddie_mac_asset_transaction.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_freddie_mac_asset_transactions.rb b/lib/plaid/models/credit_freddie_mac_asset_transactions.rb index 944f17c75..28a5cceb7 100644 --- a/lib/plaid/models/credit_freddie_mac_asset_transactions.rb +++ b/lib/plaid/models/credit_freddie_mac_asset_transactions.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_freddie_mac_assets.rb b/lib/plaid/models/credit_freddie_mac_assets.rb index ecefe050b..04d2ae548 100644 --- a/lib/plaid/models/credit_freddie_mac_assets.rb +++ b/lib/plaid/models/credit_freddie_mac_assets.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_freddie_mac_individual_name.rb b/lib/plaid/models/credit_freddie_mac_individual_name.rb index e5c540248..c3d6eed9a 100644 --- a/lib/plaid/models/credit_freddie_mac_individual_name.rb +++ b/lib/plaid/models/credit_freddie_mac_individual_name.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_freddie_mac_loan.rb b/lib/plaid/models/credit_freddie_mac_loan.rb index 408ce5359..de248c45c 100644 --- a/lib/plaid/models/credit_freddie_mac_loan.rb +++ b/lib/plaid/models/credit_freddie_mac_loan.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_freddie_mac_loan_identifiers.rb b/lib/plaid/models/credit_freddie_mac_loan_identifiers.rb index 2b5d501ae..c3984028a 100644 --- a/lib/plaid/models/credit_freddie_mac_loan_identifiers.rb +++ b/lib/plaid/models/credit_freddie_mac_loan_identifiers.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_freddie_mac_loans.rb b/lib/plaid/models/credit_freddie_mac_loans.rb index cb7d20d30..9ff0a4177 100644 --- a/lib/plaid/models/credit_freddie_mac_loans.rb +++ b/lib/plaid/models/credit_freddie_mac_loans.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_freddie_mac_parties.rb b/lib/plaid/models/credit_freddie_mac_parties.rb index 4c88078ed..107a7cf67 100644 --- a/lib/plaid/models/credit_freddie_mac_parties.rb +++ b/lib/plaid/models/credit_freddie_mac_parties.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_freddie_mac_party.rb b/lib/plaid/models/credit_freddie_mac_party.rb index 49aefacd6..36fcb9e30 100644 --- a/lib/plaid/models/credit_freddie_mac_party.rb +++ b/lib/plaid/models/credit_freddie_mac_party.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_freddie_mac_party_individual.rb b/lib/plaid/models/credit_freddie_mac_party_individual.rb index f51ec1aff..225109ef9 100644 --- a/lib/plaid/models/credit_freddie_mac_party_individual.rb +++ b/lib/plaid/models/credit_freddie_mac_party_individual.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_freddie_mac_reporting_information.rb b/lib/plaid/models/credit_freddie_mac_reporting_information.rb index bf213475b..127d4ca5f 100644 --- a/lib/plaid/models/credit_freddie_mac_reporting_information.rb +++ b/lib/plaid/models/credit_freddie_mac_reporting_information.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_freddie_mac_reports_get_request.rb b/lib/plaid/models/credit_freddie_mac_reports_get_request.rb index 954887108..e3c96cf0c 100644 --- a/lib/plaid/models/credit_freddie_mac_reports_get_request.rb +++ b/lib/plaid/models/credit_freddie_mac_reports_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_freddie_mac_reports_get_response.rb b/lib/plaid/models/credit_freddie_mac_reports_get_response.rb index 8f38d4a1d..b5e01bcb3 100644 --- a/lib/plaid/models/credit_freddie_mac_reports_get_response.rb +++ b/lib/plaid/models/credit_freddie_mac_reports_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_freddie_mac_service.rb b/lib/plaid/models/credit_freddie_mac_service.rb index ed88fd4fd..233bb937b 100644 --- a/lib/plaid/models/credit_freddie_mac_service.rb +++ b/lib/plaid/models/credit_freddie_mac_service.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_freddie_mac_services.rb b/lib/plaid/models/credit_freddie_mac_services.rb index e8f6af136..72fc35c4a 100644 --- a/lib/plaid/models/credit_freddie_mac_services.rb +++ b/lib/plaid/models/credit_freddie_mac_services.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_freddie_mac_verification_of_asset.rb b/lib/plaid/models/credit_freddie_mac_verification_of_asset.rb index c01c2ea1e..b67357f66 100644 --- a/lib/plaid/models/credit_freddie_mac_verification_of_asset.rb +++ b/lib/plaid/models/credit_freddie_mac_verification_of_asset.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_freddie_mac_verification_of_asset_response.rb b/lib/plaid/models/credit_freddie_mac_verification_of_asset_response.rb index 3f953820c..b3f9517bf 100644 --- a/lib/plaid/models/credit_freddie_mac_verification_of_asset_response.rb +++ b/lib/plaid/models/credit_freddie_mac_verification_of_asset_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_freddie_mac_verification_of_assets_deal.rb b/lib/plaid/models/credit_freddie_mac_verification_of_assets_deal.rb index 0c61829b8..8a33bc228 100644 --- a/lib/plaid/models/credit_freddie_mac_verification_of_assets_deal.rb +++ b/lib/plaid/models/credit_freddie_mac_verification_of_assets_deal.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_pay_stub.rb b/lib/plaid/models/credit_pay_stub.rb index 840c2ba80..0de6213f5 100644 --- a/lib/plaid/models/credit_pay_stub.rb +++ b/lib/plaid/models/credit_pay_stub.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_pay_stub_address.rb b/lib/plaid/models/credit_pay_stub_address.rb index 208ec8a34..4033b3a35 100644 --- a/lib/plaid/models/credit_pay_stub_address.rb +++ b/lib/plaid/models/credit_pay_stub_address.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_pay_stub_deductions.rb b/lib/plaid/models/credit_pay_stub_deductions.rb index b8476923b..8ce6ed670 100644 --- a/lib/plaid/models/credit_pay_stub_deductions.rb +++ b/lib/plaid/models/credit_pay_stub_deductions.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_pay_stub_earnings.rb b/lib/plaid/models/credit_pay_stub_earnings.rb index 1e102111c..7cdaf9c49 100644 --- a/lib/plaid/models/credit_pay_stub_earnings.rb +++ b/lib/plaid/models/credit_pay_stub_earnings.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_pay_stub_employee.rb b/lib/plaid/models/credit_pay_stub_employee.rb index 28495e710..83609309f 100644 --- a/lib/plaid/models/credit_pay_stub_employee.rb +++ b/lib/plaid/models/credit_pay_stub_employee.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_pay_stub_employer.rb b/lib/plaid/models/credit_pay_stub_employer.rb index 8028474aa..0a9f24c95 100644 --- a/lib/plaid/models/credit_pay_stub_employer.rb +++ b/lib/plaid/models/credit_pay_stub_employer.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_pay_stub_net_pay.rb b/lib/plaid/models/credit_pay_stub_net_pay.rb index c4aaf869a..a36f89376 100644 --- a/lib/plaid/models/credit_pay_stub_net_pay.rb +++ b/lib/plaid/models/credit_pay_stub_net_pay.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_pay_stub_pay_basis_type.rb b/lib/plaid/models/credit_pay_stub_pay_basis_type.rb index 4e07951f3..ef77af3a8 100644 --- a/lib/plaid/models/credit_pay_stub_pay_basis_type.rb +++ b/lib/plaid/models/credit_pay_stub_pay_basis_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_payroll_income_get_request.rb b/lib/plaid/models/credit_payroll_income_get_request.rb index a89a1974c..5d5b9ecb6 100644 --- a/lib/plaid/models/credit_payroll_income_get_request.rb +++ b/lib/plaid/models/credit_payroll_income_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_payroll_income_get_response.rb b/lib/plaid/models/credit_payroll_income_get_response.rb index 07ccbbd72..fe111c9ee 100644 --- a/lib/plaid/models/credit_payroll_income_get_response.rb +++ b/lib/plaid/models/credit_payroll_income_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_payroll_income_parsing_config_update_request.rb b/lib/plaid/models/credit_payroll_income_parsing_config_update_request.rb index af7848d0d..e2f491639 100644 --- a/lib/plaid/models/credit_payroll_income_parsing_config_update_request.rb +++ b/lib/plaid/models/credit_payroll_income_parsing_config_update_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_payroll_income_parsing_config_update_response.rb b/lib/plaid/models/credit_payroll_income_parsing_config_update_response.rb index 46b1e8dc6..e29a3f4cc 100644 --- a/lib/plaid/models/credit_payroll_income_parsing_config_update_response.rb +++ b/lib/plaid/models/credit_payroll_income_parsing_config_update_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_payroll_income_precheck_request.rb b/lib/plaid/models/credit_payroll_income_precheck_request.rb index 9bf2cf3a1..93c17e86b 100644 --- a/lib/plaid/models/credit_payroll_income_precheck_request.rb +++ b/lib/plaid/models/credit_payroll_income_precheck_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_payroll_income_precheck_response.rb b/lib/plaid/models/credit_payroll_income_precheck_response.rb index 34a2e9f70..fc5ea6a42 100644 --- a/lib/plaid/models/credit_payroll_income_precheck_response.rb +++ b/lib/plaid/models/credit_payroll_income_precheck_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -21,6 +21,28 @@ class CreditPayrollIncomePrecheckResponse attr_accessor :confidence + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/credit_payroll_income_refresh_request.rb b/lib/plaid/models/credit_payroll_income_refresh_request.rb index 9f58e8917..98c01de5c 100644 --- a/lib/plaid/models/credit_payroll_income_refresh_request.rb +++ b/lib/plaid/models/credit_payroll_income_refresh_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_payroll_income_refresh_request_options.rb b/lib/plaid/models/credit_payroll_income_refresh_request_options.rb index adc8d0e0f..69aaf4f02 100644 --- a/lib/plaid/models/credit_payroll_income_refresh_request_options.rb +++ b/lib/plaid/models/credit_payroll_income_refresh_request_options.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_payroll_income_refresh_response.rb b/lib/plaid/models/credit_payroll_income_refresh_response.rb index 5f099495d..7075becc4 100644 --- a/lib/plaid/models/credit_payroll_income_refresh_response.rb +++ b/lib/plaid/models/credit_payroll_income_refresh_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_payroll_income_risk_signals_get_request.rb b/lib/plaid/models/credit_payroll_income_risk_signals_get_request.rb index 2db654080..9403d2004 100644 --- a/lib/plaid/models/credit_payroll_income_risk_signals_get_request.rb +++ b/lib/plaid/models/credit_payroll_income_risk_signals_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_payroll_income_risk_signals_get_response.rb b/lib/plaid/models/credit_payroll_income_risk_signals_get_response.rb index f8b7fff51..1f62519d7 100644 --- a/lib/plaid/models/credit_payroll_income_risk_signals_get_response.rb +++ b/lib/plaid/models/credit_payroll_income_risk_signals_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_platform_ids.rb b/lib/plaid/models/credit_platform_ids.rb index 9f1ad6369..d0ad9f245 100644 --- a/lib/plaid/models/credit_platform_ids.rb +++ b/lib/plaid/models/credit_platform_ids.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_relay_create_request.rb b/lib/plaid/models/credit_relay_create_request.rb index b135a52ac..4dd0b6270 100644 --- a/lib/plaid/models/credit_relay_create_request.rb +++ b/lib/plaid/models/credit_relay_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_relay_create_response.rb b/lib/plaid/models/credit_relay_create_response.rb index 1e440805a..841048620 100644 --- a/lib/plaid/models/credit_relay_create_response.rb +++ b/lib/plaid/models/credit_relay_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_relay_get_request.rb b/lib/plaid/models/credit_relay_get_request.rb index 334dd3130..febca2a30 100644 --- a/lib/plaid/models/credit_relay_get_request.rb +++ b/lib/plaid/models/credit_relay_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -27,6 +27,28 @@ class CreditRelayGetRequest attr_accessor :report_type + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/credit_relay_pdf_get_request.rb b/lib/plaid/models/credit_relay_pdf_get_request.rb index 7f81caf7c..d9be6327c 100644 --- a/lib/plaid/models/credit_relay_pdf_get_request.rb +++ b/lib/plaid/models/credit_relay_pdf_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -27,6 +27,28 @@ class CreditRelayPDFGetRequest attr_accessor :report_type + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/credit_relay_refresh_request.rb b/lib/plaid/models/credit_relay_refresh_request.rb index 48aecf5ed..3c6df2ff1 100644 --- a/lib/plaid/models/credit_relay_refresh_request.rb +++ b/lib/plaid/models/credit_relay_refresh_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -30,6 +30,28 @@ class CreditRelayRefreshRequest # The URL registered to receive webhooks when the report of a relay token has been refreshed. attr_accessor :webhook + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/credit_relay_refresh_response.rb b/lib/plaid/models/credit_relay_refresh_response.rb index 7b51185ff..d82b30e25 100644 --- a/lib/plaid/models/credit_relay_refresh_response.rb +++ b/lib/plaid/models/credit_relay_refresh_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_relay_remove_request.rb b/lib/plaid/models/credit_relay_remove_request.rb index 94fc277c2..a80649157 100644 --- a/lib/plaid/models/credit_relay_remove_request.rb +++ b/lib/plaid/models/credit_relay_remove_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_relay_remove_response.rb b/lib/plaid/models/credit_relay_remove_response.rb index d2b76fd7e..e6025b64f 100644 --- a/lib/plaid/models/credit_relay_remove_response.rb +++ b/lib/plaid/models/credit_relay_remove_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_session.rb b/lib/plaid/models/credit_session.rb index f9a3b9959..0a51af97f 100644 --- a/lib/plaid/models/credit_session.rb +++ b/lib/plaid/models/credit_session.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_session_bank_employment_result.rb b/lib/plaid/models/credit_session_bank_employment_result.rb index a1fcd4f4c..912294838 100644 --- a/lib/plaid/models/credit_session_bank_employment_result.rb +++ b/lib/plaid/models/credit_session_bank_employment_result.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -24,6 +24,28 @@ class CreditSessionBankEmploymentResult # The Plaid Institution ID associated with the Item. attr_accessor :institution_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/credit_session_bank_employment_status.rb b/lib/plaid/models/credit_session_bank_employment_status.rb index affba18bf..e7bee701b 100644 --- a/lib/plaid/models/credit_session_bank_employment_status.rb +++ b/lib/plaid/models/credit_session_bank_employment_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_session_bank_income_result.rb b/lib/plaid/models/credit_session_bank_income_result.rb index f0d16036e..ef7e192df 100644 --- a/lib/plaid/models/credit_session_bank_income_result.rb +++ b/lib/plaid/models/credit_session_bank_income_result.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -24,6 +24,28 @@ class CreditSessionBankIncomeResult # The Plaid Institution ID associated with the Item. attr_accessor :institution_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/credit_session_bank_income_status.rb b/lib/plaid/models/credit_session_bank_income_status.rb index 72f28c0d3..a4f77633c 100644 --- a/lib/plaid/models/credit_session_bank_income_status.rb +++ b/lib/plaid/models/credit_session_bank_income_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_session_document_income_result.rb b/lib/plaid/models/credit_session_document_income_result.rb index 2475efd2b..a9c2b69f1 100644 --- a/lib/plaid/models/credit_session_document_income_result.rb +++ b/lib/plaid/models/credit_session_document_income_result.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_session_error.rb b/lib/plaid/models/credit_session_error.rb index 900512dc7..da68315eb 100644 --- a/lib/plaid/models/credit_session_error.rb +++ b/lib/plaid/models/credit_session_error.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_session_item_add_result.rb b/lib/plaid/models/credit_session_item_add_result.rb index b7566f40f..4353ad6bc 100644 --- a/lib/plaid/models/credit_session_item_add_result.rb +++ b/lib/plaid/models/credit_session_item_add_result.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_session_payroll_income_result.rb b/lib/plaid/models/credit_session_payroll_income_result.rb index 4603126f6..a462a6012 100644 --- a/lib/plaid/models/credit_session_payroll_income_result.rb +++ b/lib/plaid/models/credit_session_payroll_income_result.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_session_results.rb b/lib/plaid/models/credit_session_results.rb index 895f51e44..fe8233273 100644 --- a/lib/plaid/models/credit_session_results.rb +++ b/lib/plaid/models/credit_session_results.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_sessions_get_request.rb b/lib/plaid/models/credit_sessions_get_request.rb index d4ba01def..737229eeb 100644 --- a/lib/plaid/models/credit_sessions_get_request.rb +++ b/lib/plaid/models/credit_sessions_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_sessions_get_response.rb b/lib/plaid/models/credit_sessions_get_response.rb index f11ba5b34..79f698bd1 100644 --- a/lib/plaid/models/credit_sessions_get_response.rb +++ b/lib/plaid/models/credit_sessions_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/credit_w2.rb b/lib/plaid/models/credit_w2.rb index c4ee708af..eb2a5339b 100644 --- a/lib/plaid/models/credit_w2.rb +++ b/lib/plaid/models/credit_w2.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/customer_initiated_return_risk.rb b/lib/plaid/models/customer_initiated_return_risk.rb index df885c352..dafc36ca7 100644 --- a/lib/plaid/models/customer_initiated_return_risk.rb +++ b/lib/plaid/models/customer_initiated_return_risk.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/dashboard_user.rb b/lib/plaid/models/dashboard_user.rb index f9155a09c..2e0a5aafc 100644 --- a/lib/plaid/models/dashboard_user.rb +++ b/lib/plaid/models/dashboard_user.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -27,6 +27,28 @@ class DashboardUser attr_accessor :status + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/dashboard_user_get_request.rb b/lib/plaid/models/dashboard_user_get_request.rb index 557a69384..e25057cfc 100644 --- a/lib/plaid/models/dashboard_user_get_request.rb +++ b/lib/plaid/models/dashboard_user_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/dashboard_user_get_response.rb b/lib/plaid/models/dashboard_user_get_response.rb index ec0422644..ca68e61e4 100644 --- a/lib/plaid/models/dashboard_user_get_response.rb +++ b/lib/plaid/models/dashboard_user_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -30,6 +30,28 @@ class DashboardUserGetResponse # A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive. attr_accessor :request_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/dashboard_user_list_request.rb b/lib/plaid/models/dashboard_user_list_request.rb index 41c2e7332..f43e29c1e 100644 --- a/lib/plaid/models/dashboard_user_list_request.rb +++ b/lib/plaid/models/dashboard_user_list_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/dashboard_user_list_response.rb b/lib/plaid/models/dashboard_user_list_response.rb index 25ebc8f4c..77b2f7669 100644 --- a/lib/plaid/models/dashboard_user_list_response.rb +++ b/lib/plaid/models/dashboard_user_list_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/dashboard_user_status.rb b/lib/plaid/models/dashboard_user_status.rb index 5a03ca156..bb83748de 100644 --- a/lib/plaid/models/dashboard_user_status.rb +++ b/lib/plaid/models/dashboard_user_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/date_range.rb b/lib/plaid/models/date_range.rb index 4a213e9a8..296f38930 100644 --- a/lib/plaid/models/date_range.rb +++ b/lib/plaid/models/date_range.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/deductions.rb b/lib/plaid/models/deductions.rb index a0d113af7..c88fd1b34 100644 --- a/lib/plaid/models/deductions.rb +++ b/lib/plaid/models/deductions.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/deductions_breakdown.rb b/lib/plaid/models/deductions_breakdown.rb index 4e79932dd..4e4ebf9ce 100644 --- a/lib/plaid/models/deductions_breakdown.rb +++ b/lib/plaid/models/deductions_breakdown.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/deductions_total.rb b/lib/plaid/models/deductions_total.rb index dfe578424..07f9a048a 100644 --- a/lib/plaid/models/deductions_total.rb +++ b/lib/plaid/models/deductions_total.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/default_update_webhook.rb b/lib/plaid/models/default_update_webhook.rb index deba717ec..6fc2dc2e5 100644 --- a/lib/plaid/models/default_update_webhook.rb +++ b/lib/plaid/models/default_update_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -32,6 +32,28 @@ class DefaultUpdateWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/deposit_switch_address_data.rb b/lib/plaid/models/deposit_switch_address_data.rb index da4fa9a8e..f60a92d5c 100644 --- a/lib/plaid/models/deposit_switch_address_data.rb +++ b/lib/plaid/models/deposit_switch_address_data.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/deposit_switch_alt_create_request.rb b/lib/plaid/models/deposit_switch_alt_create_request.rb index 23c38315e..b394306ae 100644 --- a/lib/plaid/models/deposit_switch_alt_create_request.rb +++ b/lib/plaid/models/deposit_switch_alt_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/deposit_switch_alt_create_response.rb b/lib/plaid/models/deposit_switch_alt_create_response.rb index 48009b50e..f881f8af7 100644 --- a/lib/plaid/models/deposit_switch_alt_create_response.rb +++ b/lib/plaid/models/deposit_switch_alt_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/deposit_switch_create_request.rb b/lib/plaid/models/deposit_switch_create_request.rb index 68fa3fe19..57244d720 100644 --- a/lib/plaid/models/deposit_switch_create_request.rb +++ b/lib/plaid/models/deposit_switch_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/deposit_switch_create_request_options.rb b/lib/plaid/models/deposit_switch_create_request_options.rb index 1048bb8a3..9c645f076 100644 --- a/lib/plaid/models/deposit_switch_create_request_options.rb +++ b/lib/plaid/models/deposit_switch_create_request_options.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/deposit_switch_create_response.rb b/lib/plaid/models/deposit_switch_create_response.rb index d60edc9ae..57e07cdb0 100644 --- a/lib/plaid/models/deposit_switch_create_response.rb +++ b/lib/plaid/models/deposit_switch_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/deposit_switch_get_request.rb b/lib/plaid/models/deposit_switch_get_request.rb index 86989d6b8..897cae268 100644 --- a/lib/plaid/models/deposit_switch_get_request.rb +++ b/lib/plaid/models/deposit_switch_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/deposit_switch_get_response.rb b/lib/plaid/models/deposit_switch_get_response.rb index e2f0406df..f727e280e 100644 --- a/lib/plaid/models/deposit_switch_get_response.rb +++ b/lib/plaid/models/deposit_switch_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/deposit_switch_state_update_webhook.rb b/lib/plaid/models/deposit_switch_state_update_webhook.rb index 3db5dd09a..f16ce840c 100644 --- a/lib/plaid/models/deposit_switch_state_update_webhook.rb +++ b/lib/plaid/models/deposit_switch_state_update_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -30,6 +30,28 @@ class DepositSwitchStateUpdateWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/deposit_switch_target_account.rb b/lib/plaid/models/deposit_switch_target_account.rb index 1eaf3d6df..e87e095fd 100644 --- a/lib/plaid/models/deposit_switch_target_account.rb +++ b/lib/plaid/models/deposit_switch_target_account.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/deposit_switch_target_user.rb b/lib/plaid/models/deposit_switch_target_user.rb index e6d948d83..770ac5306 100644 --- a/lib/plaid/models/deposit_switch_target_user.rb +++ b/lib/plaid/models/deposit_switch_target_user.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/deposit_switch_token_create_request.rb b/lib/plaid/models/deposit_switch_token_create_request.rb index b4d3770dd..41bc4d8f8 100644 --- a/lib/plaid/models/deposit_switch_token_create_request.rb +++ b/lib/plaid/models/deposit_switch_token_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/deposit_switch_token_create_response.rb b/lib/plaid/models/deposit_switch_token_create_response.rb index ace183300..8f15b702c 100644 --- a/lib/plaid/models/deposit_switch_token_create_response.rb +++ b/lib/plaid/models/deposit_switch_token_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/depository_account_subtype.rb b/lib/plaid/models/depository_account_subtype.rb index 006fc527f..ff41baecf 100644 --- a/lib/plaid/models/depository_account_subtype.rb +++ b/lib/plaid/models/depository_account_subtype.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/depository_filter.rb b/lib/plaid/models/depository_filter.rb index e649fb187..becef157f 100644 --- a/lib/plaid/models/depository_filter.rb +++ b/lib/plaid/models/depository_filter.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/detailed_originator.rb b/lib/plaid/models/detailed_originator.rb index e6f51be1f..9edaee72f 100644 --- a/lib/plaid/models/detailed_originator.rb +++ b/lib/plaid/models/detailed_originator.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -24,6 +24,28 @@ class DetailedOriginator # The company name of the end customer. attr_accessor :company_name + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/detected_account.rb b/lib/plaid/models/detected_account.rb index 0b6b6a5e4..97e63a7ba 100644 --- a/lib/plaid/models/detected_account.rb +++ b/lib/plaid/models/detected_account.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/distribution_breakdown.rb b/lib/plaid/models/distribution_breakdown.rb index fd7125417..bf7d1ead7 100644 --- a/lib/plaid/models/distribution_breakdown.rb +++ b/lib/plaid/models/distribution_breakdown.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/doc_type.rb b/lib/plaid/models/doc_type.rb index d3221130f..9ae7883b3 100644 --- a/lib/plaid/models/doc_type.rb +++ b/lib/plaid/models/doc_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/document_analysis.rb b/lib/plaid/models/document_analysis.rb index 6bbcd71cd..b34bd27d8 100644 --- a/lib/plaid/models/document_analysis.rb +++ b/lib/plaid/models/document_analysis.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -22,6 +22,28 @@ class DocumentAnalysis attr_accessor :extracted_data + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/document_authenticity_match_code.rb b/lib/plaid/models/document_authenticity_match_code.rb index cb225c1ff..ff0707dd4 100644 --- a/lib/plaid/models/document_authenticity_match_code.rb +++ b/lib/plaid/models/document_authenticity_match_code.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/document_date_of_birth_match_code.rb b/lib/plaid/models/document_date_of_birth_match_code.rb index 5fa13c2ce..fa8d5a740 100644 --- a/lib/plaid/models/document_date_of_birth_match_code.rb +++ b/lib/plaid/models/document_date_of_birth_match_code.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/document_metadata.rb b/lib/plaid/models/document_metadata.rb index 84ff8340b..691948322 100644 --- a/lib/plaid/models/document_metadata.rb +++ b/lib/plaid/models/document_metadata.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -27,6 +27,28 @@ class DocumentMetadata attr_accessor :doc_type + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/document_name_match_code.rb b/lib/plaid/models/document_name_match_code.rb index 3f15b21e9..55cc901b2 100644 --- a/lib/plaid/models/document_name_match_code.rb +++ b/lib/plaid/models/document_name_match_code.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/document_risk_signal.rb b/lib/plaid/models/document_risk_signal.rb index 15c0f9efd..bcc0548b8 100644 --- a/lib/plaid/models/document_risk_signal.rb +++ b/lib/plaid/models/document_risk_signal.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/document_risk_signal_institution_metadata.rb b/lib/plaid/models/document_risk_signal_institution_metadata.rb index 46bd8af64..2dbf1a049 100644 --- a/lib/plaid/models/document_risk_signal_institution_metadata.rb +++ b/lib/plaid/models/document_risk_signal_institution_metadata.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/document_risk_signals_object.rb b/lib/plaid/models/document_risk_signals_object.rb index 05f7e2895..23a0ec822 100644 --- a/lib/plaid/models/document_risk_signals_object.rb +++ b/lib/plaid/models/document_risk_signals_object.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/document_risk_summary.rb b/lib/plaid/models/document_risk_summary.rb index 65519ef39..470d88fc0 100644 --- a/lib/plaid/models/document_risk_summary.rb +++ b/lib/plaid/models/document_risk_summary.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/document_status.rb b/lib/plaid/models/document_status.rb index 96c53345b..34c8eef91 100644 --- a/lib/plaid/models/document_status.rb +++ b/lib/plaid/models/document_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/documentary_verification.rb b/lib/plaid/models/documentary_verification.rb index 3331659be..6f7f0f67b 100644 --- a/lib/plaid/models/documentary_verification.rb +++ b/lib/plaid/models/documentary_verification.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/documentary_verification_document.rb b/lib/plaid/models/documentary_verification_document.rb index d9d01847f..de45f7099 100644 --- a/lib/plaid/models/documentary_verification_document.rb +++ b/lib/plaid/models/documentary_verification_document.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -30,6 +30,28 @@ class DocumentaryVerificationDocument # An ISO8601 formatted timestamp. attr_accessor :redacted_at + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/earnings.rb b/lib/plaid/models/earnings.rb index 546f30109..858655252 100644 --- a/lib/plaid/models/earnings.rb +++ b/lib/plaid/models/earnings.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/earnings_breakdown.rb b/lib/plaid/models/earnings_breakdown.rb index d912bf7d7..2d6a699fd 100644 --- a/lib/plaid/models/earnings_breakdown.rb +++ b/lib/plaid/models/earnings_breakdown.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -39,6 +39,28 @@ class EarningsBreakdown # The year-to-date amount of the deduction. attr_accessor :ytd_amount + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/earnings_breakdown_canonical_description.rb b/lib/plaid/models/earnings_breakdown_canonical_description.rb index 3878408d1..cf4b807cd 100644 --- a/lib/plaid/models/earnings_breakdown_canonical_description.rb +++ b/lib/plaid/models/earnings_breakdown_canonical_description.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/earnings_total.rb b/lib/plaid/models/earnings_total.rb index 81e99b17e..eeaf4d74f 100644 --- a/lib/plaid/models/earnings_total.rb +++ b/lib/plaid/models/earnings_total.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/email.rb b/lib/plaid/models/email.rb index c8509de68..890491ce7 100644 --- a/lib/plaid/models/email.rb +++ b/lib/plaid/models/email.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/email_address_match_score.rb b/lib/plaid/models/email_address_match_score.rb index 48ddc1336..625684276 100644 --- a/lib/plaid/models/email_address_match_score.rb +++ b/lib/plaid/models/email_address_match_score.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/employee.rb b/lib/plaid/models/employee.rb index 7378fec66..c2a7569ca 100644 --- a/lib/plaid/models/employee.rb +++ b/lib/plaid/models/employee.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/employee_income_summary_field_string.rb b/lib/plaid/models/employee_income_summary_field_string.rb index 6d7da2fc6..e15ec62bd 100644 --- a/lib/plaid/models/employee_income_summary_field_string.rb +++ b/lib/plaid/models/employee_income_summary_field_string.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -21,6 +21,28 @@ class EmployeeIncomeSummaryFieldString attr_accessor :verification_status + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/employer.rb b/lib/plaid/models/employer.rb index 33018549d..55e3f23f2 100644 --- a/lib/plaid/models/employer.rb +++ b/lib/plaid/models/employer.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/employer_income_summary_field_string.rb b/lib/plaid/models/employer_income_summary_field_string.rb index f6e742a60..abeb1bfe9 100644 --- a/lib/plaid/models/employer_income_summary_field_string.rb +++ b/lib/plaid/models/employer_income_summary_field_string.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -21,6 +21,28 @@ class EmployerIncomeSummaryFieldString attr_accessor :verification_status + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/employer_verification.rb b/lib/plaid/models/employer_verification.rb index 56ed76b46..130e98e0e 100644 --- a/lib/plaid/models/employer_verification.rb +++ b/lib/plaid/models/employer_verification.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/employers_search_request.rb b/lib/plaid/models/employers_search_request.rb index 73031e36c..dd0b4ac64 100644 --- a/lib/plaid/models/employers_search_request.rb +++ b/lib/plaid/models/employers_search_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/employers_search_response.rb b/lib/plaid/models/employers_search_response.rb index 7d27293f3..f7baf7f43 100644 --- a/lib/plaid/models/employers_search_response.rb +++ b/lib/plaid/models/employers_search_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/employment_details.rb b/lib/plaid/models/employment_details.rb index a03037ead..f6a72b2a9 100644 --- a/lib/plaid/models/employment_details.rb +++ b/lib/plaid/models/employment_details.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/employment_source_type.rb b/lib/plaid/models/employment_source_type.rb index 8d1245e81..d96112ba7 100644 --- a/lib/plaid/models/employment_source_type.rb +++ b/lib/plaid/models/employment_source_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/employment_verification.rb b/lib/plaid/models/employment_verification.rb index 1edbe584f..9c3cbc814 100644 --- a/lib/plaid/models/employment_verification.rb +++ b/lib/plaid/models/employment_verification.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -31,6 +31,28 @@ class EmploymentVerification attr_accessor :platform_ids + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/employment_verification_get_request.rb b/lib/plaid/models/employment_verification_get_request.rb index deddc05f3..e3f76b8fb 100644 --- a/lib/plaid/models/employment_verification_get_request.rb +++ b/lib/plaid/models/employment_verification_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/employment_verification_get_response.rb b/lib/plaid/models/employment_verification_get_response.rb index ed7b5ae44..2c0063170 100644 --- a/lib/plaid/models/employment_verification_get_response.rb +++ b/lib/plaid/models/employment_verification_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/employment_verification_status.rb b/lib/plaid/models/employment_verification_status.rb index 09399654c..aaebb4030 100644 --- a/lib/plaid/models/employment_verification_status.rb +++ b/lib/plaid/models/employment_verification_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/enhancements.rb b/lib/plaid/models/enhancements.rb index cfd23a022..fe05a3f0b 100644 --- a/lib/plaid/models/enhancements.rb +++ b/lib/plaid/models/enhancements.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -46,6 +46,28 @@ class Enhancements # The counterparties present in the transaction. Counterparties, such as the merchant or the financial institution, are extracted by Plaid from the raw description. attr_accessor :counterparties + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/enrich_transaction_direction.rb b/lib/plaid/models/enrich_transaction_direction.rb index 5371d6ce5..35d10bc86 100644 --- a/lib/plaid/models/enrich_transaction_direction.rb +++ b/lib/plaid/models/enrich_transaction_direction.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/enrichments.rb b/lib/plaid/models/enrichments.rb index 423ca83e2..1dfbc46cd 100644 --- a/lib/plaid/models/enrichments.rb +++ b/lib/plaid/models/enrichments.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -51,6 +51,28 @@ class Enrichments # The website associated with this transaction. attr_accessor :website + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/entity_document.rb b/lib/plaid/models/entity_document.rb index 716d84258..d131216cc 100644 --- a/lib/plaid/models/entity_document.rb +++ b/lib/plaid/models/entity_document.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -21,6 +21,28 @@ class EntityDocument # The numeric or alphanumeric identifier associated with this document. attr_accessor :number + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/entity_document_type.rb b/lib/plaid/models/entity_document_type.rb index 03ea8c552..6949e496b 100644 --- a/lib/plaid/models/entity_document_type.rb +++ b/lib/plaid/models/entity_document_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/entity_screening_hit_analysis.rb b/lib/plaid/models/entity_screening_hit_analysis.rb index 7f3afe9a7..6d3e1ed9f 100644 --- a/lib/plaid/models/entity_screening_hit_analysis.rb +++ b/lib/plaid/models/entity_screening_hit_analysis.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -31,6 +31,28 @@ class EntityScreeningHitAnalysis # The version of the entity screening's `search_terms` that were compared when the entity screening hit was added. entity screening hits are immutable once they have been reviewed. If changes are detected due to updates to the entity screening's `search_terms`, the associated entity program, or the list's source data prior to review, the entity screening hit will be updated to reflect those changes. attr_accessor :search_terms_version + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/entity_screening_hit_data.rb b/lib/plaid/models/entity_screening_hit_data.rb index 68b0c8294..5f5e9f677 100644 --- a/lib/plaid/models/entity_screening_hit_data.rb +++ b/lib/plaid/models/entity_screening_hit_data.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/entity_screening_hit_documents_items.rb b/lib/plaid/models/entity_screening_hit_documents_items.rb index 453c3b10b..419d27bfe 100644 --- a/lib/plaid/models/entity_screening_hit_documents_items.rb +++ b/lib/plaid/models/entity_screening_hit_documents_items.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/entity_screening_hit_emails.rb b/lib/plaid/models/entity_screening_hit_emails.rb index b3114deb8..16bb9e633 100644 --- a/lib/plaid/models/entity_screening_hit_emails.rb +++ b/lib/plaid/models/entity_screening_hit_emails.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/entity_screening_hit_emails_items.rb b/lib/plaid/models/entity_screening_hit_emails_items.rb index 1d4cd60e6..a72ab25e4 100644 --- a/lib/plaid/models/entity_screening_hit_emails_items.rb +++ b/lib/plaid/models/entity_screening_hit_emails_items.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/entity_screening_hit_names.rb b/lib/plaid/models/entity_screening_hit_names.rb index c56a2ce80..e53c8a8a6 100644 --- a/lib/plaid/models/entity_screening_hit_names.rb +++ b/lib/plaid/models/entity_screening_hit_names.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -24,6 +24,28 @@ class EntityScreeningHitNames attr_accessor :weak_alias_determination + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/entity_screening_hit_names_items.rb b/lib/plaid/models/entity_screening_hit_names_items.rb index bb3269253..50908ffa7 100644 --- a/lib/plaid/models/entity_screening_hit_names_items.rb +++ b/lib/plaid/models/entity_screening_hit_names_items.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/entity_screening_hit_phone_numbers.rb b/lib/plaid/models/entity_screening_hit_phone_numbers.rb index 6aee9ab2c..0a7f023c6 100644 --- a/lib/plaid/models/entity_screening_hit_phone_numbers.rb +++ b/lib/plaid/models/entity_screening_hit_phone_numbers.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -21,6 +21,28 @@ class EntityScreeningHitPhoneNumbers # A phone number in E.164 format. attr_accessor :phone_number + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/entity_screening_hit_urls.rb b/lib/plaid/models/entity_screening_hit_urls.rb index 5a0bd8ddf..d4929b1e6 100644 --- a/lib/plaid/models/entity_screening_hit_urls.rb +++ b/lib/plaid/models/entity_screening_hit_urls.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/entity_screening_hit_urls_items.rb b/lib/plaid/models/entity_screening_hit_urls_items.rb index 8bb45b48c..ea60a16e1 100644 --- a/lib/plaid/models/entity_screening_hit_urls_items.rb +++ b/lib/plaid/models/entity_screening_hit_urls_items.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/entity_screening_hits_phone_number_items.rb b/lib/plaid/models/entity_screening_hits_phone_number_items.rb index 84e99f4a2..ed8ee86c1 100644 --- a/lib/plaid/models/entity_screening_hits_phone_number_items.rb +++ b/lib/plaid/models/entity_screening_hits_phone_number_items.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/entity_screening_status_updated_webhook.rb b/lib/plaid/models/entity_screening_status_updated_webhook.rb index da0049927..401f363c4 100644 --- a/lib/plaid/models/entity_screening_status_updated_webhook.rb +++ b/lib/plaid/models/entity_screening_status_updated_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -27,6 +27,28 @@ class EntityScreeningStatusUpdatedWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/entity_watchlist_code.rb b/lib/plaid/models/entity_watchlist_code.rb index fd3362665..f392184bf 100644 --- a/lib/plaid/models/entity_watchlist_code.rb +++ b/lib/plaid/models/entity_watchlist_code.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/entity_watchlist_program.rb b/lib/plaid/models/entity_watchlist_program.rb index e463672f3..0dc95e59f 100644 --- a/lib/plaid/models/entity_watchlist_program.rb +++ b/lib/plaid/models/entity_watchlist_program.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -38,6 +38,28 @@ class EntityWatchlistProgram # Archived programs are read-only and cannot screen new customers nor participate in ongoing monitoring. attr_accessor :is_archived + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/entity_watchlist_screening.rb b/lib/plaid/models/entity_watchlist_screening.rb index 4d0391525..f70c6c7fc 100644 --- a/lib/plaid/models/entity_watchlist_screening.rb +++ b/lib/plaid/models/entity_watchlist_screening.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -31,6 +31,28 @@ class EntityWatchlistScreening attr_accessor :audit_trail + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/entity_watchlist_screening_hit.rb b/lib/plaid/models/entity_watchlist_screening_hit.rb index b0ae7fe90..b0b6b62d6 100644 --- a/lib/plaid/models/entity_watchlist_screening_hit.rb +++ b/lib/plaid/models/entity_watchlist_screening_hit.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -42,6 +42,28 @@ class EntityWatchlistScreeningHit attr_accessor :data + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/entity_watchlist_screening_review.rb b/lib/plaid/models/entity_watchlist_screening_review.rb index 6415f61da..ffa486f8d 100644 --- a/lib/plaid/models/entity_watchlist_screening_review.rb +++ b/lib/plaid/models/entity_watchlist_screening_review.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/entity_watchlist_screening_search_terms.rb b/lib/plaid/models/entity_watchlist_screening_search_terms.rb index 4f4e699fc..979027962 100644 --- a/lib/plaid/models/entity_watchlist_screening_search_terms.rb +++ b/lib/plaid/models/entity_watchlist_screening_search_terms.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/entity_watchlist_search_terms.rb b/lib/plaid/models/entity_watchlist_search_terms.rb index 05bdc18e1..fdebda305 100644 --- a/lib/plaid/models/entity_watchlist_search_terms.rb +++ b/lib/plaid/models/entity_watchlist_search_terms.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/expiration_date.rb b/lib/plaid/models/expiration_date.rb index 11b65924f..0ed206be2 100644 --- a/lib/plaid/models/expiration_date.rb +++ b/lib/plaid/models/expiration_date.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/external_payment_initiation_consent_options.rb b/lib/plaid/models/external_payment_initiation_consent_options.rb index 87d6d7e5b..83bd43921 100644 --- a/lib/plaid/models/external_payment_initiation_consent_options.rb +++ b/lib/plaid/models/external_payment_initiation_consent_options.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/external_payment_options.rb b/lib/plaid/models/external_payment_options.rb index a79e97384..f46ee393f 100644 --- a/lib/plaid/models/external_payment_options.rb +++ b/lib/plaid/models/external_payment_options.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -26,6 +26,28 @@ class ExternalPaymentOptions attr_accessor :scheme + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/external_payment_refund_details.rb b/lib/plaid/models/external_payment_refund_details.rb index eeccead35..fe134dc21 100644 --- a/lib/plaid/models/external_payment_refund_details.rb +++ b/lib/plaid/models/external_payment_refund_details.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/external_payment_schedule_base.rb b/lib/plaid/models/external_payment_schedule_base.rb index b57511f4d..626e8e619 100644 --- a/lib/plaid/models/external_payment_schedule_base.rb +++ b/lib/plaid/models/external_payment_schedule_base.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -30,6 +30,28 @@ class ExternalPaymentScheduleBase # The start date sent to the bank after adjusting for holidays or weekends. Will be provided in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format (YYYY-MM-DD). If the start date did not require adjustment, this field will be `null`. attr_accessor :adjusted_start_date + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/external_payment_schedule_get.rb b/lib/plaid/models/external_payment_schedule_get.rb index e0e756ced..cd1ab42bb 100644 --- a/lib/plaid/models/external_payment_schedule_get.rb +++ b/lib/plaid/models/external_payment_schedule_get.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -30,6 +30,28 @@ class ExternalPaymentScheduleGet # The start date sent to the bank after adjusting for holidays or weekends. Will be provided in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format (YYYY-MM-DD). If the start date did not require adjustment, this field will be `null`. attr_accessor :adjusted_start_date + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/external_payment_schedule_request.rb b/lib/plaid/models/external_payment_schedule_request.rb index fc66753b8..231f1ae17 100644 --- a/lib/plaid/models/external_payment_schedule_request.rb +++ b/lib/plaid/models/external_payment_schedule_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -30,6 +30,28 @@ class ExternalPaymentScheduleRequest # The start date sent to the bank after adjusting for holidays or weekends. Will be provided in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format (YYYY-MM-DD). If the start date did not require adjustment, this field will be `null`. attr_accessor :adjusted_start_date + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/fallback_auth_microdeposit_auto_verified_webhook.rb b/lib/plaid/models/fallback_auth_microdeposit_auto_verified_webhook.rb index 50aa873b3..faaaeb184 100644 --- a/lib/plaid/models/fallback_auth_microdeposit_auto_verified_webhook.rb +++ b/lib/plaid/models/fallback_auth_microdeposit_auto_verified_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -33,6 +33,28 @@ class FallbackAuthMicrodepositAutoVerifiedWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/fallback_auth_microdeposit_verification_expired_webhook.rb b/lib/plaid/models/fallback_auth_microdeposit_verification_expired_webhook.rb index 4c7f22242..80766b969 100644 --- a/lib/plaid/models/fallback_auth_microdeposit_verification_expired_webhook.rb +++ b/lib/plaid/models/fallback_auth_microdeposit_verification_expired_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -33,6 +33,28 @@ class FallbackAuthMicrodepositVerificationExpiredWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/fdx_content_types.rb b/lib/plaid/models/fdx_content_types.rb index 9a1393353..b53c13f4c 100644 --- a/lib/plaid/models/fdx_content_types.rb +++ b/lib/plaid/models/fdx_content_types.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/fdx_hateoas_link.rb b/lib/plaid/models/fdx_hateoas_link.rb index be3e8bfda..930d6340d 100644 --- a/lib/plaid/models/fdx_hateoas_link.rb +++ b/lib/plaid/models/fdx_hateoas_link.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -27,6 +27,28 @@ class FDXHateoasLink # Content-types that can be used in the Accept header attr_accessor :types + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/fdx_hateoas_link_action.rb b/lib/plaid/models/fdx_hateoas_link_action.rb index 11dfd196c..5f83e0e6d 100644 --- a/lib/plaid/models/fdx_hateoas_link_action.rb +++ b/lib/plaid/models/fdx_hateoas_link_action.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/fdx_initiator_fi_attribute.rb b/lib/plaid/models/fdx_initiator_fi_attribute.rb index 1766c3673..d0708e12c 100644 --- a/lib/plaid/models/fdx_initiator_fi_attribute.rb +++ b/lib/plaid/models/fdx_initiator_fi_attribute.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -20,6 +20,28 @@ class FDXInitiatorFiAttribute attr_accessor :value + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/fdx_notification.rb b/lib/plaid/models/fdx_notification.rb index 6f4a87820..b82b6fa13 100644 --- a/lib/plaid/models/fdx_notification.rb +++ b/lib/plaid/models/fdx_notification.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -38,6 +38,28 @@ class FDXNotification attr_accessor :url + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/fdx_notification_category.rb b/lib/plaid/models/fdx_notification_category.rb index 7bbb34141..1b3b1f109 100644 --- a/lib/plaid/models/fdx_notification_category.rb +++ b/lib/plaid/models/fdx_notification_category.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/fdx_notification_payload.rb b/lib/plaid/models/fdx_notification_payload.rb index 61ccef4f8..7992e5d67 100644 --- a/lib/plaid/models/fdx_notification_payload.rb +++ b/lib/plaid/models/fdx_notification_payload.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -23,6 +23,28 @@ class FDXNotificationPayload attr_accessor :custom_fields + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/fdx_notification_payload_id_type.rb b/lib/plaid/models/fdx_notification_payload_id_type.rb index 6f78ebfc5..62d680bd6 100644 --- a/lib/plaid/models/fdx_notification_payload_id_type.rb +++ b/lib/plaid/models/fdx_notification_payload_id_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/fdx_notification_priority.rb b/lib/plaid/models/fdx_notification_priority.rb index 3768cbcc5..21c4b0565 100644 --- a/lib/plaid/models/fdx_notification_priority.rb +++ b/lib/plaid/models/fdx_notification_priority.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/fdx_notification_severity.rb b/lib/plaid/models/fdx_notification_severity.rb index 827a3e348..342b0f533 100644 --- a/lib/plaid/models/fdx_notification_severity.rb +++ b/lib/plaid/models/fdx_notification_severity.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/fdx_notification_type.rb b/lib/plaid/models/fdx_notification_type.rb index fea6fa1c5..841d00c6c 100644 --- a/lib/plaid/models/fdx_notification_type.rb +++ b/lib/plaid/models/fdx_notification_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/fdx_party.rb b/lib/plaid/models/fdx_party.rb index 6a04d1952..b230fed73 100644 --- a/lib/plaid/models/fdx_party.rb +++ b/lib/plaid/models/fdx_party.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -35,6 +35,28 @@ class FDXParty # Registered id of party attr_accessor :registered_entity_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/fdx_party_registry.rb b/lib/plaid/models/fdx_party_registry.rb index f02bf0e21..4bf4ddb3e 100644 --- a/lib/plaid/models/fdx_party_registry.rb +++ b/lib/plaid/models/fdx_party_registry.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/fdx_party_type.rb b/lib/plaid/models/fdx_party_type.rb index 7ae30f901..06de23f45 100644 --- a/lib/plaid/models/fdx_party_type.rb +++ b/lib/plaid/models/fdx_party_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/fdxfi_attribute.rb b/lib/plaid/models/fdxfi_attribute.rb index 5810518d2..50de262e4 100644 --- a/lib/plaid/models/fdxfi_attribute.rb +++ b/lib/plaid/models/fdxfi_attribute.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/financial_institution_insights.rb b/lib/plaid/models/financial_institution_insights.rb index 366db33b7..71074063b 100644 --- a/lib/plaid/models/financial_institution_insights.rb +++ b/lib/plaid/models/financial_institution_insights.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/form1099_type.rb b/lib/plaid/models/form1099_type.rb index d84fbd6d4..146a0eb3d 100644 --- a/lib/plaid/models/form1099_type.rb +++ b/lib/plaid/models/form1099_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/fraud_amount.rb b/lib/plaid/models/fraud_amount.rb index 0d4d395bd..351a66c83 100644 --- a/lib/plaid/models/fraud_amount.rb +++ b/lib/plaid/models/fraud_amount.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -21,6 +21,28 @@ class FraudAmount # The amount value. This value can be 0 to indicate no money was lost. Must not contain more than two digits of precision (e.g., `1.23`). attr_accessor :value + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/generic_screening_hit_location_items.rb b/lib/plaid/models/generic_screening_hit_location_items.rb index abc47799d..98c61ae43 100644 --- a/lib/plaid/models/generic_screening_hit_location_items.rb +++ b/lib/plaid/models/generic_screening_hit_location_items.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/health_incident.rb b/lib/plaid/models/health_incident.rb index d4f39b1f4..cd231dbd7 100644 --- a/lib/plaid/models/health_incident.rb +++ b/lib/plaid/models/health_incident.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/historical_balance.rb b/lib/plaid/models/historical_balance.rb index 3e8e91c6e..fa764d2b9 100644 --- a/lib/plaid/models/historical_balance.rb +++ b/lib/plaid/models/historical_balance.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/historical_update_webhook.rb b/lib/plaid/models/historical_update_webhook.rb index a9e4b18a1..4975a7eb7 100644 --- a/lib/plaid/models/historical_update_webhook.rb +++ b/lib/plaid/models/historical_update_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -32,6 +32,28 @@ class HistoricalUpdateWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/holding.rb b/lib/plaid/models/holding.rb index 6a3ca556e..2cccd7c31 100644 --- a/lib/plaid/models/holding.rb +++ b/lib/plaid/models/holding.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/holdings_default_update_webhook.rb b/lib/plaid/models/holdings_default_update_webhook.rb index 4e2bf975e..f528336f2 100644 --- a/lib/plaid/models/holdings_default_update_webhook.rb +++ b/lib/plaid/models/holdings_default_update_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -35,6 +35,28 @@ class HoldingsDefaultUpdateWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/holdings_override.rb b/lib/plaid/models/holdings_override.rb index ee605567f..d54710e76 100644 --- a/lib/plaid/models/holdings_override.rb +++ b/lib/plaid/models/holdings_override.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/hosted_link_delivery_method.rb b/lib/plaid/models/hosted_link_delivery_method.rb index a19963525..e2ac6c7d9 100644 --- a/lib/plaid/models/hosted_link_delivery_method.rb +++ b/lib/plaid/models/hosted_link_delivery_method.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/id_number_type.rb b/lib/plaid/models/id_number_type.rb index 631f68dcb..4d9841143 100644 --- a/lib/plaid/models/id_number_type.rb +++ b/lib/plaid/models/id_number_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/identity_default_update_webhook.rb b/lib/plaid/models/identity_default_update_webhook.rb index 959e32120..0dc035d87 100644 --- a/lib/plaid/models/identity_default_update_webhook.rb +++ b/lib/plaid/models/identity_default_update_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -32,6 +32,28 @@ class IdentityDefaultUpdateWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/identity_get_request.rb b/lib/plaid/models/identity_get_request.rb index ece9c7bed..c926021b7 100644 --- a/lib/plaid/models/identity_get_request.rb +++ b/lib/plaid/models/identity_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/identity_get_request_options.rb b/lib/plaid/models/identity_get_request_options.rb index be6230913..bdfe80330 100644 --- a/lib/plaid/models/identity_get_request_options.rb +++ b/lib/plaid/models/identity_get_request_options.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/identity_get_response.rb b/lib/plaid/models/identity_get_response.rb index f3ce44609..aa61a2504 100644 --- a/lib/plaid/models/identity_get_response.rb +++ b/lib/plaid/models/identity_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/identity_match_request.rb b/lib/plaid/models/identity_match_request.rb index 49b729fb5..a543dfaa4 100644 --- a/lib/plaid/models/identity_match_request.rb +++ b/lib/plaid/models/identity_match_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/identity_match_request_options.rb b/lib/plaid/models/identity_match_request_options.rb index 54e8f14af..08798ecef 100644 --- a/lib/plaid/models/identity_match_request_options.rb +++ b/lib/plaid/models/identity_match_request_options.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/identity_match_response.rb b/lib/plaid/models/identity_match_response.rb index 1e1590b08..57669050e 100644 --- a/lib/plaid/models/identity_match_response.rb +++ b/lib/plaid/models/identity_match_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/identity_match_user.rb b/lib/plaid/models/identity_match_user.rb index 679092bc4..911dfb176 100644 --- a/lib/plaid/models/identity_match_user.rb +++ b/lib/plaid/models/identity_match_user.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/identity_refresh_request.rb b/lib/plaid/models/identity_refresh_request.rb index 33b544a59..72c78de35 100644 --- a/lib/plaid/models/identity_refresh_request.rb +++ b/lib/plaid/models/identity_refresh_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/identity_refresh_response.rb b/lib/plaid/models/identity_refresh_response.rb index 2be3fc44c..aad49cbc2 100644 --- a/lib/plaid/models/identity_refresh_response.rb +++ b/lib/plaid/models/identity_refresh_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/identity_update_types.rb b/lib/plaid/models/identity_update_types.rb index 21a77d417..518b90bad 100644 --- a/lib/plaid/models/identity_update_types.rb +++ b/lib/plaid/models/identity_update_types.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/identity_verification.rb b/lib/plaid/models/identity_verification.rb index 8c7b6308b..9569ad98f 100644 --- a/lib/plaid/models/identity_verification.rb +++ b/lib/plaid/models/identity_verification.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -56,6 +56,28 @@ class IdentityVerification # An ISO8601 formatted timestamp. attr_accessor :redacted_at + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/identity_verification_create_request.rb b/lib/plaid/models/identity_verification_create_request.rb index a881f4c57..f6a7093cb 100644 --- a/lib/plaid/models/identity_verification_create_request.rb +++ b/lib/plaid/models/identity_verification_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/identity_verification_create_request_user.rb b/lib/plaid/models/identity_verification_create_request_user.rb index 9ba23dbb0..3470a1292 100644 --- a/lib/plaid/models/identity_verification_create_request_user.rb +++ b/lib/plaid/models/identity_verification_create_request_user.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/identity_verification_create_response.rb b/lib/plaid/models/identity_verification_create_response.rb index b776007ee..f3e6d261f 100644 --- a/lib/plaid/models/identity_verification_create_response.rb +++ b/lib/plaid/models/identity_verification_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -59,6 +59,28 @@ class IdentityVerificationCreateResponse # A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive. attr_accessor :request_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/identity_verification_document_address_response.rb b/lib/plaid/models/identity_verification_document_address_response.rb index f326a62a6..d1d241400 100644 --- a/lib/plaid/models/identity_verification_document_address_response.rb +++ b/lib/plaid/models/identity_verification_document_address_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/identity_verification_get_request.rb b/lib/plaid/models/identity_verification_get_request.rb index 63ad59206..922061b0f 100644 --- a/lib/plaid/models/identity_verification_get_request.rb +++ b/lib/plaid/models/identity_verification_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/identity_verification_get_response.rb b/lib/plaid/models/identity_verification_get_response.rb index 4a56861d7..45fc4ef2f 100644 --- a/lib/plaid/models/identity_verification_get_response.rb +++ b/lib/plaid/models/identity_verification_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -59,6 +59,28 @@ class IdentityVerificationGetResponse # A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive. attr_accessor :request_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/identity_verification_list_request.rb b/lib/plaid/models/identity_verification_list_request.rb index 691408ce8..129c62e8b 100644 --- a/lib/plaid/models/identity_verification_list_request.rb +++ b/lib/plaid/models/identity_verification_list_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/identity_verification_list_response.rb b/lib/plaid/models/identity_verification_list_response.rb index e27fd3159..0e4cb7d06 100644 --- a/lib/plaid/models/identity_verification_list_response.rb +++ b/lib/plaid/models/identity_verification_list_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/identity_verification_request_user.rb b/lib/plaid/models/identity_verification_request_user.rb index a0ae1a703..803596b39 100644 --- a/lib/plaid/models/identity_verification_request_user.rb +++ b/lib/plaid/models/identity_verification_request_user.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/identity_verification_request_user_name.rb b/lib/plaid/models/identity_verification_request_user_name.rb index b01435942..ac500c254 100644 --- a/lib/plaid/models/identity_verification_request_user_name.rb +++ b/lib/plaid/models/identity_verification_request_user_name.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/identity_verification_response_user_name.rb b/lib/plaid/models/identity_verification_response_user_name.rb index 29d0389f2..321dd39da 100644 --- a/lib/plaid/models/identity_verification_response_user_name.rb +++ b/lib/plaid/models/identity_verification_response_user_name.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/identity_verification_retried_webhook.rb b/lib/plaid/models/identity_verification_retried_webhook.rb index e028aa471..4deb4447d 100644 --- a/lib/plaid/models/identity_verification_retried_webhook.rb +++ b/lib/plaid/models/identity_verification_retried_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -27,6 +27,28 @@ class IdentityVerificationRetriedWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/identity_verification_retry_request.rb b/lib/plaid/models/identity_verification_retry_request.rb index ff1b6eee6..807e26cdc 100644 --- a/lib/plaid/models/identity_verification_retry_request.rb +++ b/lib/plaid/models/identity_verification_retry_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -34,6 +34,28 @@ class IdentityVerificationRetryRequest # 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. attr_accessor :secret + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/identity_verification_retry_request_steps_object.rb b/lib/plaid/models/identity_verification_retry_request_steps_object.rb index 98d784bcd..d0db16d0e 100644 --- a/lib/plaid/models/identity_verification_retry_request_steps_object.rb +++ b/lib/plaid/models/identity_verification_retry_request_steps_object.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/identity_verification_retry_response.rb b/lib/plaid/models/identity_verification_retry_response.rb index cc944a8f4..f11f9d798 100644 --- a/lib/plaid/models/identity_verification_retry_response.rb +++ b/lib/plaid/models/identity_verification_retry_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -59,6 +59,28 @@ class IdentityVerificationRetryResponse # A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive. attr_accessor :request_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/identity_verification_status.rb b/lib/plaid/models/identity_verification_status.rb index 5caf6c67c..690ddba07 100644 --- a/lib/plaid/models/identity_verification_status.rb +++ b/lib/plaid/models/identity_verification_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/identity_verification_status_updated_webhook.rb b/lib/plaid/models/identity_verification_status_updated_webhook.rb index 01fa85e0f..ece06068b 100644 --- a/lib/plaid/models/identity_verification_status_updated_webhook.rb +++ b/lib/plaid/models/identity_verification_status_updated_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -27,6 +27,28 @@ class IdentityVerificationStatusUpdatedWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/identity_verification_step_status.rb b/lib/plaid/models/identity_verification_step_status.rb index cd6278632..b9cdfb3b6 100644 --- a/lib/plaid/models/identity_verification_step_status.rb +++ b/lib/plaid/models/identity_verification_step_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/identity_verification_step_summary.rb b/lib/plaid/models/identity_verification_step_summary.rb index de48162a5..3f58af908 100644 --- a/lib/plaid/models/identity_verification_step_summary.rb +++ b/lib/plaid/models/identity_verification_step_summary.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -30,6 +30,28 @@ class IdentityVerificationStepSummary attr_accessor :risk_check + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/identity_verification_step_updated_webhook.rb b/lib/plaid/models/identity_verification_step_updated_webhook.rb index 47cfc2160..e623d6cc6 100644 --- a/lib/plaid/models/identity_verification_step_updated_webhook.rb +++ b/lib/plaid/models/identity_verification_step_updated_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -27,6 +27,28 @@ class IdentityVerificationStepUpdatedWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/identity_verification_template_reference.rb b/lib/plaid/models/identity_verification_template_reference.rb index a203c0428..4ccd7d617 100644 --- a/lib/plaid/models/identity_verification_template_reference.rb +++ b/lib/plaid/models/identity_verification_template_reference.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/identity_verification_user_address.rb b/lib/plaid/models/identity_verification_user_address.rb index 0b164c3be..7fe3909c0 100644 --- a/lib/plaid/models/identity_verification_user_address.rb +++ b/lib/plaid/models/identity_verification_user_address.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/identity_verification_user_data.rb b/lib/plaid/models/identity_verification_user_data.rb index c932b64d6..d81a09ecc 100644 --- a/lib/plaid/models/identity_verification_user_data.rb +++ b/lib/plaid/models/identity_verification_user_data.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/image_quality.rb b/lib/plaid/models/image_quality.rb index b740208d0..d2f5545da 100644 --- a/lib/plaid/models/image_quality.rb +++ b/lib/plaid/models/image_quality.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/incident_update.rb b/lib/plaid/models/incident_update.rb index 1973178d0..821f56eed 100644 --- a/lib/plaid/models/incident_update.rb +++ b/lib/plaid/models/incident_update.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/income_breakdown.rb b/lib/plaid/models/income_breakdown.rb index 3d6438b7c..bb03a846f 100644 --- a/lib/plaid/models/income_breakdown.rb +++ b/lib/plaid/models/income_breakdown.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -27,6 +27,28 @@ class IncomeBreakdown # The total pay for this pay period. attr_accessor :total + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/income_breakdown_type.rb b/lib/plaid/models/income_breakdown_type.rb index 753f3c077..bfd2fa807 100644 --- a/lib/plaid/models/income_breakdown_type.rb +++ b/lib/plaid/models/income_breakdown_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/income_override.rb b/lib/plaid/models/income_override.rb index fa171c217..ade9409e6 100644 --- a/lib/plaid/models/income_override.rb +++ b/lib/plaid/models/income_override.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/income_summary.rb b/lib/plaid/models/income_summary.rb index de5dd0199..0ed4a0a8c 100644 --- a/lib/plaid/models/income_summary.rb +++ b/lib/plaid/models/income_summary.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/income_summary_field_number.rb b/lib/plaid/models/income_summary_field_number.rb index de2f810f4..9529aa020 100644 --- a/lib/plaid/models/income_summary_field_number.rb +++ b/lib/plaid/models/income_summary_field_number.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -21,6 +21,28 @@ class IncomeSummaryFieldNumber attr_accessor :verification_status + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/income_summary_field_string.rb b/lib/plaid/models/income_summary_field_string.rb index 32c4cb036..e5cbacdf3 100644 --- a/lib/plaid/models/income_summary_field_string.rb +++ b/lib/plaid/models/income_summary_field_string.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -21,6 +21,28 @@ class IncomeSummaryFieldString attr_accessor :verification_status + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/income_verification_create_request.rb b/lib/plaid/models/income_verification_create_request.rb index 131756c39..674bba0aa 100644 --- a/lib/plaid/models/income_verification_create_request.rb +++ b/lib/plaid/models/income_verification_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/income_verification_create_request_options.rb b/lib/plaid/models/income_verification_create_request_options.rb index e52c9d2c5..386980a94 100644 --- a/lib/plaid/models/income_verification_create_request_options.rb +++ b/lib/plaid/models/income_verification_create_request_options.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/income_verification_create_response.rb b/lib/plaid/models/income_verification_create_response.rb index 007572e3a..86123039a 100644 --- a/lib/plaid/models/income_verification_create_response.rb +++ b/lib/plaid/models/income_verification_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/income_verification_doc_parsing_config.rb b/lib/plaid/models/income_verification_doc_parsing_config.rb index 310f2bd21..0cd8468d4 100644 --- a/lib/plaid/models/income_verification_doc_parsing_config.rb +++ b/lib/plaid/models/income_verification_doc_parsing_config.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/income_verification_documents_download_request.rb b/lib/plaid/models/income_verification_documents_download_request.rb index 34896c1e1..db43b7d26 100644 --- a/lib/plaid/models/income_verification_documents_download_request.rb +++ b/lib/plaid/models/income_verification_documents_download_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/income_verification_payroll_flow_type.rb b/lib/plaid/models/income_verification_payroll_flow_type.rb index 4c9e15e43..0e5c2db95 100644 --- a/lib/plaid/models/income_verification_payroll_flow_type.rb +++ b/lib/plaid/models/income_verification_payroll_flow_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/income_verification_paystubs_get_request.rb b/lib/plaid/models/income_verification_paystubs_get_request.rb index cded8d868..312a44a3f 100644 --- a/lib/plaid/models/income_verification_paystubs_get_request.rb +++ b/lib/plaid/models/income_verification_paystubs_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/income_verification_paystubs_get_response.rb b/lib/plaid/models/income_verification_paystubs_get_response.rb index 92018253a..c2f16e25a 100644 --- a/lib/plaid/models/income_verification_paystubs_get_response.rb +++ b/lib/plaid/models/income_verification_paystubs_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/income_verification_precheck_confidence.rb b/lib/plaid/models/income_verification_precheck_confidence.rb index 258c8db4b..a6ff2c355 100644 --- a/lib/plaid/models/income_verification_precheck_confidence.rb +++ b/lib/plaid/models/income_verification_precheck_confidence.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/income_verification_precheck_employer.rb b/lib/plaid/models/income_verification_precheck_employer.rb index 431b26ed0..326510499 100644 --- a/lib/plaid/models/income_verification_precheck_employer.rb +++ b/lib/plaid/models/income_verification_precheck_employer.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/income_verification_precheck_employer_address.rb b/lib/plaid/models/income_verification_precheck_employer_address.rb index 6140d0e54..f6ceb8174 100644 --- a/lib/plaid/models/income_verification_precheck_employer_address.rb +++ b/lib/plaid/models/income_verification_precheck_employer_address.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/income_verification_precheck_employer_address_data.rb b/lib/plaid/models/income_verification_precheck_employer_address_data.rb index e84d827d6..f72f81792 100644 --- a/lib/plaid/models/income_verification_precheck_employer_address_data.rb +++ b/lib/plaid/models/income_verification_precheck_employer_address_data.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/income_verification_precheck_military_info.rb b/lib/plaid/models/income_verification_precheck_military_info.rb index 13d07dad2..3007621ba 100644 --- a/lib/plaid/models/income_verification_precheck_military_info.rb +++ b/lib/plaid/models/income_verification_precheck_military_info.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/income_verification_precheck_payroll_institution.rb b/lib/plaid/models/income_verification_precheck_payroll_institution.rb index 971a336fd..5b4ded34b 100644 --- a/lib/plaid/models/income_verification_precheck_payroll_institution.rb +++ b/lib/plaid/models/income_verification_precheck_payroll_institution.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/income_verification_precheck_request.rb b/lib/plaid/models/income_verification_precheck_request.rb index d9b6a80b7..e62ba9443 100644 --- a/lib/plaid/models/income_verification_precheck_request.rb +++ b/lib/plaid/models/income_verification_precheck_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/income_verification_precheck_response.rb b/lib/plaid/models/income_verification_precheck_response.rb index 0cb1762a8..1414e8c5b 100644 --- a/lib/plaid/models/income_verification_precheck_response.rb +++ b/lib/plaid/models/income_verification_precheck_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -24,6 +24,28 @@ class IncomeVerificationPrecheckResponse attr_accessor :confidence + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/income_verification_precheck_user.rb b/lib/plaid/models/income_verification_precheck_user.rb index 6c100aa01..4169e4d60 100644 --- a/lib/plaid/models/income_verification_precheck_user.rb +++ b/lib/plaid/models/income_verification_precheck_user.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/income_verification_refresh_reconnect_needed_webhook.rb b/lib/plaid/models/income_verification_refresh_reconnect_needed_webhook.rb index d2440c5bf..d0a332f84 100644 --- a/lib/plaid/models/income_verification_refresh_reconnect_needed_webhook.rb +++ b/lib/plaid/models/income_verification_refresh_reconnect_needed_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -27,6 +27,28 @@ class IncomeVerificationRefreshReconnectNeededWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/income_verification_risk_signals_status_webhook.rb b/lib/plaid/models/income_verification_risk_signals_status_webhook.rb index 58afe9c32..15f8dd041 100644 --- a/lib/plaid/models/income_verification_risk_signals_status_webhook.rb +++ b/lib/plaid/models/income_verification_risk_signals_status_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -33,6 +33,28 @@ class IncomeVerificationRiskSignalsStatusWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/income_verification_source_type.rb b/lib/plaid/models/income_verification_source_type.rb index 842933f74..baafc5d14 100644 --- a/lib/plaid/models/income_verification_source_type.rb +++ b/lib/plaid/models/income_verification_source_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/income_verification_status_webhook.rb b/lib/plaid/models/income_verification_status_webhook.rb index 64bd18311..1924cced5 100644 --- a/lib/plaid/models/income_verification_status_webhook.rb +++ b/lib/plaid/models/income_verification_status_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -33,6 +33,28 @@ class IncomeVerificationStatusWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/income_verification_taxforms_get_request.rb b/lib/plaid/models/income_verification_taxforms_get_request.rb index d79b1f6fe..5cb0cbb3b 100644 --- a/lib/plaid/models/income_verification_taxforms_get_request.rb +++ b/lib/plaid/models/income_verification_taxforms_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/income_verification_taxforms_get_response.rb b/lib/plaid/models/income_verification_taxforms_get_response.rb index 5d9040928..12f8457e9 100644 --- a/lib/plaid/models/income_verification_taxforms_get_response.rb +++ b/lib/plaid/models/income_verification_taxforms_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/income_verification_webhook_status.rb b/lib/plaid/models/income_verification_webhook_status.rb index 917f0ce52..3ad45c4b3 100644 --- a/lib/plaid/models/income_verification_webhook_status.rb +++ b/lib/plaid/models/income_verification_webhook_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/individual_name.rb b/lib/plaid/models/individual_name.rb index 499b06786..0d3c305f6 100644 --- a/lib/plaid/models/individual_name.rb +++ b/lib/plaid/models/individual_name.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/individual_screening_hit_names.rb b/lib/plaid/models/individual_screening_hit_names.rb index b14933fcd..480b8c275 100644 --- a/lib/plaid/models/individual_screening_hit_names.rb +++ b/lib/plaid/models/individual_screening_hit_names.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -24,6 +24,28 @@ class IndividualScreeningHitNames attr_accessor :weak_alias_determination + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/individual_watchlist_code.rb b/lib/plaid/models/individual_watchlist_code.rb index 9cc17fb0f..ca0045bcb 100644 --- a/lib/plaid/models/individual_watchlist_code.rb +++ b/lib/plaid/models/individual_watchlist_code.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/individual_watchlist_program.rb b/lib/plaid/models/individual_watchlist_program.rb index 6e9618502..bcda98106 100644 --- a/lib/plaid/models/individual_watchlist_program.rb +++ b/lib/plaid/models/individual_watchlist_program.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -38,6 +38,28 @@ class IndividualWatchlistProgram # Archived programs are read-only and cannot screen new customers nor participate in ongoing monitoring. attr_accessor :is_archived + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/inflow_model.rb b/lib/plaid/models/inflow_model.rb index 113d553fb..3c4e00534 100644 --- a/lib/plaid/models/inflow_model.rb +++ b/lib/plaid/models/inflow_model.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/initial_update_webhook.rb b/lib/plaid/models/initial_update_webhook.rb index 1de80e475..bc447c958 100644 --- a/lib/plaid/models/initial_update_webhook.rb +++ b/lib/plaid/models/initial_update_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -33,6 +33,28 @@ class InitialUpdateWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/institution.rb b/lib/plaid/models/institution.rb index 39556d272..931810a31 100644 --- a/lib/plaid/models/institution.rb +++ b/lib/plaid/models/institution.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/institution_status.rb b/lib/plaid/models/institution_status.rb index 969c3ccef..f8645e6b1 100644 --- a/lib/plaid/models/institution_status.rb +++ b/lib/plaid/models/institution_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/institution_status_alert_webhook.rb b/lib/plaid/models/institution_status_alert_webhook.rb index 830fd4d78..18e1e997c 100644 --- a/lib/plaid/models/institution_status_alert_webhook.rb +++ b/lib/plaid/models/institution_status_alert_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -30,6 +30,28 @@ class InstitutionStatusAlertWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/institution_supported_networks.rb b/lib/plaid/models/institution_supported_networks.rb index 3647ae760..c43a0d11b 100644 --- a/lib/plaid/models/institution_supported_networks.rb +++ b/lib/plaid/models/institution_supported_networks.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/institutions_get_by_id_request.rb b/lib/plaid/models/institutions_get_by_id_request.rb index a5ef99ea8..af72436a1 100644 --- a/lib/plaid/models/institutions_get_by_id_request.rb +++ b/lib/plaid/models/institutions_get_by_id_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/institutions_get_by_id_request_options.rb b/lib/plaid/models/institutions_get_by_id_request_options.rb index 61b13ee92..30a90342c 100644 --- a/lib/plaid/models/institutions_get_by_id_request_options.rb +++ b/lib/plaid/models/institutions_get_by_id_request_options.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/institutions_get_by_id_response.rb b/lib/plaid/models/institutions_get_by_id_response.rb index 8d9d531e2..84eb39eb4 100644 --- a/lib/plaid/models/institutions_get_by_id_response.rb +++ b/lib/plaid/models/institutions_get_by_id_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/institutions_get_request.rb b/lib/plaid/models/institutions_get_request.rb index 78db064c0..80d14b491 100644 --- a/lib/plaid/models/institutions_get_request.rb +++ b/lib/plaid/models/institutions_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/institutions_get_request_options.rb b/lib/plaid/models/institutions_get_request_options.rb index 89c29a5df..f8f68bbdb 100644 --- a/lib/plaid/models/institutions_get_request_options.rb +++ b/lib/plaid/models/institutions_get_request_options.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/institutions_get_response.rb b/lib/plaid/models/institutions_get_response.rb index 538cc415c..77bfc9eb5 100644 --- a/lib/plaid/models/institutions_get_response.rb +++ b/lib/plaid/models/institutions_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/institutions_search_account_filter.rb b/lib/plaid/models/institutions_search_account_filter.rb index 1e1a1b777..ed9a3d043 100644 --- a/lib/plaid/models/institutions_search_account_filter.rb +++ b/lib/plaid/models/institutions_search_account_filter.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/institutions_search_payment_initiation_options.rb b/lib/plaid/models/institutions_search_payment_initiation_options.rb index 320787b3f..bdf47e532 100644 --- a/lib/plaid/models/institutions_search_payment_initiation_options.rb +++ b/lib/plaid/models/institutions_search_payment_initiation_options.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/institutions_search_request.rb b/lib/plaid/models/institutions_search_request.rb index 875b3b896..d4af30d9f 100644 --- a/lib/plaid/models/institutions_search_request.rb +++ b/lib/plaid/models/institutions_search_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -127,7 +127,7 @@ def list_invalid_properties - if @products.length < 1 + if !@products.nil? && @products.length < 1 invalid_properties.push('invalid value for "products", number of items must be greater than or equal to 1.') end @@ -143,7 +143,7 @@ def list_invalid_properties def valid? return false if @query.nil? return false if @query.to_s.length < 1 - return false if @products.length < 1 + return false if !@products.nil? && @products.length < 1 return false if @country_codes.nil? true end @@ -167,7 +167,7 @@ def query=(query) # @param [Object] products Value to be assigned def products=(products) - if products.length < 1 + if !products.nil? && products.length < 1 fail ArgumentError, 'invalid value for "products", number of items must be greater than or equal to 1.' end diff --git a/lib/plaid/models/institutions_search_request_options.rb b/lib/plaid/models/institutions_search_request_options.rb index e39f2f9ef..9ed520a0c 100644 --- a/lib/plaid/models/institutions_search_request_options.rb +++ b/lib/plaid/models/institutions_search_request_options.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/institutions_search_response.rb b/lib/plaid/models/institutions_search_response.rb index 6f4b7d090..9cafb2250 100644 --- a/lib/plaid/models/institutions_search_response.rb +++ b/lib/plaid/models/institutions_search_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/investment_account_subtype.rb b/lib/plaid/models/investment_account_subtype.rb index b563ac9fa..3f5323b3b 100644 --- a/lib/plaid/models/investment_account_subtype.rb +++ b/lib/plaid/models/investment_account_subtype.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/investment_filter.rb b/lib/plaid/models/investment_filter.rb index c1d19b56b..61dd03eb7 100644 --- a/lib/plaid/models/investment_filter.rb +++ b/lib/plaid/models/investment_filter.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/investment_holdings_get_request_options.rb b/lib/plaid/models/investment_holdings_get_request_options.rb index 5ecbf893d..372347cfc 100644 --- a/lib/plaid/models/investment_holdings_get_request_options.rb +++ b/lib/plaid/models/investment_holdings_get_request_options.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/investment_transaction.rb b/lib/plaid/models/investment_transaction.rb index ba85d7c83..014654601 100644 --- a/lib/plaid/models/investment_transaction.rb +++ b/lib/plaid/models/investment_transaction.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -56,6 +56,28 @@ class InvestmentTransaction # The unofficial currency code associated with the holding. Always `null` if `iso_currency_code` is non-`null`. Unofficial currency codes are used for currencies that do not have official ISO currency codes, such as cryptocurrencies and the currencies of certain countries. See the [currency code schema](https://plaid.com/docs/api/accounts#currency-code-schema) for a full listing of supported `iso_currency_code`s. attr_accessor :unofficial_currency_code + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/investment_transaction_subtype.rb b/lib/plaid/models/investment_transaction_subtype.rb index 0638a4b07..bb1cff1bc 100644 --- a/lib/plaid/models/investment_transaction_subtype.rb +++ b/lib/plaid/models/investment_transaction_subtype.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/investment_transaction_type.rb b/lib/plaid/models/investment_transaction_type.rb index a22412cd9..e968b5248 100644 --- a/lib/plaid/models/investment_transaction_type.rb +++ b/lib/plaid/models/investment_transaction_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/investments_auth_get_numbers.rb b/lib/plaid/models/investments_auth_get_numbers.rb index f30dc954f..7d4ebd814 100644 --- a/lib/plaid/models/investments_auth_get_numbers.rb +++ b/lib/plaid/models/investments_auth_get_numbers.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/investments_auth_get_request.rb b/lib/plaid/models/investments_auth_get_request.rb index e342359c6..56edd4f2f 100644 --- a/lib/plaid/models/investments_auth_get_request.rb +++ b/lib/plaid/models/investments_auth_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/investments_auth_get_request_options.rb b/lib/plaid/models/investments_auth_get_request_options.rb index 931441028..94a164aee 100644 --- a/lib/plaid/models/investments_auth_get_request_options.rb +++ b/lib/plaid/models/investments_auth_get_request_options.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/investments_auth_get_response.rb b/lib/plaid/models/investments_auth_get_response.rb index 857cd667e..1ec43fdcd 100644 --- a/lib/plaid/models/investments_auth_get_response.rb +++ b/lib/plaid/models/investments_auth_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/investments_auth_owner.rb b/lib/plaid/models/investments_auth_owner.rb index d22749cf1..7a878843c 100644 --- a/lib/plaid/models/investments_auth_owner.rb +++ b/lib/plaid/models/investments_auth_owner.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/investments_default_update_webhook.rb b/lib/plaid/models/investments_default_update_webhook.rb index 63d407731..e2aea0dd1 100644 --- a/lib/plaid/models/investments_default_update_webhook.rb +++ b/lib/plaid/models/investments_default_update_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -35,6 +35,28 @@ class InvestmentsDefaultUpdateWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/investments_historical_update_webhook.rb b/lib/plaid/models/investments_historical_update_webhook.rb index d8938d6d1..c987f87ea 100644 --- a/lib/plaid/models/investments_historical_update_webhook.rb +++ b/lib/plaid/models/investments_historical_update_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -35,6 +35,28 @@ class InvestmentsHistoricalUpdateWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/investments_holdings_get_request.rb b/lib/plaid/models/investments_holdings_get_request.rb index 477518fbf..eba9752ae 100644 --- a/lib/plaid/models/investments_holdings_get_request.rb +++ b/lib/plaid/models/investments_holdings_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/investments_holdings_get_response.rb b/lib/plaid/models/investments_holdings_get_response.rb index c163d4474..cb16976d7 100644 --- a/lib/plaid/models/investments_holdings_get_response.rb +++ b/lib/plaid/models/investments_holdings_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/investments_refresh_request.rb b/lib/plaid/models/investments_refresh_request.rb index 07c08340f..bc0b437e9 100644 --- a/lib/plaid/models/investments_refresh_request.rb +++ b/lib/plaid/models/investments_refresh_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/investments_refresh_response.rb b/lib/plaid/models/investments_refresh_response.rb index 790007d74..365128b60 100644 --- a/lib/plaid/models/investments_refresh_response.rb +++ b/lib/plaid/models/investments_refresh_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/investments_transactions_get_request.rb b/lib/plaid/models/investments_transactions_get_request.rb index 68cfebd59..e904f8e42 100644 --- a/lib/plaid/models/investments_transactions_get_request.rb +++ b/lib/plaid/models/investments_transactions_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/investments_transactions_get_request_options.rb b/lib/plaid/models/investments_transactions_get_request_options.rb index 5e4392cb6..510f929e6 100644 --- a/lib/plaid/models/investments_transactions_get_request_options.rb +++ b/lib/plaid/models/investments_transactions_get_request_options.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/investments_transactions_get_response.rb b/lib/plaid/models/investments_transactions_get_response.rb index 58dc6ec3c..e660c1ded 100644 --- a/lib/plaid/models/investments_transactions_get_response.rb +++ b/lib/plaid/models/investments_transactions_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/investments_transactions_override.rb b/lib/plaid/models/investments_transactions_override.rb index 77dafc3ee..495f97c19 100644 --- a/lib/plaid/models/investments_transactions_override.rb +++ b/lib/plaid/models/investments_transactions_override.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/iso_currency_code.rb b/lib/plaid/models/iso_currency_code.rb index 6f2c373bb..880fba8f4 100644 --- a/lib/plaid/models/iso_currency_code.rb +++ b/lib/plaid/models/iso_currency_code.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/issuing_country.rb b/lib/plaid/models/issuing_country.rb index f3a8a8423..dd6de3990 100644 --- a/lib/plaid/models/issuing_country.rb +++ b/lib/plaid/models/issuing_country.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/item.rb b/lib/plaid/models/item.rb index 0a91ec055..8d36830e2 100644 --- a/lib/plaid/models/item.rb +++ b/lib/plaid/models/item.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/item_access_token_invalidate_request.rb b/lib/plaid/models/item_access_token_invalidate_request.rb index feeef0053..3d716830a 100644 --- a/lib/plaid/models/item_access_token_invalidate_request.rb +++ b/lib/plaid/models/item_access_token_invalidate_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/item_access_token_invalidate_response.rb b/lib/plaid/models/item_access_token_invalidate_response.rb index 0b8b5d904..b7bcdbb73 100644 --- a/lib/plaid/models/item_access_token_invalidate_response.rb +++ b/lib/plaid/models/item_access_token_invalidate_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/item_activity_list_request.rb b/lib/plaid/models/item_activity_list_request.rb index a31479ef8..56004f40e 100644 --- a/lib/plaid/models/item_activity_list_request.rb +++ b/lib/plaid/models/item_activity_list_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/item_activity_list_response.rb b/lib/plaid/models/item_activity_list_response.rb index 261661199..aa13a2771 100644 --- a/lib/plaid/models/item_activity_list_response.rb +++ b/lib/plaid/models/item_activity_list_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/item_application_list_request.rb b/lib/plaid/models/item_application_list_request.rb index a403b7277..92f1be0c9 100644 --- a/lib/plaid/models/item_application_list_request.rb +++ b/lib/plaid/models/item_application_list_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/item_application_list_response.rb b/lib/plaid/models/item_application_list_response.rb index 0ccf2571a..334b853fd 100644 --- a/lib/plaid/models/item_application_list_response.rb +++ b/lib/plaid/models/item_application_list_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/item_application_list_user_auth.rb b/lib/plaid/models/item_application_list_user_auth.rb index 80e41afe4..a0e317132 100644 --- a/lib/plaid/models/item_application_list_user_auth.rb +++ b/lib/plaid/models/item_application_list_user_auth.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/item_application_scopes_update_request.rb b/lib/plaid/models/item_application_scopes_update_request.rb index 006abd53e..3d288a65f 100644 --- a/lib/plaid/models/item_application_scopes_update_request.rb +++ b/lib/plaid/models/item_application_scopes_update_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -35,6 +35,28 @@ class ItemApplicationScopesUpdateRequest attr_accessor :context + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/item_application_scopes_update_response.rb b/lib/plaid/models/item_application_scopes_update_response.rb index 8067f1401..92ad6e0d8 100644 --- a/lib/plaid/models/item_application_scopes_update_response.rb +++ b/lib/plaid/models/item_application_scopes_update_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/item_application_unlink_request.rb b/lib/plaid/models/item_application_unlink_request.rb index a2c7bf9a0..8090bd021 100644 --- a/lib/plaid/models/item_application_unlink_request.rb +++ b/lib/plaid/models/item_application_unlink_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/item_application_unlink_response.rb b/lib/plaid/models/item_application_unlink_response.rb index 8313e3a0a..6379026e3 100644 --- a/lib/plaid/models/item_application_unlink_response.rb +++ b/lib/plaid/models/item_application_unlink_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/item_error_webhook.rb b/lib/plaid/models/item_error_webhook.rb index 1b41838e1..0593555dd 100644 --- a/lib/plaid/models/item_error_webhook.rb +++ b/lib/plaid/models/item_error_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -29,6 +29,28 @@ class ItemErrorWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/item_get_request.rb b/lib/plaid/models/item_get_request.rb index b797003ac..44d5df058 100644 --- a/lib/plaid/models/item_get_request.rb +++ b/lib/plaid/models/item_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/item_get_response.rb b/lib/plaid/models/item_get_response.rb index d86546d01..eb280e093 100644 --- a/lib/plaid/models/item_get_response.rb +++ b/lib/plaid/models/item_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/item_import_request.rb b/lib/plaid/models/item_import_request.rb index 2cf39778e..0309eaf6e 100644 --- a/lib/plaid/models/item_import_request.rb +++ b/lib/plaid/models/item_import_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/item_import_request_options.rb b/lib/plaid/models/item_import_request_options.rb index d48b17690..6875d35c8 100644 --- a/lib/plaid/models/item_import_request_options.rb +++ b/lib/plaid/models/item_import_request_options.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/item_import_request_user_auth.rb b/lib/plaid/models/item_import_request_user_auth.rb index 62fecdff5..1a6c8cd54 100644 --- a/lib/plaid/models/item_import_request_user_auth.rb +++ b/lib/plaid/models/item_import_request_user_auth.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/item_import_response.rb b/lib/plaid/models/item_import_response.rb index 6443d68d2..aee9d0313 100644 --- a/lib/plaid/models/item_import_response.rb +++ b/lib/plaid/models/item_import_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/item_login_repaired_webhook.rb b/lib/plaid/models/item_login_repaired_webhook.rb index 87365f64b..845b1a79c 100644 --- a/lib/plaid/models/item_login_repaired_webhook.rb +++ b/lib/plaid/models/item_login_repaired_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -27,6 +27,28 @@ class ItemLoginRepairedWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/item_product_ready_webhook.rb b/lib/plaid/models/item_product_ready_webhook.rb index 0ee2a6348..27934ab88 100644 --- a/lib/plaid/models/item_product_ready_webhook.rb +++ b/lib/plaid/models/item_product_ready_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -29,6 +29,28 @@ class ItemProductReadyWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/item_public_token_create_request.rb b/lib/plaid/models/item_public_token_create_request.rb index 6ceefefa6..4960848f1 100644 --- a/lib/plaid/models/item_public_token_create_request.rb +++ b/lib/plaid/models/item_public_token_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/item_public_token_create_response.rb b/lib/plaid/models/item_public_token_create_response.rb index 387c0714a..0c59b1641 100644 --- a/lib/plaid/models/item_public_token_create_response.rb +++ b/lib/plaid/models/item_public_token_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/item_public_token_exchange_request.rb b/lib/plaid/models/item_public_token_exchange_request.rb index 8a9c9cc57..8eb7eab52 100644 --- a/lib/plaid/models/item_public_token_exchange_request.rb +++ b/lib/plaid/models/item_public_token_exchange_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/item_public_token_exchange_response.rb b/lib/plaid/models/item_public_token_exchange_response.rb index 3ef316c97..6c3b2dc9d 100644 --- a/lib/plaid/models/item_public_token_exchange_response.rb +++ b/lib/plaid/models/item_public_token_exchange_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/item_remove_request.rb b/lib/plaid/models/item_remove_request.rb index 905e13b92..e5ec6119b 100644 --- a/lib/plaid/models/item_remove_request.rb +++ b/lib/plaid/models/item_remove_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/item_remove_response.rb b/lib/plaid/models/item_remove_response.rb index fb8770181..16b094c04 100644 --- a/lib/plaid/models/item_remove_response.rb +++ b/lib/plaid/models/item_remove_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/item_status.rb b/lib/plaid/models/item_status.rb index 7ee2b3219..30f6f7c27 100644 --- a/lib/plaid/models/item_status.rb +++ b/lib/plaid/models/item_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/item_status_investments.rb b/lib/plaid/models/item_status_investments.rb index ceaad8aa9..fe7546f23 100644 --- a/lib/plaid/models/item_status_investments.rb +++ b/lib/plaid/models/item_status_investments.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/item_status_last_webhook.rb b/lib/plaid/models/item_status_last_webhook.rb index 2ff24b4f4..efb6cb1ed 100644 --- a/lib/plaid/models/item_status_last_webhook.rb +++ b/lib/plaid/models/item_status_last_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/item_status_nullable.rb b/lib/plaid/models/item_status_nullable.rb index 63c3a2a8d..c8b5d6e82 100644 --- a/lib/plaid/models/item_status_nullable.rb +++ b/lib/plaid/models/item_status_nullable.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/item_status_transactions.rb b/lib/plaid/models/item_status_transactions.rb index a3960161c..130885ad1 100644 --- a/lib/plaid/models/item_status_transactions.rb +++ b/lib/plaid/models/item_status_transactions.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/item_webhook_update_request.rb b/lib/plaid/models/item_webhook_update_request.rb index f24d602e1..011544d6b 100644 --- a/lib/plaid/models/item_webhook_update_request.rb +++ b/lib/plaid/models/item_webhook_update_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/item_webhook_update_response.rb b/lib/plaid/models/item_webhook_update_response.rb index 65fa31402..083ad803a 100644 --- a/lib/plaid/models/item_webhook_update_response.rb +++ b/lib/plaid/models/item_webhook_update_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/jwk_public_key.rb b/lib/plaid/models/jwk_public_key.rb index 25de0765b..212807c1e 100644 --- a/lib/plaid/models/jwk_public_key.rb +++ b/lib/plaid/models/jwk_public_key.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/jwt_header.rb b/lib/plaid/models/jwt_header.rb index a5484588b..963c191d2 100644 --- a/lib/plaid/models/jwt_header.rb +++ b/lib/plaid/models/jwt_header.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/kyc_check_address_summary.rb b/lib/plaid/models/kyc_check_address_summary.rb index 21cca3845..019252607 100644 --- a/lib/plaid/models/kyc_check_address_summary.rb +++ b/lib/plaid/models/kyc_check_address_summary.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -22,6 +22,28 @@ class KYCCheckAddressSummary attr_accessor :type + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/kyc_check_date_of_birth_summary.rb b/lib/plaid/models/kyc_check_date_of_birth_summary.rb index 78e8f0329..5539f7818 100644 --- a/lib/plaid/models/kyc_check_date_of_birth_summary.rb +++ b/lib/plaid/models/kyc_check_date_of_birth_summary.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -18,6 +18,28 @@ module Plaid class KYCCheckDateOfBirthSummary attr_accessor :summary + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/kyc_check_details.rb b/lib/plaid/models/kyc_check_details.rb index b9103fff7..2e7b7ded8 100644 --- a/lib/plaid/models/kyc_check_details.rb +++ b/lib/plaid/models/kyc_check_details.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/kyc_check_id_number_summary.rb b/lib/plaid/models/kyc_check_id_number_summary.rb index 7912b0013..21913680e 100644 --- a/lib/plaid/models/kyc_check_id_number_summary.rb +++ b/lib/plaid/models/kyc_check_id_number_summary.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -18,6 +18,28 @@ module Plaid class KYCCheckIDNumberSummary attr_accessor :summary + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/kyc_check_name_summary.rb b/lib/plaid/models/kyc_check_name_summary.rb index 3f2a9f5a7..23fcaa78a 100644 --- a/lib/plaid/models/kyc_check_name_summary.rb +++ b/lib/plaid/models/kyc_check_name_summary.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -18,6 +18,28 @@ module Plaid class KYCCheckNameSummary attr_accessor :summary + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/kyc_check_phone_summary.rb b/lib/plaid/models/kyc_check_phone_summary.rb index 347594357..46f65e365 100644 --- a/lib/plaid/models/kyc_check_phone_summary.rb +++ b/lib/plaid/models/kyc_check_phone_summary.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -20,6 +20,28 @@ class KYCCheckPhoneSummary attr_accessor :area_code + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/last_data_access_times.rb b/lib/plaid/models/last_data_access_times.rb index 2ab8c72f9..73820d710 100644 --- a/lib/plaid/models/last_data_access_times.rb +++ b/lib/plaid/models/last_data_access_times.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/liabilities_default_update_webhook.rb b/lib/plaid/models/liabilities_default_update_webhook.rb index fb8894bda..cf20ca142 100644 --- a/lib/plaid/models/liabilities_default_update_webhook.rb +++ b/lib/plaid/models/liabilities_default_update_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -35,6 +35,28 @@ class LiabilitiesDefaultUpdateWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/liabilities_get_request.rb b/lib/plaid/models/liabilities_get_request.rb index bf0b19aa1..8554cf0e2 100644 --- a/lib/plaid/models/liabilities_get_request.rb +++ b/lib/plaid/models/liabilities_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/liabilities_get_request_options.rb b/lib/plaid/models/liabilities_get_request_options.rb index 0ce6742f9..fe7153c61 100644 --- a/lib/plaid/models/liabilities_get_request_options.rb +++ b/lib/plaid/models/liabilities_get_request_options.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/liabilities_get_response.rb b/lib/plaid/models/liabilities_get_response.rb index 7c628f107..00a4dc90c 100644 --- a/lib/plaid/models/liabilities_get_response.rb +++ b/lib/plaid/models/liabilities_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/liabilities_object.rb b/lib/plaid/models/liabilities_object.rb index 3497257ad..65a3439d9 100644 --- a/lib/plaid/models/liabilities_object.rb +++ b/lib/plaid/models/liabilities_object.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/liability_override.rb b/lib/plaid/models/liability_override.rb index 247550203..8fcee7ce3 100644 --- a/lib/plaid/models/liability_override.rb +++ b/lib/plaid/models/liability_override.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_callback_metadata.rb b/lib/plaid/models/link_callback_metadata.rb index 87283c06b..85d86b26b 100644 --- a/lib/plaid/models/link_callback_metadata.rb +++ b/lib/plaid/models/link_callback_metadata.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -34,6 +34,28 @@ class LinkCallbackMetadata # A list of accounts attached to the connected Item. If Account Select is enabled via the developer dashboard, accounts will only include selected accounts. attr_accessor :accounts + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/link_delivery_account.rb b/lib/plaid/models/link_delivery_account.rb index 4a694bd15..a80ed50e7 100644 --- a/lib/plaid/models/link_delivery_account.rb +++ b/lib/plaid/models/link_delivery_account.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -36,6 +36,28 @@ class LinkDeliveryAccount # If micro-deposit verification is being used, indicates whether the account being verified is a `business` or `personal` account. attr_accessor :class_type + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/link_delivery_callback_webhook.rb b/lib/plaid/models/link_delivery_callback_webhook.rb index f1d7c57ec..670b0b828 100644 --- a/lib/plaid/models/link_delivery_callback_webhook.rb +++ b/lib/plaid/models/link_delivery_callback_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_delivery_communication_method.rb b/lib/plaid/models/link_delivery_communication_method.rb index fa8c1e3c6..68259894e 100644 --- a/lib/plaid/models/link_delivery_communication_method.rb +++ b/lib/plaid/models/link_delivery_communication_method.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -21,6 +21,28 @@ class LinkDeliveryCommunicationMethod # The phone number / email address that Hosted Link sessions are delivered to. Phone numbers must be in E.164 format. attr_accessor :address + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/link_delivery_create_request.rb b/lib/plaid/models/link_delivery_create_request.rb index 76834db88..be07451dc 100644 --- a/lib/plaid/models/link_delivery_create_request.rb +++ b/lib/plaid/models/link_delivery_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_delivery_create_response.rb b/lib/plaid/models/link_delivery_create_response.rb index fc86dba9e..157b7bf7f 100644 --- a/lib/plaid/models/link_delivery_create_response.rb +++ b/lib/plaid/models/link_delivery_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_delivery_delivery_method.rb b/lib/plaid/models/link_delivery_delivery_method.rb index dd57ef842..9f064ac67 100644 --- a/lib/plaid/models/link_delivery_delivery_method.rb +++ b/lib/plaid/models/link_delivery_delivery_method.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_delivery_get_request.rb b/lib/plaid/models/link_delivery_get_request.rb index 82f6fea67..bde668c24 100644 --- a/lib/plaid/models/link_delivery_get_request.rb +++ b/lib/plaid/models/link_delivery_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_delivery_get_response.rb b/lib/plaid/models/link_delivery_get_response.rb index aba7d879a..50fba14ef 100644 --- a/lib/plaid/models/link_delivery_get_response.rb +++ b/lib/plaid/models/link_delivery_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -33,6 +33,28 @@ class LinkDeliveryGetResponse # An array of `item_id`s associated with the Hosted Link session. attr_accessor :item_ids + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/link_delivery_institution.rb b/lib/plaid/models/link_delivery_institution.rb index 4ea2f3bc2..270e43dba 100644 --- a/lib/plaid/models/link_delivery_institution.rb +++ b/lib/plaid/models/link_delivery_institution.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_delivery_metadata.rb b/lib/plaid/models/link_delivery_metadata.rb index a916958e1..319514ea5 100644 --- a/lib/plaid/models/link_delivery_metadata.rb +++ b/lib/plaid/models/link_delivery_metadata.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -20,6 +20,28 @@ class LinkDeliveryMetadata attr_accessor :delivery_status + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/link_delivery_options.rb b/lib/plaid/models/link_delivery_options.rb index 1c9fdf79a..c91025c38 100644 --- a/lib/plaid/models/link_delivery_options.rb +++ b/lib/plaid/models/link_delivery_options.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_delivery_recipient.rb b/lib/plaid/models/link_delivery_recipient.rb index 86c82e5f0..264bdd2f3 100644 --- a/lib/plaid/models/link_delivery_recipient.rb +++ b/lib/plaid/models/link_delivery_recipient.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_delivery_session_status.rb b/lib/plaid/models/link_delivery_session_status.rb index 27ced41ed..9699af8d4 100644 --- a/lib/plaid/models/link_delivery_session_status.rb +++ b/lib/plaid/models/link_delivery_session_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_delivery_verification_status.rb b/lib/plaid/models/link_delivery_verification_status.rb index 3080d9503..b595b457b 100644 --- a/lib/plaid/models/link_delivery_verification_status.rb +++ b/lib/plaid/models/link_delivery_verification_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_delivery_webhook_callback_type.rb b/lib/plaid/models/link_delivery_webhook_callback_type.rb index b4c34e988..21cb4c018 100644 --- a/lib/plaid/models/link_delivery_webhook_callback_type.rb +++ b/lib/plaid/models/link_delivery_webhook_callback_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_delivery_webhook_communication_method.rb b/lib/plaid/models/link_delivery_webhook_communication_method.rb index 4c78b42df..ed2745493 100644 --- a/lib/plaid/models/link_delivery_webhook_communication_method.rb +++ b/lib/plaid/models/link_delivery_webhook_communication_method.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_delivery_webhook_delivery_status.rb b/lib/plaid/models/link_delivery_webhook_delivery_status.rb index 19aa6d614..fb429b79a 100644 --- a/lib/plaid/models/link_delivery_webhook_delivery_status.rb +++ b/lib/plaid/models/link_delivery_webhook_delivery_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_event.rb b/lib/plaid/models/link_event.rb index 9819159a5..078522fb8 100644 --- a/lib/plaid/models/link_event.rb +++ b/lib/plaid/models/link_event.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_event_metadata.rb b/lib/plaid/models/link_event_metadata.rb index f3ed06ac1..fdf674233 100644 --- a/lib/plaid/models/link_event_metadata.rb +++ b/lib/plaid/models/link_event_metadata.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_event_name.rb b/lib/plaid/models/link_event_name.rb index ce2baa978..db789c9fb 100644 --- a/lib/plaid/models/link_event_name.rb +++ b/lib/plaid/models/link_event_name.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_events_webhook.rb b/lib/plaid/models/link_events_webhook.rb index 7159db008..ac95d30f3 100644 --- a/lib/plaid/models/link_events_webhook.rb +++ b/lib/plaid/models/link_events_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_o_auth_correlation_id_exchange_request.rb b/lib/plaid/models/link_o_auth_correlation_id_exchange_request.rb index 7feff0b59..96e6bfe19 100644 --- a/lib/plaid/models/link_o_auth_correlation_id_exchange_request.rb +++ b/lib/plaid/models/link_o_auth_correlation_id_exchange_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_o_auth_correlation_id_exchange_response.rb b/lib/plaid/models/link_o_auth_correlation_id_exchange_response.rb index 45ff5253b..34b5940af 100644 --- a/lib/plaid/models/link_o_auth_correlation_id_exchange_response.rb +++ b/lib/plaid/models/link_o_auth_correlation_id_exchange_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_session_exit.rb b/lib/plaid/models/link_session_exit.rb index 7f0c9248c..d3878c760 100644 --- a/lib/plaid/models/link_session_exit.rb +++ b/lib/plaid/models/link_session_exit.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_session_exit_metadata.rb b/lib/plaid/models/link_session_exit_metadata.rb index f6c9f71b8..eb66195d5 100644 --- a/lib/plaid/models/link_session_exit_metadata.rb +++ b/lib/plaid/models/link_session_exit_metadata.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_session_exit_metadata_institution.rb b/lib/plaid/models/link_session_exit_metadata_institution.rb index 2faeeef4c..9e805b723 100644 --- a/lib/plaid/models/link_session_exit_metadata_institution.rb +++ b/lib/plaid/models/link_session_exit_metadata_institution.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_session_finished_webhook.rb b/lib/plaid/models/link_session_finished_webhook.rb index 491af31fa..964d22252 100644 --- a/lib/plaid/models/link_session_finished_webhook.rb +++ b/lib/plaid/models/link_session_finished_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_session_success.rb b/lib/plaid/models/link_session_success.rb index 9afc372af..b60b9d855 100644 --- a/lib/plaid/models/link_session_success.rb +++ b/lib/plaid/models/link_session_success.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_session_success_metadata.rb b/lib/plaid/models/link_session_success_metadata.rb index 3b2413b36..329c6d869 100644 --- a/lib/plaid/models/link_session_success_metadata.rb +++ b/lib/plaid/models/link_session_success_metadata.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -26,6 +26,28 @@ class LinkSessionSuccessMetadata attr_accessor :transfer_status + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/link_session_success_metadata_account.rb b/lib/plaid/models/link_session_success_metadata_account.rb index a1c4dba04..94875767f 100644 --- a/lib/plaid/models/link_session_success_metadata_account.rb +++ b/lib/plaid/models/link_session_success_metadata_account.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_session_success_metadata_institution.rb b/lib/plaid/models/link_session_success_metadata_institution.rb index 1192954b4..ef9c6dbf4 100644 --- a/lib/plaid/models/link_session_success_metadata_institution.rb +++ b/lib/plaid/models/link_session_success_metadata_institution.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_session_success_metadata_transfer_status.rb b/lib/plaid/models/link_session_success_metadata_transfer_status.rb index e989eddf3..d3d594f25 100644 --- a/lib/plaid/models/link_session_success_metadata_transfer_status.rb +++ b/lib/plaid/models/link_session_success_metadata_transfer_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_token_account_filters.rb b/lib/plaid/models/link_token_account_filters.rb index d4f5d2441..fd74bbaf8 100644 --- a/lib/plaid/models/link_token_account_filters.rb +++ b/lib/plaid/models/link_token_account_filters.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_token_create_credit_filter.rb b/lib/plaid/models/link_token_create_credit_filter.rb index 85aaef0f4..8964d8661 100644 --- a/lib/plaid/models/link_token_create_credit_filter.rb +++ b/lib/plaid/models/link_token_create_credit_filter.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_token_create_depository_filter.rb b/lib/plaid/models/link_token_create_depository_filter.rb index 568da09cb..c288c044e 100644 --- a/lib/plaid/models/link_token_create_depository_filter.rb +++ b/lib/plaid/models/link_token_create_depository_filter.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_token_create_hosted_link.rb b/lib/plaid/models/link_token_create_hosted_link.rb index eb099ddb8..c8ab402d6 100644 --- a/lib/plaid/models/link_token_create_hosted_link.rb +++ b/lib/plaid/models/link_token_create_hosted_link.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -24,6 +24,28 @@ class LinkTokenCreateHostedLink # How many seconds the link will be valid for. Must be positive. Cannot be longer than 21 days. attr_accessor :url_lifetime_seconds + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/link_token_create_institution_data.rb b/lib/plaid/models/link_token_create_institution_data.rb index 9de69dd8a..d954cd790 100644 --- a/lib/plaid/models/link_token_create_institution_data.rb +++ b/lib/plaid/models/link_token_create_institution_data.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_token_create_investment_filter.rb b/lib/plaid/models/link_token_create_investment_filter.rb index c5288b59a..356d633b2 100644 --- a/lib/plaid/models/link_token_create_investment_filter.rb +++ b/lib/plaid/models/link_token_create_investment_filter.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_token_create_loan_filter.rb b/lib/plaid/models/link_token_create_loan_filter.rb index 44141c206..c948185ad 100644 --- a/lib/plaid/models/link_token_create_loan_filter.rb +++ b/lib/plaid/models/link_token_create_loan_filter.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_token_create_request.rb b/lib/plaid/models/link_token_create_request.rb index 24616a9ec..db1f40dc4 100644 --- a/lib/plaid/models/link_token_create_request.rb +++ b/lib/plaid/models/link_token_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -103,9 +103,33 @@ class LinkTokenCreateRequest attr_accessor :hosted_link + attr_accessor :transactions + # If `true`, request a CRA connection. Defaults to `false`. attr_accessor :cra_enabled + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -144,6 +168,7 @@ def self.attribute_map :'investments' => :'investments', :'investments_auth' => :'investments_auth', :'hosted_link' => :'hosted_link', + :'transactions' => :'transactions', :'cra_enabled' => :'cra_enabled' } end @@ -191,6 +216,7 @@ def self.openapi_types :'investments' => :'LinkTokenInvestments', :'investments_auth' => :'LinkTokenInvestmentsAuth', :'hosted_link' => :'LinkTokenCreateHostedLink', + :'transactions' => :'LinkTokenTransactions', :'cra_enabled' => :'Boolean' } end @@ -373,6 +399,10 @@ def initialize(attributes = {}) self.hosted_link = attributes[:'hosted_link'] end + if attributes.key?(:'transactions') + self.transactions = attributes[:'transactions'] + end + if attributes.key?(:'cra_enabled') self.cra_enabled = attributes[:'cra_enabled'] end @@ -531,6 +561,7 @@ def ==(o) investments == o.investments && investments_auth == o.investments_auth && hosted_link == o.hosted_link && + transactions == o.transactions && cra_enabled == o.cra_enabled end @@ -543,7 +574,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [client_id, secret, client_name, language, country_codes, user, products, required_if_supported_products, optional_products, additional_consented_products, webhook, access_token, access_tokens, link_customization_name, redirect_uri, android_package_name, institution_data, account_filters, eu_config, institution_id, payment_initiation, deposit_switch, employment, income_verification, base_report, consumer_report_permissible_purpose, auth, transfer, update, identity_verification, statements, user_token, investments, investments_auth, hosted_link, cra_enabled].hash + [client_id, secret, client_name, language, country_codes, user, products, required_if_supported_products, optional_products, additional_consented_products, webhook, access_token, access_tokens, link_customization_name, redirect_uri, android_package_name, institution_data, account_filters, eu_config, institution_id, payment_initiation, deposit_switch, employment, income_verification, base_report, consumer_report_permissible_purpose, auth, transfer, update, identity_verification, statements, user_token, investments, investments_auth, hosted_link, transactions, cra_enabled].hash end # Builds the object from hash diff --git a/lib/plaid/models/link_token_create_request_account_subtypes.rb b/lib/plaid/models/link_token_create_request_account_subtypes.rb index 3bcb9c9d1..d2a6f9781 100644 --- a/lib/plaid/models/link_token_create_request_account_subtypes.rb +++ b/lib/plaid/models/link_token_create_request_account_subtypes.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_token_create_request_auth.rb b/lib/plaid/models/link_token_create_request_auth.rb index c4cc90e09..ceaed4249 100644 --- a/lib/plaid/models/link_token_create_request_auth.rb +++ b/lib/plaid/models/link_token_create_request_auth.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_token_create_request_base_report.rb b/lib/plaid/models/link_token_create_request_base_report.rb index 3503e24a2..d20b6e208 100644 --- a/lib/plaid/models/link_token_create_request_base_report.rb +++ b/lib/plaid/models/link_token_create_request_base_report.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_token_create_request_deposit_switch.rb b/lib/plaid/models/link_token_create_request_deposit_switch.rb index 61c1d94a3..0960ed596 100644 --- a/lib/plaid/models/link_token_create_request_deposit_switch.rb +++ b/lib/plaid/models/link_token_create_request_deposit_switch.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_token_create_request_employment.rb b/lib/plaid/models/link_token_create_request_employment.rb index 0269c7f99..7ff8e960a 100644 --- a/lib/plaid/models/link_token_create_request_employment.rb +++ b/lib/plaid/models/link_token_create_request_employment.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_token_create_request_employment_bank_income.rb b/lib/plaid/models/link_token_create_request_employment_bank_income.rb index 167ebc0f4..337a978b2 100644 --- a/lib/plaid/models/link_token_create_request_employment_bank_income.rb +++ b/lib/plaid/models/link_token_create_request_employment_bank_income.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_token_create_request_identity_verification.rb b/lib/plaid/models/link_token_create_request_identity_verification.rb index 07aede074..646c4199f 100644 --- a/lib/plaid/models/link_token_create_request_identity_verification.rb +++ b/lib/plaid/models/link_token_create_request_identity_verification.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_token_create_request_income_verification.rb b/lib/plaid/models/link_token_create_request_income_verification.rb index c22c1419a..9b6c00097 100644 --- a/lib/plaid/models/link_token_create_request_income_verification.rb +++ b/lib/plaid/models/link_token_create_request_income_verification.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_token_create_request_income_verification_bank_income.rb b/lib/plaid/models/link_token_create_request_income_verification_bank_income.rb index 3b82cc028..e0c59fb74 100644 --- a/lib/plaid/models/link_token_create_request_income_verification_bank_income.rb +++ b/lib/plaid/models/link_token_create_request_income_verification_bank_income.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_token_create_request_income_verification_payroll_income.rb b/lib/plaid/models/link_token_create_request_income_verification_payroll_income.rb index 4f066aa15..519d7333d 100644 --- a/lib/plaid/models/link_token_create_request_income_verification_payroll_income.rb +++ b/lib/plaid/models/link_token_create_request_income_verification_payroll_income.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_token_create_request_payment_initiation.rb b/lib/plaid/models/link_token_create_request_payment_initiation.rb index b59ebbabe..75f34fa1e 100644 --- a/lib/plaid/models/link_token_create_request_payment_initiation.rb +++ b/lib/plaid/models/link_token_create_request_payment_initiation.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_token_create_request_statements.rb b/lib/plaid/models/link_token_create_request_statements.rb index 8d2229216..4742e67a1 100644 --- a/lib/plaid/models/link_token_create_request_statements.rb +++ b/lib/plaid/models/link_token_create_request_statements.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -19,7 +19,7 @@ class LinkTokenCreateRequestStatements # The start date for statements, in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) “YYYY-MM-DD” format, e.g. \"2020-10-30\". If no value is provided, this will default to 3 months prior to the current date. attr_accessor :start_date - # The end date for statements, in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) “YYYY-MM-DD” format, e.g. \"2020-10-30\". If no value is provided, this will default to the current date. + # The end date for statements, in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) “YYYY-MM-DD” format, e.g. \"2020-10-30\". If no value is provided, this will default to the current date. You can request up to two years of data. attr_accessor :end_date # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/plaid/models/link_token_create_request_transfer.rb b/lib/plaid/models/link_token_create_request_transfer.rb index 163e39fc9..64c2e4bbd 100644 --- a/lib/plaid/models/link_token_create_request_transfer.rb +++ b/lib/plaid/models/link_token_create_request_transfer.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_token_create_request_update.rb b/lib/plaid/models/link_token_create_request_update.rb index 896fbea69..e6c351fad 100644 --- a/lib/plaid/models/link_token_create_request_update.rb +++ b/lib/plaid/models/link_token_create_request_update.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_token_create_request_user.rb b/lib/plaid/models/link_token_create_request_user.rb index 6533e2e17..3ff2bbc7f 100644 --- a/lib/plaid/models/link_token_create_request_user.rb +++ b/lib/plaid/models/link_token_create_request_user.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_token_create_request_user_address.rb b/lib/plaid/models/link_token_create_request_user_address.rb index ef2e23869..429e069be 100644 --- a/lib/plaid/models/link_token_create_request_user_address.rb +++ b/lib/plaid/models/link_token_create_request_user_address.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_token_create_request_user_id_number.rb b/lib/plaid/models/link_token_create_request_user_id_number.rb index 41a4d5e69..54bf09e13 100644 --- a/lib/plaid/models/link_token_create_request_user_id_number.rb +++ b/lib/plaid/models/link_token_create_request_user_id_number.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -20,6 +20,28 @@ class LinkTokenCreateRequestUserIdNumber attr_accessor :type + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/link_token_create_request_user_name.rb b/lib/plaid/models/link_token_create_request_user_name.rb index d7bf5fd1e..663a3bcaa 100644 --- a/lib/plaid/models/link_token_create_request_user_name.rb +++ b/lib/plaid/models/link_token_create_request_user_name.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_token_create_request_user_stated_income_source.rb b/lib/plaid/models/link_token_create_request_user_stated_income_source.rb index 922f70ae8..0f766b0a9 100644 --- a/lib/plaid/models/link_token_create_request_user_stated_income_source.rb +++ b/lib/plaid/models/link_token_create_request_user_stated_income_source.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -31,6 +31,28 @@ class LinkTokenCreateRequestUserStatedIncomeSource attr_accessor :pay_frequency + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/link_token_create_response.rb b/lib/plaid/models/link_token_create_response.rb index 2a01f381a..1ae061047 100644 --- a/lib/plaid/models/link_token_create_response.rb +++ b/lib/plaid/models/link_token_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_token_eu_config.rb b/lib/plaid/models/link_token_eu_config.rb index 8882c27e6..3acba206e 100644 --- a/lib/plaid/models/link_token_eu_config.rb +++ b/lib/plaid/models/link_token_eu_config.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_token_get_metadata_response.rb b/lib/plaid/models/link_token_get_metadata_response.rb index 64367b550..4fdee89e2 100644 --- a/lib/plaid/models/link_token_get_metadata_response.rb +++ b/lib/plaid/models/link_token_get_metadata_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_token_get_request.rb b/lib/plaid/models/link_token_get_request.rb index 6c66a1f4f..bcccade39 100644 --- a/lib/plaid/models/link_token_get_request.rb +++ b/lib/plaid/models/link_token_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_token_get_response.rb b/lib/plaid/models/link_token_get_response.rb index ec3ad5e20..7a917cca1 100644 --- a/lib/plaid/models/link_token_get_response.rb +++ b/lib/plaid/models/link_token_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_token_get_sessions_response.rb b/lib/plaid/models/link_token_get_sessions_response.rb index c5add6cf8..4e376849f 100644 --- a/lib/plaid/models/link_token_get_sessions_response.rb +++ b/lib/plaid/models/link_token_get_sessions_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_token_investments.rb b/lib/plaid/models/link_token_investments.rb index 3658bb208..6a146728b 100644 --- a/lib/plaid/models/link_token_investments.rb +++ b/lib/plaid/models/link_token_investments.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_token_investments_auth.rb b/lib/plaid/models/link_token_investments_auth.rb index 9bedcf309..d7a6b184f 100644 --- a/lib/plaid/models/link_token_investments_auth.rb +++ b/lib/plaid/models/link_token_investments_auth.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/link_token_transactions.rb b/lib/plaid/models/link_token_transactions.rb new file mode 100644 index 000000000..a4c8ce455 --- /dev/null +++ b/lib/plaid/models/link_token_transactions.rb @@ -0,0 +1,249 @@ +=begin +#The Plaid API + +#The Plaid REST API. Please see https://plaid.com/docs/api for more details. + +The version of the OpenAPI document: 2020-09-14_1.474.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 6.3.0 + +=end + +require 'date' +require 'time' + +module Plaid + # Configuration parameters for the Transactions product + class LinkTokenTransactions + # The maximum number of days of transaction history to request for the Transactions product. For developer accounts created after December 3, 2023, if no value is specified, this will default to 90 days. For developer accounts created on December 3, 2023 or earlier, if no value is specified, this will default to 730 days until June 24, 2024, at which point it will default to 90 days. + attr_accessor :days_requested + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'days_requested' => :'days_requested' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'days_requested' => :'Integer' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `Plaid::LinkTokenTransactions` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Plaid::LinkTokenTransactions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'days_requested') + self.days_requested = attributes[:'days_requested'] + else + self.days_requested = 90 + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + if !@days_requested.nil? && @days_requested > 730 + invalid_properties.push('invalid value for "days_requested", must be smaller than or equal to 730.') + end + + if !@days_requested.nil? && @days_requested < 1 + invalid_properties.push('invalid value for "days_requested", must be greater than or equal to 1.') + end + + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + return false if !@days_requested.nil? && @days_requested > 730 + return false if !@days_requested.nil? && @days_requested < 1 + true + end + + # Custom attribute writer method with validation + # @param [Object] days_requested Value to be assigned + def days_requested=(days_requested) + if !days_requested.nil? && days_requested > 730 + fail ArgumentError, 'invalid value for "days_requested", must be smaller than or equal to 730.' + end + + if !days_requested.nil? && days_requested < 1 + fail ArgumentError, 'invalid value for "days_requested", must be greater than or equal to 1.' + end + + + @days_requested = days_requested + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + days_requested == o.days_requested + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [days_requested].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = Plaid.const_get(type) + klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/lib/plaid/models/link_user_delivery_status_webhook.rb b/lib/plaid/models/link_user_delivery_status_webhook.rb index e5ba945ac..777475154 100644 --- a/lib/plaid/models/link_user_delivery_status_webhook.rb +++ b/lib/plaid/models/link_user_delivery_status_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/loan.rb b/lib/plaid/models/loan.rb index c0ba12cb8..6785700a8 100644 --- a/lib/plaid/models/loan.rb +++ b/lib/plaid/models/loan.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/loan_account_subtype.rb b/lib/plaid/models/loan_account_subtype.rb index ab87a9641..cfa264424 100644 --- a/lib/plaid/models/loan_account_subtype.rb +++ b/lib/plaid/models/loan_account_subtype.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/loan_filter.rb b/lib/plaid/models/loan_filter.rb index d84244fd6..dbb10aa06 100644 --- a/lib/plaid/models/loan_filter.rb +++ b/lib/plaid/models/loan_filter.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/loan_identifier.rb b/lib/plaid/models/loan_identifier.rb index 57b391816..22cc3828d 100644 --- a/lib/plaid/models/loan_identifier.rb +++ b/lib/plaid/models/loan_identifier.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -21,6 +21,28 @@ class LoanIdentifier attr_accessor :loan_identifier_type + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/loan_identifier_type.rb b/lib/plaid/models/loan_identifier_type.rb index 4a2205950..417691759 100644 --- a/lib/plaid/models/loan_identifier_type.rb +++ b/lib/plaid/models/loan_identifier_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/loan_identifiers.rb b/lib/plaid/models/loan_identifiers.rb index 02ee1d92b..b0df681cd 100644 --- a/lib/plaid/models/loan_identifiers.rb +++ b/lib/plaid/models/loan_identifiers.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/loans.rb b/lib/plaid/models/loans.rb index a30fe8d41..09b10404e 100644 --- a/lib/plaid/models/loans.rb +++ b/lib/plaid/models/loans.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/location.rb b/lib/plaid/models/location.rb index 4cdcadc7e..6e83760ca 100644 --- a/lib/plaid/models/location.rb +++ b/lib/plaid/models/location.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/match_summary.rb b/lib/plaid/models/match_summary.rb index e11a80fc4..cf3c4c081 100644 --- a/lib/plaid/models/match_summary.rb +++ b/lib/plaid/models/match_summary.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -18,6 +18,28 @@ module Plaid class MatchSummary attr_accessor :summary + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/match_summary_code.rb b/lib/plaid/models/match_summary_code.rb index f3a73c9a3..7a5e1af69 100644 --- a/lib/plaid/models/match_summary_code.rb +++ b/lib/plaid/models/match_summary_code.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/merchant_insights.rb b/lib/plaid/models/merchant_insights.rb index ab02cb2cf..2d7c5dfdc 100644 --- a/lib/plaid/models/merchant_insights.rb +++ b/lib/plaid/models/merchant_insights.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/meta.rb b/lib/plaid/models/meta.rb index 95647fa6b..a68dfc8f9 100644 --- a/lib/plaid/models/meta.rb +++ b/lib/plaid/models/meta.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/mfa.rb b/lib/plaid/models/mfa.rb index ab7b2c942..bcf7d6f96 100644 --- a/lib/plaid/models/mfa.rb +++ b/lib/plaid/models/mfa.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/mortgage_interest_rate.rb b/lib/plaid/models/mortgage_interest_rate.rb index f8bffe173..244e34ffb 100644 --- a/lib/plaid/models/mortgage_interest_rate.rb +++ b/lib/plaid/models/mortgage_interest_rate.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/mortgage_liability.rb b/lib/plaid/models/mortgage_liability.rb index 577fad188..47bf10861 100644 --- a/lib/plaid/models/mortgage_liability.rb +++ b/lib/plaid/models/mortgage_liability.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/mortgage_property_address.rb b/lib/plaid/models/mortgage_property_address.rb index ce3fdc443..10c36ff39 100644 --- a/lib/plaid/models/mortgage_property_address.rb +++ b/lib/plaid/models/mortgage_property_address.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/multi_document_risk_signal.rb b/lib/plaid/models/multi_document_risk_signal.rb index fd7c1816a..f817af7a0 100644 --- a/lib/plaid/models/multi_document_risk_signal.rb +++ b/lib/plaid/models/multi_document_risk_signal.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/name_match_score.rb b/lib/plaid/models/name_match_score.rb index d9a534bb6..254841f6d 100644 --- a/lib/plaid/models/name_match_score.rb +++ b/lib/plaid/models/name_match_score.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/net_pay.rb b/lib/plaid/models/net_pay.rb index c28286e56..d428ec7d8 100644 --- a/lib/plaid/models/net_pay.rb +++ b/lib/plaid/models/net_pay.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/new_accounts_available_webhook.rb b/lib/plaid/models/new_accounts_available_webhook.rb index bd630bbe2..6ef79e4dd 100644 --- a/lib/plaid/models/new_accounts_available_webhook.rb +++ b/lib/plaid/models/new_accounts_available_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -29,6 +29,28 @@ class NewAccountsAvailableWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/numbers.rb b/lib/plaid/models/numbers.rb index 52cf3eaef..93144e911 100644 --- a/lib/plaid/models/numbers.rb +++ b/lib/plaid/models/numbers.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/numbers_acats.rb b/lib/plaid/models/numbers_acats.rb index bf4c029ae..32663edda 100644 --- a/lib/plaid/models/numbers_acats.rb +++ b/lib/plaid/models/numbers_acats.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/numbers_ach.rb b/lib/plaid/models/numbers_ach.rb index a8fa1f711..da3287c6a 100644 --- a/lib/plaid/models/numbers_ach.rb +++ b/lib/plaid/models/numbers_ach.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/numbers_ach_nullable.rb b/lib/plaid/models/numbers_ach_nullable.rb index 88e82e3bd..f87e40631 100644 --- a/lib/plaid/models/numbers_ach_nullable.rb +++ b/lib/plaid/models/numbers_ach_nullable.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/numbers_aton.rb b/lib/plaid/models/numbers_aton.rb index 51425129f..5713f2221 100644 --- a/lib/plaid/models/numbers_aton.rb +++ b/lib/plaid/models/numbers_aton.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/numbers_bacs.rb b/lib/plaid/models/numbers_bacs.rb index 08845645b..013fa8a53 100644 --- a/lib/plaid/models/numbers_bacs.rb +++ b/lib/plaid/models/numbers_bacs.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/numbers_bacs_nullable.rb b/lib/plaid/models/numbers_bacs_nullable.rb index 5d4a36587..1d3bc810c 100644 --- a/lib/plaid/models/numbers_bacs_nullable.rb +++ b/lib/plaid/models/numbers_bacs_nullable.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/numbers_eft.rb b/lib/plaid/models/numbers_eft.rb index 4d2b98861..5381276bf 100644 --- a/lib/plaid/models/numbers_eft.rb +++ b/lib/plaid/models/numbers_eft.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/numbers_eft_nullable.rb b/lib/plaid/models/numbers_eft_nullable.rb index 9741ad9fe..723026c66 100644 --- a/lib/plaid/models/numbers_eft_nullable.rb +++ b/lib/plaid/models/numbers_eft_nullable.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/numbers_iban_nullable.rb b/lib/plaid/models/numbers_iban_nullable.rb index 70c65728c..3c110e505 100644 --- a/lib/plaid/models/numbers_iban_nullable.rb +++ b/lib/plaid/models/numbers_iban_nullable.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/numbers_international.rb b/lib/plaid/models/numbers_international.rb index 38e78504c..7298d97dd 100644 --- a/lib/plaid/models/numbers_international.rb +++ b/lib/plaid/models/numbers_international.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/numbers_international_iban.rb b/lib/plaid/models/numbers_international_iban.rb index 18698503b..1458dc809 100644 --- a/lib/plaid/models/numbers_international_iban.rb +++ b/lib/plaid/models/numbers_international_iban.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/numbers_international_nullable.rb b/lib/plaid/models/numbers_international_nullable.rb index 6ebe25417..9e682a623 100644 --- a/lib/plaid/models/numbers_international_nullable.rb +++ b/lib/plaid/models/numbers_international_nullable.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/omittable_transfer_type.rb b/lib/plaid/models/omittable_transfer_type.rb index 5cfb1f69f..e9995ab55 100644 --- a/lib/plaid/models/omittable_transfer_type.rb +++ b/lib/plaid/models/omittable_transfer_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/originator.rb b/lib/plaid/models/originator.rb index 061040ce5..bc2b29ad5 100644 --- a/lib/plaid/models/originator.rb +++ b/lib/plaid/models/originator.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -21,6 +21,28 @@ class Originator attr_accessor :transfer_diligence_status + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/originator_expected_transfer_frequency.rb b/lib/plaid/models/originator_expected_transfer_frequency.rb index 6996f1b3c..85e734eb2 100644 --- a/lib/plaid/models/originator_expected_transfer_frequency.rb +++ b/lib/plaid/models/originator_expected_transfer_frequency.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/other_account_subtype.rb b/lib/plaid/models/other_account_subtype.rb index 60d7d2c41..6158591ac 100644 --- a/lib/plaid/models/other_account_subtype.rb +++ b/lib/plaid/models/other_account_subtype.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/other_filter.rb b/lib/plaid/models/other_filter.rb index 9d982fcde..f665d9a0e 100644 --- a/lib/plaid/models/other_filter.rb +++ b/lib/plaid/models/other_filter.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/override_account_type.rb b/lib/plaid/models/override_account_type.rb index 91cef329f..6227d9a35 100644 --- a/lib/plaid/models/override_account_type.rb +++ b/lib/plaid/models/override_account_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/override_accounts.rb b/lib/plaid/models/override_accounts.rb index 83a2addc4..38162fba6 100644 --- a/lib/plaid/models/override_accounts.rb +++ b/lib/plaid/models/override_accounts.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -48,6 +48,28 @@ class OverrideAccounts attr_accessor :income + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/owner.rb b/lib/plaid/models/owner.rb index 477f03efb..cc78cf3c3 100644 --- a/lib/plaid/models/owner.rb +++ b/lib/plaid/models/owner.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/owner_override.rb b/lib/plaid/models/owner_override.rb index faf1c1ad3..9b5688434 100644 --- a/lib/plaid/models/owner_override.rb +++ b/lib/plaid/models/owner_override.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/ownership_type.rb b/lib/plaid/models/ownership_type.rb index b1eadd1e2..aa0b56322 100644 --- a/lib/plaid/models/ownership_type.rb +++ b/lib/plaid/models/ownership_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/parties.rb b/lib/plaid/models/parties.rb index 4be721d24..1cfa1154c 100644 --- a/lib/plaid/models/parties.rb +++ b/lib/plaid/models/parties.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/partner_customer_create_request.rb b/lib/plaid/models/partner_customer_create_request.rb index 08cfbedfd..1f7056166 100644 --- a/lib/plaid/models/partner_customer_create_request.rb +++ b/lib/plaid/models/partner_customer_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/partner_customer_create_response.rb b/lib/plaid/models/partner_customer_create_response.rb index c7e772799..c30ddb7b7 100644 --- a/lib/plaid/models/partner_customer_create_response.rb +++ b/lib/plaid/models/partner_customer_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/partner_customer_enable_request.rb b/lib/plaid/models/partner_customer_enable_request.rb index b82714e09..72d011b52 100644 --- a/lib/plaid/models/partner_customer_enable_request.rb +++ b/lib/plaid/models/partner_customer_enable_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/partner_customer_enable_response.rb b/lib/plaid/models/partner_customer_enable_response.rb index 5d38c6eec..54b4d1a50 100644 --- a/lib/plaid/models/partner_customer_enable_response.rb +++ b/lib/plaid/models/partner_customer_enable_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/partner_customer_get_request.rb b/lib/plaid/models/partner_customer_get_request.rb index ad6c76dfa..846113369 100644 --- a/lib/plaid/models/partner_customer_get_request.rb +++ b/lib/plaid/models/partner_customer_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/partner_customer_get_response.rb b/lib/plaid/models/partner_customer_get_response.rb index 04a76ada0..f37ebf45d 100644 --- a/lib/plaid/models/partner_customer_get_response.rb +++ b/lib/plaid/models/partner_customer_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/partner_customer_o_auth_institutions_get_request.rb b/lib/plaid/models/partner_customer_o_auth_institutions_get_request.rb index 9c74f87a4..8ad16dadd 100644 --- a/lib/plaid/models/partner_customer_o_auth_institutions_get_request.rb +++ b/lib/plaid/models/partner_customer_o_auth_institutions_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/partner_customer_o_auth_institutions_get_response.rb b/lib/plaid/models/partner_customer_o_auth_institutions_get_response.rb index 31906c654..18b245094 100644 --- a/lib/plaid/models/partner_customer_o_auth_institutions_get_response.rb +++ b/lib/plaid/models/partner_customer_o_auth_institutions_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -26,6 +26,28 @@ class PartnerCustomerOAuthInstitutionsGetResponse # A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive. attr_accessor :request_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/partner_customer_remove_request.rb b/lib/plaid/models/partner_customer_remove_request.rb index 2c71af82a..3251359a8 100644 --- a/lib/plaid/models/partner_customer_remove_request.rb +++ b/lib/plaid/models/partner_customer_remove_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/partner_customer_remove_response.rb b/lib/plaid/models/partner_customer_remove_response.rb index 741be25ef..e7368a6fa 100644 --- a/lib/plaid/models/partner_customer_remove_response.rb +++ b/lib/plaid/models/partner_customer_remove_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/partner_end_customer.rb b/lib/plaid/models/partner_end_customer.rb index d367b5643..35f35baa9 100644 --- a/lib/plaid/models/partner_end_customer.rb +++ b/lib/plaid/models/partner_end_customer.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -24,6 +24,28 @@ class PartnerEndCustomer attr_accessor :status + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/partner_end_customer_address.rb b/lib/plaid/models/partner_end_customer_address.rb index 93426f57b..a60df9f3c 100644 --- a/lib/plaid/models/partner_end_customer_address.rb +++ b/lib/plaid/models/partner_end_customer_address.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/partner_end_customer_assets_under_management.rb b/lib/plaid/models/partner_end_customer_assets_under_management.rb index c8c685170..66f42f8b8 100644 --- a/lib/plaid/models/partner_end_customer_assets_under_management.rb +++ b/lib/plaid/models/partner_end_customer_assets_under_management.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/partner_end_customer_billing_contact.rb b/lib/plaid/models/partner_end_customer_billing_contact.rb index 811472896..26c412fe1 100644 --- a/lib/plaid/models/partner_end_customer_billing_contact.rb +++ b/lib/plaid/models/partner_end_customer_billing_contact.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/partner_end_customer_customer_support_info.rb b/lib/plaid/models/partner_end_customer_customer_support_info.rb index 2c33778ea..71fe1c060 100644 --- a/lib/plaid/models/partner_end_customer_customer_support_info.rb +++ b/lib/plaid/models/partner_end_customer_customer_support_info.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/partner_end_customer_flowdown_status.rb b/lib/plaid/models/partner_end_customer_flowdown_status.rb index c18695553..30dff1ed9 100644 --- a/lib/plaid/models/partner_end_customer_flowdown_status.rb +++ b/lib/plaid/models/partner_end_customer_flowdown_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/partner_end_customer_o_auth_institution.rb b/lib/plaid/models/partner_end_customer_o_auth_institution.rb index 1ca414893..fe0096bcf 100644 --- a/lib/plaid/models/partner_end_customer_o_auth_institution.rb +++ b/lib/plaid/models/partner_end_customer_o_auth_institution.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/partner_end_customer_o_auth_institution_application_status.rb b/lib/plaid/models/partner_end_customer_o_auth_institution_application_status.rb index 174573148..b36f53376 100644 --- a/lib/plaid/models/partner_end_customer_o_auth_institution_application_status.rb +++ b/lib/plaid/models/partner_end_customer_o_auth_institution_application_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/partner_end_customer_o_auth_institution_environments.rb b/lib/plaid/models/partner_end_customer_o_auth_institution_environments.rb index 120332f1e..17dee4fb9 100644 --- a/lib/plaid/models/partner_end_customer_o_auth_institution_environments.rb +++ b/lib/plaid/models/partner_end_customer_o_auth_institution_environments.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -20,6 +20,28 @@ class PartnerEndCustomerOAuthInstitutionEnvironments attr_accessor :production + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/partner_end_customer_o_auth_status_updated_values.rb b/lib/plaid/models/partner_end_customer_o_auth_status_updated_values.rb index e2ab0515c..a98a97cfb 100644 --- a/lib/plaid/models/partner_end_customer_o_auth_status_updated_values.rb +++ b/lib/plaid/models/partner_end_customer_o_auth_status_updated_values.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/partner_end_customer_o_auth_status_updated_webhook.rb b/lib/plaid/models/partner_end_customer_o_auth_status_updated_webhook.rb index 1c5a3b85a..7b08391b5 100644 --- a/lib/plaid/models/partner_end_customer_o_auth_status_updated_webhook.rb +++ b/lib/plaid/models/partner_end_customer_o_auth_status_updated_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -35,6 +35,28 @@ class PartnerEndCustomerOAuthStatusUpdatedWebhook attr_accessor :status + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/partner_end_customer_questionnaire_status.rb b/lib/plaid/models/partner_end_customer_questionnaire_status.rb index d5018fb61..fdd96d514 100644 --- a/lib/plaid/models/partner_end_customer_questionnaire_status.rb +++ b/lib/plaid/models/partner_end_customer_questionnaire_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/partner_end_customer_secrets.rb b/lib/plaid/models/partner_end_customer_secrets.rb index 152725363..18a43bde3 100644 --- a/lib/plaid/models/partner_end_customer_secrets.rb +++ b/lib/plaid/models/partner_end_customer_secrets.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/partner_end_customer_status.rb b/lib/plaid/models/partner_end_customer_status.rb index 37efcc8e9..bebe6d5ba 100644 --- a/lib/plaid/models/partner_end_customer_status.rb +++ b/lib/plaid/models/partner_end_customer_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/partner_end_customer_technical_contact.rb b/lib/plaid/models/partner_end_customer_technical_contact.rb index bd6597dbc..dd40628c4 100644 --- a/lib/plaid/models/partner_end_customer_technical_contact.rb +++ b/lib/plaid/models/partner_end_customer_technical_contact.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/partner_end_customer_with_secrets.rb b/lib/plaid/models/partner_end_customer_with_secrets.rb index e7e8bcf1d..ac56072c7 100644 --- a/lib/plaid/models/partner_end_customer_with_secrets.rb +++ b/lib/plaid/models/partner_end_customer_with_secrets.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -26,6 +26,28 @@ class PartnerEndCustomerWithSecrets attr_accessor :secrets + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/partner_end_customer_with_secrets_all_of.rb b/lib/plaid/models/partner_end_customer_with_secrets_all_of.rb index af0280a59..224e6e896 100644 --- a/lib/plaid/models/partner_end_customer_with_secrets_all_of.rb +++ b/lib/plaid/models/partner_end_customer_with_secrets_all_of.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/party.rb b/lib/plaid/models/party.rb index bbceab110..2f3871e98 100644 --- a/lib/plaid/models/party.rb +++ b/lib/plaid/models/party.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/party_individual.rb b/lib/plaid/models/party_individual.rb index 1000f76d9..58cbf5129 100644 --- a/lib/plaid/models/party_individual.rb +++ b/lib/plaid/models/party_individual.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/party_role_type.rb b/lib/plaid/models/party_role_type.rb index 1459735d3..d3ebe3b88 100644 --- a/lib/plaid/models/party_role_type.rb +++ b/lib/plaid/models/party_role_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/pay.rb b/lib/plaid/models/pay.rb index 06af29c1d..6735ecbdd 100644 --- a/lib/plaid/models/pay.rb +++ b/lib/plaid/models/pay.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/pay_frequency.rb b/lib/plaid/models/pay_frequency.rb index ad1285286..1f49094eb 100644 --- a/lib/plaid/models/pay_frequency.rb +++ b/lib/plaid/models/pay_frequency.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -20,6 +20,28 @@ class PayFrequency attr_accessor :verification_status + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/pay_frequency_value.rb b/lib/plaid/models/pay_frequency_value.rb index 3bea5f050..6b574b2eb 100644 --- a/lib/plaid/models/pay_frequency_value.rb +++ b/lib/plaid/models/pay_frequency_value.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/pay_period_details.rb b/lib/plaid/models/pay_period_details.rb index 2ea9619c8..c0552e13d 100644 --- a/lib/plaid/models/pay_period_details.rb +++ b/lib/plaid/models/pay_period_details.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/pay_stub_deductions_breakdown.rb b/lib/plaid/models/pay_stub_deductions_breakdown.rb index 3b0ff3f52..32b25e403 100644 --- a/lib/plaid/models/pay_stub_deductions_breakdown.rb +++ b/lib/plaid/models/pay_stub_deductions_breakdown.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/pay_stub_deductions_total.rb b/lib/plaid/models/pay_stub_deductions_total.rb index dd9e25660..45a0b610a 100644 --- a/lib/plaid/models/pay_stub_deductions_total.rb +++ b/lib/plaid/models/pay_stub_deductions_total.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/pay_stub_distribution_breakdown.rb b/lib/plaid/models/pay_stub_distribution_breakdown.rb index ec708079f..a4c4d4504 100644 --- a/lib/plaid/models/pay_stub_distribution_breakdown.rb +++ b/lib/plaid/models/pay_stub_distribution_breakdown.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/pay_stub_earnings_breakdown.rb b/lib/plaid/models/pay_stub_earnings_breakdown.rb index cf7ecf336..7235327e8 100644 --- a/lib/plaid/models/pay_stub_earnings_breakdown.rb +++ b/lib/plaid/models/pay_stub_earnings_breakdown.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/pay_stub_earnings_total.rb b/lib/plaid/models/pay_stub_earnings_total.rb index 805b4eef2..846583cb9 100644 --- a/lib/plaid/models/pay_stub_earnings_total.rb +++ b/lib/plaid/models/pay_stub_earnings_total.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/pay_stub_pay_period_details.rb b/lib/plaid/models/pay_stub_pay_period_details.rb index e8a66fe8d..1ade8896d 100644 --- a/lib/plaid/models/pay_stub_pay_period_details.rb +++ b/lib/plaid/models/pay_stub_pay_period_details.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -44,6 +44,28 @@ class PayStubPayPeriodDetails # The unofficial currency code associated with the net pay. Always `null` if `iso_currency_code` is non-`null`. Unofficial currency codes are used for currencies that do not have official ISO currency codes, such as cryptocurrencies and the currencies of certain countries. See the [currency code schema](https://plaid.com/docs/api/accounts#currency-code-schema) for a full listing of supported `iso_currency_code`s. attr_accessor :unofficial_currency_code + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/pay_stub_taxpayer_id.rb b/lib/plaid/models/pay_stub_taxpayer_id.rb index e1222236d..4f3692306 100644 --- a/lib/plaid/models/pay_stub_taxpayer_id.rb +++ b/lib/plaid/models/pay_stub_taxpayer_id.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_amount.rb b/lib/plaid/models/payment_amount.rb index 01d842521..16f7018ff 100644 --- a/lib/plaid/models/payment_amount.rb +++ b/lib/plaid/models/payment_amount.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -21,6 +21,28 @@ class PaymentAmount # The amount of the payment. Must contain at most two digits of precision e.g. `1.23`. Minimum accepted value is `1`. attr_accessor :value + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/payment_amount_currency.rb b/lib/plaid/models/payment_amount_currency.rb index 0ab20600b..b0a285763 100644 --- a/lib/plaid/models/payment_amount_currency.rb +++ b/lib/plaid/models/payment_amount_currency.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_amount_nullable.rb b/lib/plaid/models/payment_amount_nullable.rb index 9bb801762..b24b1bda7 100644 --- a/lib/plaid/models/payment_amount_nullable.rb +++ b/lib/plaid/models/payment_amount_nullable.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -21,6 +21,28 @@ class PaymentAmountNullable # The amount of the payment. Must contain at most two digits of precision e.g. `1.23`. attr_accessor :value + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/payment_amount_refunded.rb b/lib/plaid/models/payment_amount_refunded.rb index 57421e497..26702ec12 100644 --- a/lib/plaid/models/payment_amount_refunded.rb +++ b/lib/plaid/models/payment_amount_refunded.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -21,6 +21,28 @@ class PaymentAmountRefunded # The amount of the payment. Must contain at most two digits of precision e.g. `1.23`. attr_accessor :value + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/payment_amount_to_refund.rb b/lib/plaid/models/payment_amount_to_refund.rb index 2bb35eaf5..25d3ac11b 100644 --- a/lib/plaid/models/payment_amount_to_refund.rb +++ b/lib/plaid/models/payment_amount_to_refund.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -21,6 +21,28 @@ class PaymentAmountToRefund # The amount of the payment. Must contain at most two digits of precision e.g. `1.23`. attr_accessor :value + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/payment_channel.rb b/lib/plaid/models/payment_channel.rb index ca1c0ea89..417898203 100644 --- a/lib/plaid/models/payment_channel.rb +++ b/lib/plaid/models/payment_channel.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_consent_max_payment_amount.rb b/lib/plaid/models/payment_consent_max_payment_amount.rb index 5806d1bd8..c0fd00e2c 100644 --- a/lib/plaid/models/payment_consent_max_payment_amount.rb +++ b/lib/plaid/models/payment_consent_max_payment_amount.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -21,6 +21,28 @@ class PaymentConsentMaxPaymentAmount # The amount of the payment. Must contain at most two digits of precision e.g. `1.23`. Minimum accepted value is `1`. attr_accessor :value + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/payment_consent_periodic_alignment.rb b/lib/plaid/models/payment_consent_periodic_alignment.rb index 4310ec1ea..c0adbba0a 100644 --- a/lib/plaid/models/payment_consent_periodic_alignment.rb +++ b/lib/plaid/models/payment_consent_periodic_alignment.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_consent_periodic_amount.rb b/lib/plaid/models/payment_consent_periodic_amount.rb index 7806ccc09..d3f004196 100644 --- a/lib/plaid/models/payment_consent_periodic_amount.rb +++ b/lib/plaid/models/payment_consent_periodic_amount.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -22,6 +22,28 @@ class PaymentConsentPeriodicAmount attr_accessor :alignment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/payment_consent_periodic_amount_amount.rb b/lib/plaid/models/payment_consent_periodic_amount_amount.rb index 8427ca1c6..2fe791273 100644 --- a/lib/plaid/models/payment_consent_periodic_amount_amount.rb +++ b/lib/plaid/models/payment_consent_periodic_amount_amount.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -21,6 +21,28 @@ class PaymentConsentPeriodicAmountAmount # The amount of the payment. Must contain at most two digits of precision e.g. `1.23`. Minimum accepted value is `1`. attr_accessor :value + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/payment_consent_periodic_interval.rb b/lib/plaid/models/payment_consent_periodic_interval.rb index b007e951c..209431c17 100644 --- a/lib/plaid/models/payment_consent_periodic_interval.rb +++ b/lib/plaid/models/payment_consent_periodic_interval.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_consent_valid_date_time.rb b/lib/plaid/models/payment_consent_valid_date_time.rb index b60763d4b..737790a57 100644 --- a/lib/plaid/models/payment_consent_valid_date_time.rb +++ b/lib/plaid/models/payment_consent_valid_date_time.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_initiation_address.rb b/lib/plaid/models/payment_initiation_address.rb index eca82d78d..12e3a432d 100644 --- a/lib/plaid/models/payment_initiation_address.rb +++ b/lib/plaid/models/payment_initiation_address.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_initiation_consent.rb b/lib/plaid/models/payment_initiation_consent.rb index f49b0c43f..71687d499 100644 --- a/lib/plaid/models/payment_initiation_consent.rb +++ b/lib/plaid/models/payment_initiation_consent.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -35,6 +35,28 @@ class PaymentInitiationConsent # An array of payment consent scopes. attr_accessor :scopes + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/payment_initiation_consent_constraints.rb b/lib/plaid/models/payment_initiation_consent_constraints.rb index 8a7460b71..c72e29e33 100644 --- a/lib/plaid/models/payment_initiation_consent_constraints.rb +++ b/lib/plaid/models/payment_initiation_consent_constraints.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_initiation_consent_create_request.rb b/lib/plaid/models/payment_initiation_consent_create_request.rb index c3ec8ab36..7d057f4e0 100644 --- a/lib/plaid/models/payment_initiation_consent_create_request.rb +++ b/lib/plaid/models/payment_initiation_consent_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_initiation_consent_create_response.rb b/lib/plaid/models/payment_initiation_consent_create_response.rb index 5b5da0f5b..798ec491d 100644 --- a/lib/plaid/models/payment_initiation_consent_create_response.rb +++ b/lib/plaid/models/payment_initiation_consent_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -24,6 +24,28 @@ class PaymentInitiationConsentCreateResponse # A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive. attr_accessor :request_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/payment_initiation_consent_get_request.rb b/lib/plaid/models/payment_initiation_consent_get_request.rb index b97ab8aea..74d5d3411 100644 --- a/lib/plaid/models/payment_initiation_consent_get_request.rb +++ b/lib/plaid/models/payment_initiation_consent_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_initiation_consent_get_response.rb b/lib/plaid/models/payment_initiation_consent_get_response.rb index eccc722b5..08213b05a 100644 --- a/lib/plaid/models/payment_initiation_consent_get_response.rb +++ b/lib/plaid/models/payment_initiation_consent_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -38,6 +38,28 @@ class PaymentInitiationConsentGetResponse # A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive. attr_accessor :request_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/payment_initiation_consent_payment_execute_request.rb b/lib/plaid/models/payment_initiation_consent_payment_execute_request.rb index 5ac29733a..d6506863f 100644 --- a/lib/plaid/models/payment_initiation_consent_payment_execute_request.rb +++ b/lib/plaid/models/payment_initiation_consent_payment_execute_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_initiation_consent_payment_execute_response.rb b/lib/plaid/models/payment_initiation_consent_payment_execute_response.rb index 2c1bc1612..64f5a335c 100644 --- a/lib/plaid/models/payment_initiation_consent_payment_execute_response.rb +++ b/lib/plaid/models/payment_initiation_consent_payment_execute_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -24,6 +24,28 @@ class PaymentInitiationConsentPaymentExecuteResponse # A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive. attr_accessor :request_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/payment_initiation_consent_revoke_request.rb b/lib/plaid/models/payment_initiation_consent_revoke_request.rb index fa123cfb2..b4909b284 100644 --- a/lib/plaid/models/payment_initiation_consent_revoke_request.rb +++ b/lib/plaid/models/payment_initiation_consent_revoke_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_initiation_consent_revoke_response.rb b/lib/plaid/models/payment_initiation_consent_revoke_response.rb index d66ab826a..ae6a77e1b 100644 --- a/lib/plaid/models/payment_initiation_consent_revoke_response.rb +++ b/lib/plaid/models/payment_initiation_consent_revoke_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_initiation_consent_scope.rb b/lib/plaid/models/payment_initiation_consent_scope.rb index c2890c5e1..574ae3b78 100644 --- a/lib/plaid/models/payment_initiation_consent_scope.rb +++ b/lib/plaid/models/payment_initiation_consent_scope.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_initiation_consent_status.rb b/lib/plaid/models/payment_initiation_consent_status.rb index d6aff4f90..c632ce9d1 100644 --- a/lib/plaid/models/payment_initiation_consent_status.rb +++ b/lib/plaid/models/payment_initiation_consent_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_initiation_metadata.rb b/lib/plaid/models/payment_initiation_metadata.rb index 26c4673d2..3fcc22539 100644 --- a/lib/plaid/models/payment_initiation_metadata.rb +++ b/lib/plaid/models/payment_initiation_metadata.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_initiation_optional_restriction_bacs.rb b/lib/plaid/models/payment_initiation_optional_restriction_bacs.rb index b3f84976e..5d01c08cb 100644 --- a/lib/plaid/models/payment_initiation_optional_restriction_bacs.rb +++ b/lib/plaid/models/payment_initiation_optional_restriction_bacs.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_initiation_payment.rb b/lib/plaid/models/payment_initiation_payment.rb index a341a002d..fca2510f2 100644 --- a/lib/plaid/models/payment_initiation_payment.rb +++ b/lib/plaid/models/payment_initiation_payment.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -62,6 +62,28 @@ class PaymentInitiationPayment # The transaction ID that this payment is associated with, if any. This is present only when a payment was initiated using virtual accounts. attr_accessor :transaction_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/payment_initiation_payment_create_request.rb b/lib/plaid/models/payment_initiation_payment_create_request.rb index bb957451b..29d4e4d35 100644 --- a/lib/plaid/models/payment_initiation_payment_create_request.rb +++ b/lib/plaid/models/payment_initiation_payment_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_initiation_payment_create_response.rb b/lib/plaid/models/payment_initiation_payment_create_response.rb index c33a8e738..b5f9fe36d 100644 --- a/lib/plaid/models/payment_initiation_payment_create_response.rb +++ b/lib/plaid/models/payment_initiation_payment_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -24,6 +24,28 @@ class PaymentInitiationPaymentCreateResponse # A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive. attr_accessor :request_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/payment_initiation_payment_create_status.rb b/lib/plaid/models/payment_initiation_payment_create_status.rb index 0a00f3346..031fd7d7d 100644 --- a/lib/plaid/models/payment_initiation_payment_create_status.rb +++ b/lib/plaid/models/payment_initiation_payment_create_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_initiation_payment_get_request.rb b/lib/plaid/models/payment_initiation_payment_get_request.rb index 1daeeea73..298528c4b 100644 --- a/lib/plaid/models/payment_initiation_payment_get_request.rb +++ b/lib/plaid/models/payment_initiation_payment_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_initiation_payment_get_response.rb b/lib/plaid/models/payment_initiation_payment_get_response.rb index e8bf3faf6..677154063 100644 --- a/lib/plaid/models/payment_initiation_payment_get_response.rb +++ b/lib/plaid/models/payment_initiation_payment_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -65,6 +65,28 @@ class PaymentInitiationPaymentGetResponse # A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive. attr_accessor :request_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/payment_initiation_payment_list_request.rb b/lib/plaid/models/payment_initiation_payment_list_request.rb index d1c07380d..b04b5c0b7 100644 --- a/lib/plaid/models/payment_initiation_payment_list_request.rb +++ b/lib/plaid/models/payment_initiation_payment_list_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_initiation_payment_list_response.rb b/lib/plaid/models/payment_initiation_payment_list_response.rb index e5343b9b5..9c3ed2f8f 100644 --- a/lib/plaid/models/payment_initiation_payment_list_response.rb +++ b/lib/plaid/models/payment_initiation_payment_list_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_initiation_payment_reverse_request.rb b/lib/plaid/models/payment_initiation_payment_reverse_request.rb index a34d5731f..0ce7c5815 100644 --- a/lib/plaid/models/payment_initiation_payment_reverse_request.rb +++ b/lib/plaid/models/payment_initiation_payment_reverse_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_initiation_payment_reverse_response.rb b/lib/plaid/models/payment_initiation_payment_reverse_response.rb index db60ae879..ad78a2687 100644 --- a/lib/plaid/models/payment_initiation_payment_reverse_response.rb +++ b/lib/plaid/models/payment_initiation_payment_reverse_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -24,6 +24,28 @@ class PaymentInitiationPaymentReverseResponse # A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive. attr_accessor :request_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/payment_initiation_payment_status.rb b/lib/plaid/models/payment_initiation_payment_status.rb index a3c8d5c2d..2dcfc120a 100644 --- a/lib/plaid/models/payment_initiation_payment_status.rb +++ b/lib/plaid/models/payment_initiation_payment_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_initiation_payment_token_create_request.rb b/lib/plaid/models/payment_initiation_payment_token_create_request.rb index 4502000d1..48e0e8669 100644 --- a/lib/plaid/models/payment_initiation_payment_token_create_request.rb +++ b/lib/plaid/models/payment_initiation_payment_token_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_initiation_payment_token_create_response.rb b/lib/plaid/models/payment_initiation_payment_token_create_response.rb index 1316a40c7..c22655167 100644 --- a/lib/plaid/models/payment_initiation_payment_token_create_response.rb +++ b/lib/plaid/models/payment_initiation_payment_token_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_initiation_recipient.rb b/lib/plaid/models/payment_initiation_recipient.rb index 2b88feabb..3d9f1962a 100644 --- a/lib/plaid/models/payment_initiation_recipient.rb +++ b/lib/plaid/models/payment_initiation_recipient.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_initiation_recipient_create_request.rb b/lib/plaid/models/payment_initiation_recipient_create_request.rb index b9255d52a..894744e91 100644 --- a/lib/plaid/models/payment_initiation_recipient_create_request.rb +++ b/lib/plaid/models/payment_initiation_recipient_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_initiation_recipient_create_response.rb b/lib/plaid/models/payment_initiation_recipient_create_response.rb index 25f9aec8e..4dc5d80fd 100644 --- a/lib/plaid/models/payment_initiation_recipient_create_response.rb +++ b/lib/plaid/models/payment_initiation_recipient_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_initiation_recipient_get_request.rb b/lib/plaid/models/payment_initiation_recipient_get_request.rb index c20d0aaa1..3b6ab8030 100644 --- a/lib/plaid/models/payment_initiation_recipient_get_request.rb +++ b/lib/plaid/models/payment_initiation_recipient_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_initiation_recipient_get_response.rb b/lib/plaid/models/payment_initiation_recipient_get_response.rb index 76d6c6668..99e990a77 100644 --- a/lib/plaid/models/payment_initiation_recipient_get_response.rb +++ b/lib/plaid/models/payment_initiation_recipient_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_initiation_recipient_get_response_all_of.rb b/lib/plaid/models/payment_initiation_recipient_get_response_all_of.rb index 9603ccf17..3dd0fe617 100644 --- a/lib/plaid/models/payment_initiation_recipient_get_response_all_of.rb +++ b/lib/plaid/models/payment_initiation_recipient_get_response_all_of.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_initiation_recipient_list_request.rb b/lib/plaid/models/payment_initiation_recipient_list_request.rb index 532642b98..cf6082539 100644 --- a/lib/plaid/models/payment_initiation_recipient_list_request.rb +++ b/lib/plaid/models/payment_initiation_recipient_list_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_initiation_recipient_list_response.rb b/lib/plaid/models/payment_initiation_recipient_list_response.rb index fad4b4cd1..533ad46c4 100644 --- a/lib/plaid/models/payment_initiation_recipient_list_response.rb +++ b/lib/plaid/models/payment_initiation_recipient_list_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_initiation_standing_order_metadata.rb b/lib/plaid/models/payment_initiation_standing_order_metadata.rb index a837af792..8e39da91b 100644 --- a/lib/plaid/models/payment_initiation_standing_order_metadata.rb +++ b/lib/plaid/models/payment_initiation_standing_order_metadata.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_meta.rb b/lib/plaid/models/payment_meta.rb index dba3c0195..df2e9db63 100644 --- a/lib/plaid/models/payment_meta.rb +++ b/lib/plaid/models/payment_meta.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_profile_create_request.rb b/lib/plaid/models/payment_profile_create_request.rb index 2706484ce..ec0c0f405 100644 --- a/lib/plaid/models/payment_profile_create_request.rb +++ b/lib/plaid/models/payment_profile_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_profile_create_response.rb b/lib/plaid/models/payment_profile_create_response.rb index 2ab538bbe..d17fc81da 100644 --- a/lib/plaid/models/payment_profile_create_response.rb +++ b/lib/plaid/models/payment_profile_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_profile_get_request.rb b/lib/plaid/models/payment_profile_get_request.rb index 1a5c5b7c3..97a0ff3fc 100644 --- a/lib/plaid/models/payment_profile_get_request.rb +++ b/lib/plaid/models/payment_profile_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_profile_get_response.rb b/lib/plaid/models/payment_profile_get_response.rb index 1e71e0732..cebe1657f 100644 --- a/lib/plaid/models/payment_profile_get_response.rb +++ b/lib/plaid/models/payment_profile_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -30,6 +30,28 @@ class PaymentProfileGetResponse # A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive. attr_accessor :request_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/payment_profile_remove_request.rb b/lib/plaid/models/payment_profile_remove_request.rb index 231047544..b0f8fae66 100644 --- a/lib/plaid/models/payment_profile_remove_request.rb +++ b/lib/plaid/models/payment_profile_remove_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_profile_remove_response.rb b/lib/plaid/models/payment_profile_remove_response.rb index 99dd03b7b..74830a37b 100644 --- a/lib/plaid/models/payment_profile_remove_response.rb +++ b/lib/plaid/models/payment_profile_remove_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_profile_status.rb b/lib/plaid/models/payment_profile_status.rb index c86431890..cc5dfcce8 100644 --- a/lib/plaid/models/payment_profile_status.rb +++ b/lib/plaid/models/payment_profile_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_schedule_interval.rb b/lib/plaid/models/payment_schedule_interval.rb index 0a5555af5..972bda2d6 100644 --- a/lib/plaid/models/payment_schedule_interval.rb +++ b/lib/plaid/models/payment_schedule_interval.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_scheme.rb b/lib/plaid/models/payment_scheme.rb index 77f85f766..78e54f48a 100644 --- a/lib/plaid/models/payment_scheme.rb +++ b/lib/plaid/models/payment_scheme.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payment_status_update_webhook.rb b/lib/plaid/models/payment_status_update_webhook.rb index 247fbef2b..d4076bf6a 100644 --- a/lib/plaid/models/payment_status_update_webhook.rb +++ b/lib/plaid/models/payment_status_update_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -51,6 +51,28 @@ class PaymentStatusUpdateWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/payroll_income_account_data.rb b/lib/plaid/models/payroll_income_account_data.rb index 1d42b053f..8666a20c9 100644 --- a/lib/plaid/models/payroll_income_account_data.rb +++ b/lib/plaid/models/payroll_income_account_data.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payroll_income_object.rb b/lib/plaid/models/payroll_income_object.rb index 3d449968f..9a3cb9283 100644 --- a/lib/plaid/models/payroll_income_object.rb +++ b/lib/plaid/models/payroll_income_object.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payroll_income_rate_of_pay.rb b/lib/plaid/models/payroll_income_rate_of_pay.rb index a43668303..660fdac3e 100644 --- a/lib/plaid/models/payroll_income_rate_of_pay.rb +++ b/lib/plaid/models/payroll_income_rate_of_pay.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payroll_item.rb b/lib/plaid/models/payroll_item.rb index a6ca7fc44..23fd43d77 100644 --- a/lib/plaid/models/payroll_item.rb +++ b/lib/plaid/models/payroll_item.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payroll_item_status.rb b/lib/plaid/models/payroll_item_status.rb index fba13ecff..22a3c000a 100644 --- a/lib/plaid/models/payroll_item_status.rb +++ b/lib/plaid/models/payroll_item_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/payroll_risk_signals_item.rb b/lib/plaid/models/payroll_risk_signals_item.rb index 21656ab15..706e12460 100644 --- a/lib/plaid/models/payroll_risk_signals_item.rb +++ b/lib/plaid/models/payroll_risk_signals_item.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/paystub.rb b/lib/plaid/models/paystub.rb index f481d7153..d71c86e85 100644 --- a/lib/plaid/models/paystub.rb +++ b/lib/plaid/models/paystub.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/paystub_address.rb b/lib/plaid/models/paystub_address.rb index 824aef01d..7efca7c88 100644 --- a/lib/plaid/models/paystub_address.rb +++ b/lib/plaid/models/paystub_address.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/paystub_deduction.rb b/lib/plaid/models/paystub_deduction.rb index 4325621af..23feeaab7 100644 --- a/lib/plaid/models/paystub_deduction.rb +++ b/lib/plaid/models/paystub_deduction.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/paystub_details.rb b/lib/plaid/models/paystub_details.rb index 498fb9f99..049ad18e2 100644 --- a/lib/plaid/models/paystub_details.rb +++ b/lib/plaid/models/paystub_details.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -30,6 +30,28 @@ class PaystubDetails attr_accessor :pay_frequency + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/paystub_employer.rb b/lib/plaid/models/paystub_employer.rb index 9406caec4..2709ab035 100644 --- a/lib/plaid/models/paystub_employer.rb +++ b/lib/plaid/models/paystub_employer.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/paystub_override.rb b/lib/plaid/models/paystub_override.rb index 6f0696f21..f1ee61c97 100644 --- a/lib/plaid/models/paystub_override.rb +++ b/lib/plaid/models/paystub_override.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/paystub_override_employee.rb b/lib/plaid/models/paystub_override_employee.rb index 9b8454932..f103b8cc8 100644 --- a/lib/plaid/models/paystub_override_employee.rb +++ b/lib/plaid/models/paystub_override_employee.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/paystub_override_employee_address.rb b/lib/plaid/models/paystub_override_employee_address.rb index 6abe526f6..d42ca68d5 100644 --- a/lib/plaid/models/paystub_override_employee_address.rb +++ b/lib/plaid/models/paystub_override_employee_address.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/paystub_override_employer.rb b/lib/plaid/models/paystub_override_employer.rb index 443ea291d..eddc40706 100644 --- a/lib/plaid/models/paystub_override_employer.rb +++ b/lib/plaid/models/paystub_override_employer.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/paystub_pay_frequency.rb b/lib/plaid/models/paystub_pay_frequency.rb index 9108463df..efdeeffec 100644 --- a/lib/plaid/models/paystub_pay_frequency.rb +++ b/lib/plaid/models/paystub_pay_frequency.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/paystub_ytd_details.rb b/lib/plaid/models/paystub_ytd_details.rb index b8be91257..a30aa01ed 100644 --- a/lib/plaid/models/paystub_ytd_details.rb +++ b/lib/plaid/models/paystub_ytd_details.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/pending_expiration_webhook.rb b/lib/plaid/models/pending_expiration_webhook.rb index a66734af3..6edf84065 100644 --- a/lib/plaid/models/pending_expiration_webhook.rb +++ b/lib/plaid/models/pending_expiration_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -30,6 +30,28 @@ class PendingExpirationWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/personal_finance_category.rb b/lib/plaid/models/personal_finance_category.rb index da749e2bf..007a4b425 100644 --- a/lib/plaid/models/personal_finance_category.rb +++ b/lib/plaid/models/personal_finance_category.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/phone_number.rb b/lib/plaid/models/phone_number.rb index 13a588664..dd8eca1ca 100644 --- a/lib/plaid/models/phone_number.rb +++ b/lib/plaid/models/phone_number.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/phone_number_match_score.rb b/lib/plaid/models/phone_number_match_score.rb index 3001cecfd..015b92266 100644 --- a/lib/plaid/models/phone_number_match_score.rb +++ b/lib/plaid/models/phone_number_match_score.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/phone_type.rb b/lib/plaid/models/phone_type.rb index 56137eeb3..57a799302 100644 --- a/lib/plaid/models/phone_type.rb +++ b/lib/plaid/models/phone_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/physical_document_category.rb b/lib/plaid/models/physical_document_category.rb index bdb2b8304..7095e2f35 100644 --- a/lib/plaid/models/physical_document_category.rb +++ b/lib/plaid/models/physical_document_category.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/physical_document_extracted_data.rb b/lib/plaid/models/physical_document_extracted_data.rb index 0b4e9df16..578619f17 100644 --- a/lib/plaid/models/physical_document_extracted_data.rb +++ b/lib/plaid/models/physical_document_extracted_data.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -35,6 +35,28 @@ class PhysicalDocumentExtractedData attr_accessor :address + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/physical_document_extracted_data_analysis.rb b/lib/plaid/models/physical_document_extracted_data_analysis.rb index 2aa3d6473..642a209f7 100644 --- a/lib/plaid/models/physical_document_extracted_data_analysis.rb +++ b/lib/plaid/models/physical_document_extracted_data_analysis.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -24,6 +24,28 @@ class PhysicalDocumentExtractedDataAnalysis attr_accessor :issuing_country + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/physical_document_images.rb b/lib/plaid/models/physical_document_images.rb index df0d6b604..ff8c3c6f0 100644 --- a/lib/plaid/models/physical_document_images.rb +++ b/lib/plaid/models/physical_document_images.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/plaid_error.rb b/lib/plaid/models/plaid_error.rb index 4036b72ed..77a380d10 100644 --- a/lib/plaid/models/plaid_error.rb +++ b/lib/plaid/models/plaid_error.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -42,6 +42,28 @@ class PlaidError # Suggested steps for resolving the error attr_accessor :suggested_action + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/plaid_error_type.rb b/lib/plaid/models/plaid_error_type.rb index 7053da799..3ca9529d1 100644 --- a/lib/plaid/models/plaid_error_type.rb +++ b/lib/plaid/models/plaid_error_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/platform_ids.rb b/lib/plaid/models/platform_ids.rb index 96268dbfc..18569234c 100644 --- a/lib/plaid/models/platform_ids.rb +++ b/lib/plaid/models/platform_ids.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/po_box_status.rb b/lib/plaid/models/po_box_status.rb index edab4d83d..9f277d2d1 100644 --- a/lib/plaid/models/po_box_status.rb +++ b/lib/plaid/models/po_box_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_account_get_request.rb b/lib/plaid/models/processor_account_get_request.rb index 05a71f2d6..bfd58f160 100644 --- a/lib/plaid/models/processor_account_get_request.rb +++ b/lib/plaid/models/processor_account_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_account_get_response.rb b/lib/plaid/models/processor_account_get_response.rb index 4724603c3..39054e383 100644 --- a/lib/plaid/models/processor_account_get_response.rb +++ b/lib/plaid/models/processor_account_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_apex_processor_token_create_request.rb b/lib/plaid/models/processor_apex_processor_token_create_request.rb index 00e9beaf1..13bbc776c 100644 --- a/lib/plaid/models/processor_apex_processor_token_create_request.rb +++ b/lib/plaid/models/processor_apex_processor_token_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_auth_get_request.rb b/lib/plaid/models/processor_auth_get_request.rb index 293620090..3dc70c358 100644 --- a/lib/plaid/models/processor_auth_get_request.rb +++ b/lib/plaid/models/processor_auth_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_auth_get_response.rb b/lib/plaid/models/processor_auth_get_response.rb index 57407ea37..c3e58b38f 100644 --- a/lib/plaid/models/processor_auth_get_response.rb +++ b/lib/plaid/models/processor_auth_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_balance_get_request.rb b/lib/plaid/models/processor_balance_get_request.rb index 3013533d2..0a06c3afe 100644 --- a/lib/plaid/models/processor_balance_get_request.rb +++ b/lib/plaid/models/processor_balance_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_balance_get_request_options.rb b/lib/plaid/models/processor_balance_get_request_options.rb index f42a0dbd2..be5916a7a 100644 --- a/lib/plaid/models/processor_balance_get_request_options.rb +++ b/lib/plaid/models/processor_balance_get_request_options.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_balance_get_response.rb b/lib/plaid/models/processor_balance_get_response.rb index 45e887f62..3118d08b6 100644 --- a/lib/plaid/models/processor_balance_get_response.rb +++ b/lib/plaid/models/processor_balance_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_bank_transfer_create_request.rb b/lib/plaid/models/processor_bank_transfer_create_request.rb index b04440e1f..10fb22753 100644 --- a/lib/plaid/models/processor_bank_transfer_create_request.rb +++ b/lib/plaid/models/processor_bank_transfer_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -54,6 +54,28 @@ class ProcessorBankTransferCreateRequest # Plaid’s unique identifier for the origination account for this transfer. If you have more than one origination account, this value must be specified. attr_accessor :origination_account_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/processor_bank_transfer_create_response.rb b/lib/plaid/models/processor_bank_transfer_create_response.rb index 177f4de8a..ebb780474 100644 --- a/lib/plaid/models/processor_bank_transfer_create_response.rb +++ b/lib/plaid/models/processor_bank_transfer_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_default_update_webhook.rb b/lib/plaid/models/processor_default_update_webhook.rb index ec35067f6..46d65bfb3 100644 --- a/lib/plaid/models/processor_default_update_webhook.rb +++ b/lib/plaid/models/processor_default_update_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -32,6 +32,28 @@ class ProcessorDefaultUpdateWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/processor_historical_update_webhook.rb b/lib/plaid/models/processor_historical_update_webhook.rb index f62a47e6b..dc98d69f6 100644 --- a/lib/plaid/models/processor_historical_update_webhook.rb +++ b/lib/plaid/models/processor_historical_update_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -32,6 +32,28 @@ class ProcessorHistoricalUpdateWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/processor_identity_get_request.rb b/lib/plaid/models/processor_identity_get_request.rb index 0fd8b97d8..8207c4c71 100644 --- a/lib/plaid/models/processor_identity_get_request.rb +++ b/lib/plaid/models/processor_identity_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_identity_get_response.rb b/lib/plaid/models/processor_identity_get_response.rb index e04b164e4..b47337d8e 100644 --- a/lib/plaid/models/processor_identity_get_response.rb +++ b/lib/plaid/models/processor_identity_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_identity_match_request.rb b/lib/plaid/models/processor_identity_match_request.rb index 6839b8f37..63bfd00ae 100644 --- a/lib/plaid/models/processor_identity_match_request.rb +++ b/lib/plaid/models/processor_identity_match_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_identity_match_response.rb b/lib/plaid/models/processor_identity_match_response.rb index 7037340c9..ab9cb5ac9 100644 --- a/lib/plaid/models/processor_identity_match_response.rb +++ b/lib/plaid/models/processor_identity_match_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_initial_update_webhook.rb b/lib/plaid/models/processor_initial_update_webhook.rb index de3741434..c53586ffc 100644 --- a/lib/plaid/models/processor_initial_update_webhook.rb +++ b/lib/plaid/models/processor_initial_update_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -33,6 +33,28 @@ class ProcessorInitialUpdateWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/processor_number.rb b/lib/plaid/models/processor_number.rb index 9e1737081..d9c86d6f4 100644 --- a/lib/plaid/models/processor_number.rb +++ b/lib/plaid/models/processor_number.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_recurring_transactions_update_webhook.rb b/lib/plaid/models/processor_recurring_transactions_update_webhook.rb index ceffb831d..ca715592a 100644 --- a/lib/plaid/models/processor_recurring_transactions_update_webhook.rb +++ b/lib/plaid/models/processor_recurring_transactions_update_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -27,6 +27,28 @@ class ProcessorRecurringTransactionsUpdateWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/processor_signal_decision_report_request.rb b/lib/plaid/models/processor_signal_decision_report_request.rb index 3c5599c45..adf8c551d 100644 --- a/lib/plaid/models/processor_signal_decision_report_request.rb +++ b/lib/plaid/models/processor_signal_decision_report_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -41,6 +41,28 @@ class ProcessorSignalDecisionReportRequest # The amount (in USD) made available to your customers instantly following the debit transaction. It could be a partial amount of the requested transaction (example: 102.05). attr_accessor :amount_instantly_available + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/processor_signal_decision_report_response.rb b/lib/plaid/models/processor_signal_decision_report_response.rb index c3fc7760d..1ea5440a5 100644 --- a/lib/plaid/models/processor_signal_decision_report_response.rb +++ b/lib/plaid/models/processor_signal_decision_report_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_signal_evaluate_request.rb b/lib/plaid/models/processor_signal_evaluate_request.rb index 085efe3e9..e49b57abb 100644 --- a/lib/plaid/models/processor_signal_evaluate_request.rb +++ b/lib/plaid/models/processor_signal_evaluate_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_signal_evaluate_response.rb b/lib/plaid/models/processor_signal_evaluate_response.rb index cc056f31b..5992cc97d 100644 --- a/lib/plaid/models/processor_signal_evaluate_response.rb +++ b/lib/plaid/models/processor_signal_evaluate_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_signal_prepare_request.rb b/lib/plaid/models/processor_signal_prepare_request.rb index e43dbac3d..bd7b4a201 100644 --- a/lib/plaid/models/processor_signal_prepare_request.rb +++ b/lib/plaid/models/processor_signal_prepare_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_signal_prepare_response.rb b/lib/plaid/models/processor_signal_prepare_response.rb index d60e585c3..2340cc76d 100644 --- a/lib/plaid/models/processor_signal_prepare_response.rb +++ b/lib/plaid/models/processor_signal_prepare_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_signal_return_report_request.rb b/lib/plaid/models/processor_signal_return_report_request.rb index 1163dc7ef..cc8e614cd 100644 --- a/lib/plaid/models/processor_signal_return_report_request.rb +++ b/lib/plaid/models/processor_signal_return_report_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_signal_return_report_response.rb b/lib/plaid/models/processor_signal_return_report_response.rb index d5d60e0ca..ac767eed4 100644 --- a/lib/plaid/models/processor_signal_return_report_response.rb +++ b/lib/plaid/models/processor_signal_return_report_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_stripe_bank_account_token_create_request.rb b/lib/plaid/models/processor_stripe_bank_account_token_create_request.rb index e2d5bcb77..c07fbbe0b 100644 --- a/lib/plaid/models/processor_stripe_bank_account_token_create_request.rb +++ b/lib/plaid/models/processor_stripe_bank_account_token_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_stripe_bank_account_token_create_response.rb b/lib/plaid/models/processor_stripe_bank_account_token_create_response.rb index 3ad826189..1aee173b2 100644 --- a/lib/plaid/models/processor_stripe_bank_account_token_create_response.rb +++ b/lib/plaid/models/processor_stripe_bank_account_token_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_sync_updates_available_webhook.rb b/lib/plaid/models/processor_sync_updates_available_webhook.rb index c1d7d2d5e..f9f8d7682 100644 --- a/lib/plaid/models/processor_sync_updates_available_webhook.rb +++ b/lib/plaid/models/processor_sync_updates_available_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -33,6 +33,28 @@ class ProcessorSyncUpdatesAvailableWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/processor_token_create_request.rb b/lib/plaid/models/processor_token_create_request.rb index ba3d9a17a..7e44f975d 100644 --- a/lib/plaid/models/processor_token_create_request.rb +++ b/lib/plaid/models/processor_token_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -147,7 +147,7 @@ def valid? return false if @access_token.nil? return false if @account_id.nil? return false if @processor.nil? - processor_validator = EnumAttributeValidator.new('String', ["dwolla", "galileo", "modern_treasury", "ocrolus", "prime_trust", "vesta", "drivewealth", "vopay", "achq", "check", "checkbook", "circle", "sila_money", "rize", "svb_api", "unit", "wyre", "lithic", "alpaca", "astra", "moov", "treasury_prime", "marqeta", "checkout", "solid", "highnote", "gemini", "apex_clearing", "gusto", "adyen", "atomic", "i2c", "wepay", "riskified", "utb", "adp_roll", "fortress_trust", "bond", "bakkt", "teal", "zero_hash", "taba_pay"]) + processor_validator = EnumAttributeValidator.new('String', ["dwolla", "galileo", "modern_treasury", "ocrolus", "prime_trust", "vesta", "drivewealth", "vopay", "achq", "check", "checkbook", "circle", "sila_money", "rize", "svb_api", "unit", "wyre", "lithic", "alpaca", "astra", "moov", "treasury_prime", "marqeta", "checkout", "solid", "highnote", "gemini", "apex_clearing", "gusto", "adyen", "atomic", "i2c", "wepay", "riskified", "utb", "adp_roll", "fortress_trust", "bond", "bakkt", "teal", "zero_hash", "taba_pay", "knot"]) return false unless processor_validator.valid?(@processor) true end @@ -155,7 +155,7 @@ def valid? # Custom attribute writer method checking allowed values (enum). # @param [Object] processor Object to be assigned def processor=(processor) - validator = EnumAttributeValidator.new('String', ["dwolla", "galileo", "modern_treasury", "ocrolus", "prime_trust", "vesta", "drivewealth", "vopay", "achq", "check", "checkbook", "circle", "sila_money", "rize", "svb_api", "unit", "wyre", "lithic", "alpaca", "astra", "moov", "treasury_prime", "marqeta", "checkout", "solid", "highnote", "gemini", "apex_clearing", "gusto", "adyen", "atomic", "i2c", "wepay", "riskified", "utb", "adp_roll", "fortress_trust", "bond", "bakkt", "teal", "zero_hash", "taba_pay"]) + validator = EnumAttributeValidator.new('String', ["dwolla", "galileo", "modern_treasury", "ocrolus", "prime_trust", "vesta", "drivewealth", "vopay", "achq", "check", "checkbook", "circle", "sila_money", "rize", "svb_api", "unit", "wyre", "lithic", "alpaca", "astra", "moov", "treasury_prime", "marqeta", "checkout", "solid", "highnote", "gemini", "apex_clearing", "gusto", "adyen", "atomic", "i2c", "wepay", "riskified", "utb", "adp_roll", "fortress_trust", "bond", "bakkt", "teal", "zero_hash", "taba_pay", "knot"]) unless validator.valid?(processor) fail ArgumentError, "invalid value for \"processor\", must be one of #{validator.allowable_values}." end diff --git a/lib/plaid/models/processor_token_create_response.rb b/lib/plaid/models/processor_token_create_response.rb index c74e7d05d..7ac72dfc9 100644 --- a/lib/plaid/models/processor_token_create_response.rb +++ b/lib/plaid/models/processor_token_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_token_permissions_get_request.rb b/lib/plaid/models/processor_token_permissions_get_request.rb index 90efdc7d3..973e4069a 100644 --- a/lib/plaid/models/processor_token_permissions_get_request.rb +++ b/lib/plaid/models/processor_token_permissions_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_token_permissions_get_response.rb b/lib/plaid/models/processor_token_permissions_get_response.rb index 4a3fa5606..e7e47c666 100644 --- a/lib/plaid/models/processor_token_permissions_get_response.rb +++ b/lib/plaid/models/processor_token_permissions_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_token_permissions_set_request.rb b/lib/plaid/models/processor_token_permissions_set_request.rb index b46149a0c..37d6524bf 100644 --- a/lib/plaid/models/processor_token_permissions_set_request.rb +++ b/lib/plaid/models/processor_token_permissions_set_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_token_permissions_set_response.rb b/lib/plaid/models/processor_token_permissions_set_response.rb index d98a9d330..2bb95c019 100644 --- a/lib/plaid/models/processor_token_permissions_set_response.rb +++ b/lib/plaid/models/processor_token_permissions_set_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_token_webhook_update.rb b/lib/plaid/models/processor_token_webhook_update.rb index 29ceb907b..871774035 100644 --- a/lib/plaid/models/processor_token_webhook_update.rb +++ b/lib/plaid/models/processor_token_webhook_update.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -32,6 +32,28 @@ class ProcessorTokenWebhookUpdate attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/processor_token_webhook_update_request.rb b/lib/plaid/models/processor_token_webhook_update_request.rb index bb328d756..4529337cb 100644 --- a/lib/plaid/models/processor_token_webhook_update_request.rb +++ b/lib/plaid/models/processor_token_webhook_update_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_token_webhook_update_response.rb b/lib/plaid/models/processor_token_webhook_update_response.rb index 94659cb5c..882985dcc 100644 --- a/lib/plaid/models/processor_token_webhook_update_response.rb +++ b/lib/plaid/models/processor_token_webhook_update_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_transactions_get_request.rb b/lib/plaid/models/processor_transactions_get_request.rb index 705beb0d1..2a713f847 100644 --- a/lib/plaid/models/processor_transactions_get_request.rb +++ b/lib/plaid/models/processor_transactions_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_transactions_get_request_options.rb b/lib/plaid/models/processor_transactions_get_request_options.rb index 24fe69f67..8734222ac 100644 --- a/lib/plaid/models/processor_transactions_get_request_options.rb +++ b/lib/plaid/models/processor_transactions_get_request_options.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_transactions_get_response.rb b/lib/plaid/models/processor_transactions_get_response.rb index 49ab23ad1..692345c21 100644 --- a/lib/plaid/models/processor_transactions_get_response.rb +++ b/lib/plaid/models/processor_transactions_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_transactions_recurring_get_request.rb b/lib/plaid/models/processor_transactions_recurring_get_request.rb index d5e5fafe9..7f5a10819 100644 --- a/lib/plaid/models/processor_transactions_recurring_get_request.rb +++ b/lib/plaid/models/processor_transactions_recurring_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_transactions_recurring_get_response.rb b/lib/plaid/models/processor_transactions_recurring_get_response.rb index 2b30365be..7df0b973c 100644 --- a/lib/plaid/models/processor_transactions_recurring_get_response.rb +++ b/lib/plaid/models/processor_transactions_recurring_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_transactions_refresh_request.rb b/lib/plaid/models/processor_transactions_refresh_request.rb index fdbb4631d..31d2ef606 100644 --- a/lib/plaid/models/processor_transactions_refresh_request.rb +++ b/lib/plaid/models/processor_transactions_refresh_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_transactions_refresh_response.rb b/lib/plaid/models/processor_transactions_refresh_response.rb index 10a4f4b2d..7cff171b4 100644 --- a/lib/plaid/models/processor_transactions_refresh_response.rb +++ b/lib/plaid/models/processor_transactions_refresh_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_transactions_removed_webhook.rb b/lib/plaid/models/processor_transactions_removed_webhook.rb index 4c3417c38..0d62e3e89 100644 --- a/lib/plaid/models/processor_transactions_removed_webhook.rb +++ b/lib/plaid/models/processor_transactions_removed_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -32,6 +32,28 @@ class ProcessorTransactionsRemovedWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/processor_transactions_sync_request.rb b/lib/plaid/models/processor_transactions_sync_request.rb index b9d39a563..29595ea98 100644 --- a/lib/plaid/models/processor_transactions_sync_request.rb +++ b/lib/plaid/models/processor_transactions_sync_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/processor_transactions_sync_response.rb b/lib/plaid/models/processor_transactions_sync_response.rb index d0cf6366a..0687f7436 100644 --- a/lib/plaid/models/processor_transactions_sync_response.rb +++ b/lib/plaid/models/processor_transactions_sync_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/product_access.rb b/lib/plaid/models/product_access.rb index 37ebea85b..9cf2fbb10 100644 --- a/lib/plaid/models/product_access.rb +++ b/lib/plaid/models/product_access.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/product_permissions_required_auth_webhook.rb b/lib/plaid/models/product_permissions_required_auth_webhook.rb index 83cfd2376..2e4db00f2 100644 --- a/lib/plaid/models/product_permissions_required_auth_webhook.rb +++ b/lib/plaid/models/product_permissions_required_auth_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -27,6 +27,28 @@ class ProductPermissionsRequiredAuthWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/product_permissions_required_identity_webhook.rb b/lib/plaid/models/product_permissions_required_identity_webhook.rb index af3fba8c1..92108829d 100644 --- a/lib/plaid/models/product_permissions_required_identity_webhook.rb +++ b/lib/plaid/models/product_permissions_required_identity_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -27,6 +27,28 @@ class ProductPermissionsRequiredIdentityWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/product_status.rb b/lib/plaid/models/product_status.rb index 6ae47b771..487119424 100644 --- a/lib/plaid/models/product_status.rb +++ b/lib/plaid/models/product_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/product_status_breakdown.rb b/lib/plaid/models/product_status_breakdown.rb index 278f0a5e7..5ad68c0f7 100644 --- a/lib/plaid/models/product_status_breakdown.rb +++ b/lib/plaid/models/product_status_breakdown.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/products.rb b/lib/plaid/models/products.rb index da2bbfb06..9fc3d615b 100644 --- a/lib/plaid/models/products.rb +++ b/lib/plaid/models/products.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/program_name_sensitivity.rb b/lib/plaid/models/program_name_sensitivity.rb index ee1e81ae5..228be7bba 100644 --- a/lib/plaid/models/program_name_sensitivity.rb +++ b/lib/plaid/models/program_name_sensitivity.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/projected_income_summary_field_number.rb b/lib/plaid/models/projected_income_summary_field_number.rb index 0bb037a83..eff59a4dd 100644 --- a/lib/plaid/models/projected_income_summary_field_number.rb +++ b/lib/plaid/models/projected_income_summary_field_number.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -21,6 +21,28 @@ class ProjectedIncomeSummaryFieldNumber attr_accessor :verification_status + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/proxy_type.rb b/lib/plaid/models/proxy_type.rb index 81d798611..a344eac3e 100644 --- a/lib/plaid/models/proxy_type.rb +++ b/lib/plaid/models/proxy_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/pslf_status.rb b/lib/plaid/models/pslf_status.rb index 8d116d34e..94bb5ce03 100644 --- a/lib/plaid/models/pslf_status.rb +++ b/lib/plaid/models/pslf_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/recaptcha_required_error.rb b/lib/plaid/models/recaptcha_required_error.rb index c1ddc760b..c39ff3c07 100644 --- a/lib/plaid/models/recaptcha_required_error.rb +++ b/lib/plaid/models/recaptcha_required_error.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/recipient_bacs.rb b/lib/plaid/models/recipient_bacs.rb index 242d635f2..936ee200b 100644 --- a/lib/plaid/models/recipient_bacs.rb +++ b/lib/plaid/models/recipient_bacs.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/recipient_bacs_nullable.rb b/lib/plaid/models/recipient_bacs_nullable.rb index b53391448..47ac96d39 100644 --- a/lib/plaid/models/recipient_bacs_nullable.rb +++ b/lib/plaid/models/recipient_bacs_nullable.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/recurrence.rb b/lib/plaid/models/recurrence.rb index ca0e7520f..3b45af8f7 100644 --- a/lib/plaid/models/recurrence.rb +++ b/lib/plaid/models/recurrence.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -21,6 +21,28 @@ class Recurrence attr_accessor :frequency + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/recurring_cancelled_webhook.rb b/lib/plaid/models/recurring_cancelled_webhook.rb index 98d10f02c..5b66f576e 100644 --- a/lib/plaid/models/recurring_cancelled_webhook.rb +++ b/lib/plaid/models/recurring_cancelled_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -27,6 +27,28 @@ class RecurringCancelledWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/recurring_frequency.rb b/lib/plaid/models/recurring_frequency.rb index 67d9637c0..6ab2dc52d 100644 --- a/lib/plaid/models/recurring_frequency.rb +++ b/lib/plaid/models/recurring_frequency.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/recurring_insights_stream.rb b/lib/plaid/models/recurring_insights_stream.rb index a20f2ac19..8b50e28fe 100644 --- a/lib/plaid/models/recurring_insights_stream.rb +++ b/lib/plaid/models/recurring_insights_stream.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -57,6 +57,28 @@ class RecurringInsightsStream # The detailed category associated with the transaction stream. attr_accessor :personal_finance_category_detailed + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/recurring_new_transfer_webhook.rb b/lib/plaid/models/recurring_new_transfer_webhook.rb index 8d7e58ca1..ef29ff470 100644 --- a/lib/plaid/models/recurring_new_transfer_webhook.rb +++ b/lib/plaid/models/recurring_new_transfer_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -30,6 +30,28 @@ class RecurringNewTransferWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/recurring_transaction_frequency.rb b/lib/plaid/models/recurring_transaction_frequency.rb index 33bf3b917..d0f67739b 100644 --- a/lib/plaid/models/recurring_transaction_frequency.rb +++ b/lib/plaid/models/recurring_transaction_frequency.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/recurring_transactions.rb b/lib/plaid/models/recurring_transactions.rb index 6725df7b3..1eee50595 100644 --- a/lib/plaid/models/recurring_transactions.rb +++ b/lib/plaid/models/recurring_transactions.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/recurring_transactions_update_webhook.rb b/lib/plaid/models/recurring_transactions_update_webhook.rb index f6f96031d..f0c912516 100644 --- a/lib/plaid/models/recurring_transactions_update_webhook.rb +++ b/lib/plaid/models/recurring_transactions_update_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -30,6 +30,28 @@ class RecurringTransactionsUpdateWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/recurring_transfer.rb b/lib/plaid/models/recurring_transfer.rb index 08b192d83..b0902cb31 100644 --- a/lib/plaid/models/recurring_transfer.rb +++ b/lib/plaid/models/recurring_transfer.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -60,6 +60,28 @@ class RecurringTransfer attr_accessor :schedule + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/recurring_transfer_nullable.rb b/lib/plaid/models/recurring_transfer_nullable.rb index 03d14eeec..e4aacce2b 100644 --- a/lib/plaid/models/recurring_transfer_nullable.rb +++ b/lib/plaid/models/recurring_transfer_nullable.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -60,6 +60,28 @@ class RecurringTransferNullable attr_accessor :schedule + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/recurring_transfer_skipped_webhook.rb b/lib/plaid/models/recurring_transfer_skipped_webhook.rb index c56abcdfa..d248423b8 100644 --- a/lib/plaid/models/recurring_transfer_skipped_webhook.rb +++ b/lib/plaid/models/recurring_transfer_skipped_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -34,6 +34,28 @@ class RecurringTransferSkippedWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/removed_transaction.rb b/lib/plaid/models/removed_transaction.rb index dacf57f58..78fdead05 100644 --- a/lib/plaid/models/removed_transaction.rb +++ b/lib/plaid/models/removed_transaction.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/report_type.rb b/lib/plaid/models/report_type.rb index 6a6ceed46..9b5c66fe6 100644 --- a/lib/plaid/models/report_type.rb +++ b/lib/plaid/models/report_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/reporting_information.rb b/lib/plaid/models/reporting_information.rb index fd387b62b..44a31ca8d 100644 --- a/lib/plaid/models/reporting_information.rb +++ b/lib/plaid/models/reporting_information.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/risk_check_behavior.rb b/lib/plaid/models/risk_check_behavior.rb index caf063c38..00f7e4b44 100644 --- a/lib/plaid/models/risk_check_behavior.rb +++ b/lib/plaid/models/risk_check_behavior.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -22,6 +22,28 @@ class RiskCheckBehavior attr_accessor :bot_detected + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/risk_check_behavior_bot_detected_label.rb b/lib/plaid/models/risk_check_behavior_bot_detected_label.rb index 0c3f33904..af17a1301 100644 --- a/lib/plaid/models/risk_check_behavior_bot_detected_label.rb +++ b/lib/plaid/models/risk_check_behavior_bot_detected_label.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/risk_check_behavior_fraud_ring_detected_label.rb b/lib/plaid/models/risk_check_behavior_fraud_ring_detected_label.rb index 2a5878194..b29f0ac9d 100644 --- a/lib/plaid/models/risk_check_behavior_fraud_ring_detected_label.rb +++ b/lib/plaid/models/risk_check_behavior_fraud_ring_detected_label.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/risk_check_behavior_user_interactions_label.rb b/lib/plaid/models/risk_check_behavior_user_interactions_label.rb index 937c1bdff..d9e2fa6cc 100644 --- a/lib/plaid/models/risk_check_behavior_user_interactions_label.rb +++ b/lib/plaid/models/risk_check_behavior_user_interactions_label.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/risk_check_details.rb b/lib/plaid/models/risk_check_details.rb index da4d0100b..910cc524b 100644 --- a/lib/plaid/models/risk_check_details.rb +++ b/lib/plaid/models/risk_check_details.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -29,6 +29,28 @@ class RiskCheckDetails attr_accessor :identity_abuse_signals + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/risk_check_device.rb b/lib/plaid/models/risk_check_device.rb index 37396a74e..9161d726f 100644 --- a/lib/plaid/models/risk_check_device.rb +++ b/lib/plaid/models/risk_check_device.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -24,6 +24,28 @@ class RiskCheckDevice # UTC offset of the timezone associated with the IP address. attr_accessor :ip_timezone_offset + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/risk_check_email.rb b/lib/plaid/models/risk_check_email.rb index 0e925f001..5a347964a 100644 --- a/lib/plaid/models/risk_check_email.rb +++ b/lib/plaid/models/risk_check_email.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -41,6 +41,28 @@ class RiskCheckEmail # A list of online services where this email address has been detected to have accounts or other activity. attr_accessor :linked_services + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/risk_check_email_domain_is_custom.rb b/lib/plaid/models/risk_check_email_domain_is_custom.rb index 2a5e54d3a..01bb46284 100644 --- a/lib/plaid/models/risk_check_email_domain_is_custom.rb +++ b/lib/plaid/models/risk_check_email_domain_is_custom.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/risk_check_email_domain_is_disposable.rb b/lib/plaid/models/risk_check_email_domain_is_disposable.rb index 87c21594b..553c49e09 100644 --- a/lib/plaid/models/risk_check_email_domain_is_disposable.rb +++ b/lib/plaid/models/risk_check_email_domain_is_disposable.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/risk_check_email_domain_is_free_provider.rb b/lib/plaid/models/risk_check_email_domain_is_free_provider.rb index 14612af11..925bd2898 100644 --- a/lib/plaid/models/risk_check_email_domain_is_free_provider.rb +++ b/lib/plaid/models/risk_check_email_domain_is_free_provider.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/risk_check_email_is_deliverable_status.rb b/lib/plaid/models/risk_check_email_is_deliverable_status.rb index a6fc83d75..311b595e6 100644 --- a/lib/plaid/models/risk_check_email_is_deliverable_status.rb +++ b/lib/plaid/models/risk_check_email_is_deliverable_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/risk_check_email_top_level_domain_is_suspicious.rb b/lib/plaid/models/risk_check_email_top_level_domain_is_suspicious.rb index f713a3462..6d62ee021 100644 --- a/lib/plaid/models/risk_check_email_top_level_domain_is_suspicious.rb +++ b/lib/plaid/models/risk_check_email_top_level_domain_is_suspicious.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/risk_check_identity_abuse_signals.rb b/lib/plaid/models/risk_check_identity_abuse_signals.rb index 568194fd8..f070b2deb 100644 --- a/lib/plaid/models/risk_check_identity_abuse_signals.rb +++ b/lib/plaid/models/risk_check_identity_abuse_signals.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/risk_check_linked_service.rb b/lib/plaid/models/risk_check_linked_service.rb index 9e66b62f8..500962846 100644 --- a/lib/plaid/models/risk_check_linked_service.rb +++ b/lib/plaid/models/risk_check_linked_service.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/risk_check_phone.rb b/lib/plaid/models/risk_check_phone.rb index 0a7f28314..3f19aefd3 100644 --- a/lib/plaid/models/risk_check_phone.rb +++ b/lib/plaid/models/risk_check_phone.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/risk_check_stolen_identity.rb b/lib/plaid/models/risk_check_stolen_identity.rb index ab156767f..7f646b536 100644 --- a/lib/plaid/models/risk_check_stolen_identity.rb +++ b/lib/plaid/models/risk_check_stolen_identity.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/risk_check_synthetic_identity.rb b/lib/plaid/models/risk_check_synthetic_identity.rb index c010a152c..2fe971dc3 100644 --- a/lib/plaid/models/risk_check_synthetic_identity.rb +++ b/lib/plaid/models/risk_check_synthetic_identity.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/risk_signal_document_reference.rb b/lib/plaid/models/risk_signal_document_reference.rb index 9a6fcc0ed..8f183858a 100644 --- a/lib/plaid/models/risk_signal_document_reference.rb +++ b/lib/plaid/models/risk_signal_document_reference.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -24,6 +24,28 @@ class RiskSignalDocumentReference attr_accessor :status + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/risk_signal_document_status.rb b/lib/plaid/models/risk_signal_document_status.rb index 4d18b8ecf..3c914745e 100644 --- a/lib/plaid/models/risk_signal_document_status.rb +++ b/lib/plaid/models/risk_signal_document_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/role.rb b/lib/plaid/models/role.rb index 1471374c1..e6dcee5f5 100644 --- a/lib/plaid/models/role.rb +++ b/lib/plaid/models/role.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/role_detail.rb b/lib/plaid/models/role_detail.rb index dc9d032c1..077f1abcf 100644 --- a/lib/plaid/models/role_detail.rb +++ b/lib/plaid/models/role_detail.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -18,6 +18,28 @@ module Plaid class RoleDetail attr_accessor :party_role_type + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/roles.rb b/lib/plaid/models/roles.rb index 3b251ecc1..ad46a2947 100644 --- a/lib/plaid/models/roles.rb +++ b/lib/plaid/models/roles.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_bank_income_fire_webhook_request.rb b/lib/plaid/models/sandbox_bank_income_fire_webhook_request.rb index 46a6e6ad8..32cc67848 100644 --- a/lib/plaid/models/sandbox_bank_income_fire_webhook_request.rb +++ b/lib/plaid/models/sandbox_bank_income_fire_webhook_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -29,6 +29,28 @@ class SandboxBankIncomeFireWebhookRequest attr_accessor :webhook_fields + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/sandbox_bank_income_fire_webhook_response.rb b/lib/plaid/models/sandbox_bank_income_fire_webhook_response.rb index 1c96bc182..159a1e801 100644 --- a/lib/plaid/models/sandbox_bank_income_fire_webhook_response.rb +++ b/lib/plaid/models/sandbox_bank_income_fire_webhook_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_bank_income_webhook_fire_request_webhook_code.rb b/lib/plaid/models/sandbox_bank_income_webhook_fire_request_webhook_code.rb index 1e53a1897..f717117e7 100644 --- a/lib/plaid/models/sandbox_bank_income_webhook_fire_request_webhook_code.rb +++ b/lib/plaid/models/sandbox_bank_income_webhook_fire_request_webhook_code.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_bank_income_webhook_fire_request_webhook_fields.rb b/lib/plaid/models/sandbox_bank_income_webhook_fire_request_webhook_fields.rb index 5bbd0b594..d7e43c7b6 100644 --- a/lib/plaid/models/sandbox_bank_income_webhook_fire_request_webhook_fields.rb +++ b/lib/plaid/models/sandbox_bank_income_webhook_fire_request_webhook_fields.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -21,6 +21,28 @@ class SandboxBankIncomeWebhookFireRequestWebhookFields attr_accessor :bank_income_refresh_complete_result + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/sandbox_bank_transfer_fire_webhook_request.rb b/lib/plaid/models/sandbox_bank_transfer_fire_webhook_request.rb index 4f60f7202..e9bfcc591 100644 --- a/lib/plaid/models/sandbox_bank_transfer_fire_webhook_request.rb +++ b/lib/plaid/models/sandbox_bank_transfer_fire_webhook_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_bank_transfer_fire_webhook_response.rb b/lib/plaid/models/sandbox_bank_transfer_fire_webhook_response.rb index 5d4021778..9368da87f 100644 --- a/lib/plaid/models/sandbox_bank_transfer_fire_webhook_response.rb +++ b/lib/plaid/models/sandbox_bank_transfer_fire_webhook_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_bank_transfer_simulate_request.rb b/lib/plaid/models/sandbox_bank_transfer_simulate_request.rb index d02476dc2..f9a81693e 100644 --- a/lib/plaid/models/sandbox_bank_transfer_simulate_request.rb +++ b/lib/plaid/models/sandbox_bank_transfer_simulate_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_bank_transfer_simulate_response.rb b/lib/plaid/models/sandbox_bank_transfer_simulate_response.rb index 8ae8c106a..3f132c4c3 100644 --- a/lib/plaid/models/sandbox_bank_transfer_simulate_response.rb +++ b/lib/plaid/models/sandbox_bank_transfer_simulate_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_income_fire_webhook_request.rb b/lib/plaid/models/sandbox_income_fire_webhook_request.rb index 53e0c2690..25d3b020c 100644 --- a/lib/plaid/models/sandbox_income_fire_webhook_request.rb +++ b/lib/plaid/models/sandbox_income_fire_webhook_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_income_fire_webhook_response.rb b/lib/plaid/models/sandbox_income_fire_webhook_response.rb index c66dc0167..6d064b64a 100644 --- a/lib/plaid/models/sandbox_income_fire_webhook_response.rb +++ b/lib/plaid/models/sandbox_income_fire_webhook_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_income_webhook_fire_request_webhook_code.rb b/lib/plaid/models/sandbox_income_webhook_fire_request_webhook_code.rb index ef7abd161..6db8d8064 100644 --- a/lib/plaid/models/sandbox_income_webhook_fire_request_webhook_code.rb +++ b/lib/plaid/models/sandbox_income_webhook_fire_request_webhook_code.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_item_fire_webhook_request.rb b/lib/plaid/models/sandbox_item_fire_webhook_request.rb index 80c176e38..74ed64009 100644 --- a/lib/plaid/models/sandbox_item_fire_webhook_request.rb +++ b/lib/plaid/models/sandbox_item_fire_webhook_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_item_fire_webhook_response.rb b/lib/plaid/models/sandbox_item_fire_webhook_response.rb index c5a1ebe9f..fe14812d5 100644 --- a/lib/plaid/models/sandbox_item_fire_webhook_response.rb +++ b/lib/plaid/models/sandbox_item_fire_webhook_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_item_reset_login_request.rb b/lib/plaid/models/sandbox_item_reset_login_request.rb index 3c4ef6f14..827a59870 100644 --- a/lib/plaid/models/sandbox_item_reset_login_request.rb +++ b/lib/plaid/models/sandbox_item_reset_login_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_item_reset_login_response.rb b/lib/plaid/models/sandbox_item_reset_login_response.rb index 9da5262a5..31054c210 100644 --- a/lib/plaid/models/sandbox_item_reset_login_response.rb +++ b/lib/plaid/models/sandbox_item_reset_login_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_item_set_verification_status_request.rb b/lib/plaid/models/sandbox_item_set_verification_status_request.rb index c705daee0..335dc137b 100644 --- a/lib/plaid/models/sandbox_item_set_verification_status_request.rb +++ b/lib/plaid/models/sandbox_item_set_verification_status_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_item_set_verification_status_response.rb b/lib/plaid/models/sandbox_item_set_verification_status_response.rb index eb3c722fc..2fd25aaa0 100644 --- a/lib/plaid/models/sandbox_item_set_verification_status_response.rb +++ b/lib/plaid/models/sandbox_item_set_verification_status_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_oauth_select_accounts_request.rb b/lib/plaid/models/sandbox_oauth_select_accounts_request.rb index c53ab9c4b..123691af1 100644 --- a/lib/plaid/models/sandbox_oauth_select_accounts_request.rb +++ b/lib/plaid/models/sandbox_oauth_select_accounts_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_payment_profile_reset_login_request.rb b/lib/plaid/models/sandbox_payment_profile_reset_login_request.rb index 5d4925a8e..36e058d83 100644 --- a/lib/plaid/models/sandbox_payment_profile_reset_login_request.rb +++ b/lib/plaid/models/sandbox_payment_profile_reset_login_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_payment_profile_reset_login_response.rb b/lib/plaid/models/sandbox_payment_profile_reset_login_response.rb index b7fa18642..8afa04af4 100644 --- a/lib/plaid/models/sandbox_payment_profile_reset_login_response.rb +++ b/lib/plaid/models/sandbox_payment_profile_reset_login_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_processor_token_create_request.rb b/lib/plaid/models/sandbox_processor_token_create_request.rb index cd42403ae..ca91922e3 100644 --- a/lib/plaid/models/sandbox_processor_token_create_request.rb +++ b/lib/plaid/models/sandbox_processor_token_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_processor_token_create_request_options.rb b/lib/plaid/models/sandbox_processor_token_create_request_options.rb index 29d6229e8..c71fa6f3d 100644 --- a/lib/plaid/models/sandbox_processor_token_create_request_options.rb +++ b/lib/plaid/models/sandbox_processor_token_create_request_options.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_processor_token_create_response.rb b/lib/plaid/models/sandbox_processor_token_create_response.rb index b7d9c286c..8a3e333eb 100644 --- a/lib/plaid/models/sandbox_processor_token_create_response.rb +++ b/lib/plaid/models/sandbox_processor_token_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_public_token_create_request.rb b/lib/plaid/models/sandbox_public_token_create_request.rb index ab5e0a724..ca8b5c2c3 100644 --- a/lib/plaid/models/sandbox_public_token_create_request.rb +++ b/lib/plaid/models/sandbox_public_token_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_public_token_create_request_income_verification_bank_income.rb b/lib/plaid/models/sandbox_public_token_create_request_income_verification_bank_income.rb index 28c06b015..23b4fd88a 100644 --- a/lib/plaid/models/sandbox_public_token_create_request_income_verification_bank_income.rb +++ b/lib/plaid/models/sandbox_public_token_create_request_income_verification_bank_income.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_public_token_create_request_options.rb b/lib/plaid/models/sandbox_public_token_create_request_options.rb index 05cc3f709..98689b3b3 100644 --- a/lib/plaid/models/sandbox_public_token_create_request_options.rb +++ b/lib/plaid/models/sandbox_public_token_create_request_options.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_public_token_create_request_options_income_verification.rb b/lib/plaid/models/sandbox_public_token_create_request_options_income_verification.rb index f553ae29f..dc8f4788e 100644 --- a/lib/plaid/models/sandbox_public_token_create_request_options_income_verification.rb +++ b/lib/plaid/models/sandbox_public_token_create_request_options_income_verification.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_public_token_create_request_options_transactions.rb b/lib/plaid/models/sandbox_public_token_create_request_options_transactions.rb index 6ac0d1e99..07be30d57 100644 --- a/lib/plaid/models/sandbox_public_token_create_request_options_transactions.rb +++ b/lib/plaid/models/sandbox_public_token_create_request_options_transactions.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -22,11 +22,15 @@ class SandboxPublicTokenCreateRequestOptionsTransactions # The most recent date for which to fetch transaction history. Dates should be formatted as YYYY-MM-DD. attr_accessor :end_date + # The maximum number of days of transaction history to request for the Transactions product. + attr_accessor :days_requested + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'start_date' => :'start_date', - :'end_date' => :'end_date' + :'end_date' => :'end_date', + :'days_requested' => :'days_requested' } end @@ -39,7 +43,8 @@ def self.acceptable_attributes def self.openapi_types { :'start_date' => :'Date', - :'end_date' => :'Date' + :'end_date' => :'Date', + :'days_requested' => :'Integer' } end @@ -71,28 +76,61 @@ def initialize(attributes = {}) if attributes.key?(:'end_date') self.end_date = attributes[:'end_date'] end + + if attributes.key?(:'days_requested') + self.days_requested = attributes[:'days_requested'] + else + self.days_requested = 90 + end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new + if !@days_requested.nil? && @days_requested > 730 + invalid_properties.push('invalid value for "days_requested", must be smaller than or equal to 730.') + end + + if !@days_requested.nil? && @days_requested < 1 + invalid_properties.push('invalid value for "days_requested", must be greater than or equal to 1.') + end + + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + return false if !@days_requested.nil? && @days_requested > 730 + return false if !@days_requested.nil? && @days_requested < 1 true end + # Custom attribute writer method with validation + # @param [Object] days_requested Value to be assigned + def days_requested=(days_requested) + if !days_requested.nil? && days_requested > 730 + fail ArgumentError, 'invalid value for "days_requested", must be smaller than or equal to 730.' + end + + if !days_requested.nil? && days_requested < 1 + fail ArgumentError, 'invalid value for "days_requested", must be greater than or equal to 1.' + end + + + @days_requested = days_requested + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && start_date == o.start_date && - end_date == o.end_date + end_date == o.end_date && + days_requested == o.days_requested end # @see the `==` method @@ -104,7 +142,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [start_date, end_date].hash + [start_date, end_date, days_requested].hash end # Builds the object from hash diff --git a/lib/plaid/models/sandbox_public_token_create_response.rb b/lib/plaid/models/sandbox_public_token_create_response.rb index fc4e167a3..148d539a0 100644 --- a/lib/plaid/models/sandbox_public_token_create_response.rb +++ b/lib/plaid/models/sandbox_public_token_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_transfer_fire_webhook_request.rb b/lib/plaid/models/sandbox_transfer_fire_webhook_request.rb index 8301090da..110a192c2 100644 --- a/lib/plaid/models/sandbox_transfer_fire_webhook_request.rb +++ b/lib/plaid/models/sandbox_transfer_fire_webhook_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_transfer_fire_webhook_response.rb b/lib/plaid/models/sandbox_transfer_fire_webhook_response.rb index 34d3bf75e..88112d6f4 100644 --- a/lib/plaid/models/sandbox_transfer_fire_webhook_response.rb +++ b/lib/plaid/models/sandbox_transfer_fire_webhook_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_transfer_ledger_deposit_simulate_request.rb b/lib/plaid/models/sandbox_transfer_ledger_deposit_simulate_request.rb index 1f678e3f5..323a6e7ae 100644 --- a/lib/plaid/models/sandbox_transfer_ledger_deposit_simulate_request.rb +++ b/lib/plaid/models/sandbox_transfer_ledger_deposit_simulate_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -29,6 +29,28 @@ class SandboxTransferLedgerDepositSimulateRequest attr_accessor :failure_reason + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/sandbox_transfer_ledger_deposit_simulate_response.rb b/lib/plaid/models/sandbox_transfer_ledger_deposit_simulate_response.rb index f5d1c07a9..6112f6fce 100644 --- a/lib/plaid/models/sandbox_transfer_ledger_deposit_simulate_response.rb +++ b/lib/plaid/models/sandbox_transfer_ledger_deposit_simulate_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_transfer_ledger_simulate_available_request.rb b/lib/plaid/models/sandbox_transfer_ledger_simulate_available_request.rb index 7f77ef665..7bc576e31 100644 --- a/lib/plaid/models/sandbox_transfer_ledger_simulate_available_request.rb +++ b/lib/plaid/models/sandbox_transfer_ledger_simulate_available_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_transfer_ledger_simulate_available_response.rb b/lib/plaid/models/sandbox_transfer_ledger_simulate_available_response.rb index ae6bd3952..2ff2106f3 100644 --- a/lib/plaid/models/sandbox_transfer_ledger_simulate_available_response.rb +++ b/lib/plaid/models/sandbox_transfer_ledger_simulate_available_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_transfer_ledger_withdraw_simulate_request.rb b/lib/plaid/models/sandbox_transfer_ledger_withdraw_simulate_request.rb index 7994b43ee..499a9294e 100644 --- a/lib/plaid/models/sandbox_transfer_ledger_withdraw_simulate_request.rb +++ b/lib/plaid/models/sandbox_transfer_ledger_withdraw_simulate_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -29,6 +29,28 @@ class SandboxTransferLedgerWithdrawSimulateRequest attr_accessor :failure_reason + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/sandbox_transfer_ledger_withdraw_simulate_response.rb b/lib/plaid/models/sandbox_transfer_ledger_withdraw_simulate_response.rb index cdceeeebb..2177954a7 100644 --- a/lib/plaid/models/sandbox_transfer_ledger_withdraw_simulate_response.rb +++ b/lib/plaid/models/sandbox_transfer_ledger_withdraw_simulate_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_transfer_refund_simulate_request.rb b/lib/plaid/models/sandbox_transfer_refund_simulate_request.rb index 48dd66b7e..f0f612b47 100644 --- a/lib/plaid/models/sandbox_transfer_refund_simulate_request.rb +++ b/lib/plaid/models/sandbox_transfer_refund_simulate_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_transfer_refund_simulate_response.rb b/lib/plaid/models/sandbox_transfer_refund_simulate_response.rb index 58a727cd7..6e3828ba0 100644 --- a/lib/plaid/models/sandbox_transfer_refund_simulate_response.rb +++ b/lib/plaid/models/sandbox_transfer_refund_simulate_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_transfer_repayment_simulate_request.rb b/lib/plaid/models/sandbox_transfer_repayment_simulate_request.rb index 739c7b844..bfdb979a3 100644 --- a/lib/plaid/models/sandbox_transfer_repayment_simulate_request.rb +++ b/lib/plaid/models/sandbox_transfer_repayment_simulate_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_transfer_repayment_simulate_response.rb b/lib/plaid/models/sandbox_transfer_repayment_simulate_response.rb index 71a9b12b5..9f1f0f76b 100644 --- a/lib/plaid/models/sandbox_transfer_repayment_simulate_response.rb +++ b/lib/plaid/models/sandbox_transfer_repayment_simulate_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_transfer_simulate_request.rb b/lib/plaid/models/sandbox_transfer_simulate_request.rb index 0971fdcfa..1a14c9309 100644 --- a/lib/plaid/models/sandbox_transfer_simulate_request.rb +++ b/lib/plaid/models/sandbox_transfer_simulate_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_transfer_simulate_response.rb b/lib/plaid/models/sandbox_transfer_simulate_response.rb index eab30ced0..7c3bcddb3 100644 --- a/lib/plaid/models/sandbox_transfer_simulate_response.rb +++ b/lib/plaid/models/sandbox_transfer_simulate_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_transfer_sweep_simulate_request.rb b/lib/plaid/models/sandbox_transfer_sweep_simulate_request.rb index 9a8fd5911..d4cd32ef0 100644 --- a/lib/plaid/models/sandbox_transfer_sweep_simulate_request.rb +++ b/lib/plaid/models/sandbox_transfer_sweep_simulate_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_transfer_sweep_simulate_response.rb b/lib/plaid/models/sandbox_transfer_sweep_simulate_response.rb index 9848fea98..3773f424d 100644 --- a/lib/plaid/models/sandbox_transfer_sweep_simulate_response.rb +++ b/lib/plaid/models/sandbox_transfer_sweep_simulate_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_transfer_test_clock_advance_request.rb b/lib/plaid/models/sandbox_transfer_test_clock_advance_request.rb index 5a201205e..2b01a9f54 100644 --- a/lib/plaid/models/sandbox_transfer_test_clock_advance_request.rb +++ b/lib/plaid/models/sandbox_transfer_test_clock_advance_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_transfer_test_clock_advance_response.rb b/lib/plaid/models/sandbox_transfer_test_clock_advance_response.rb index 2868b97e5..5006c6d9e 100644 --- a/lib/plaid/models/sandbox_transfer_test_clock_advance_response.rb +++ b/lib/plaid/models/sandbox_transfer_test_clock_advance_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_transfer_test_clock_create_request.rb b/lib/plaid/models/sandbox_transfer_test_clock_create_request.rb index 10eea551c..f858d2248 100644 --- a/lib/plaid/models/sandbox_transfer_test_clock_create_request.rb +++ b/lib/plaid/models/sandbox_transfer_test_clock_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_transfer_test_clock_create_response.rb b/lib/plaid/models/sandbox_transfer_test_clock_create_response.rb index 57bed2344..f9f3c95dd 100644 --- a/lib/plaid/models/sandbox_transfer_test_clock_create_response.rb +++ b/lib/plaid/models/sandbox_transfer_test_clock_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_transfer_test_clock_get_request.rb b/lib/plaid/models/sandbox_transfer_test_clock_get_request.rb index a2bc02b73..f27ae21ab 100644 --- a/lib/plaid/models/sandbox_transfer_test_clock_get_request.rb +++ b/lib/plaid/models/sandbox_transfer_test_clock_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_transfer_test_clock_get_response.rb b/lib/plaid/models/sandbox_transfer_test_clock_get_response.rb index 240b53b34..249993156 100644 --- a/lib/plaid/models/sandbox_transfer_test_clock_get_response.rb +++ b/lib/plaid/models/sandbox_transfer_test_clock_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_transfer_test_clock_list_request.rb b/lib/plaid/models/sandbox_transfer_test_clock_list_request.rb index 1a55bce63..e855e61aa 100644 --- a/lib/plaid/models/sandbox_transfer_test_clock_list_request.rb +++ b/lib/plaid/models/sandbox_transfer_test_clock_list_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sandbox_transfer_test_clock_list_response.rb b/lib/plaid/models/sandbox_transfer_test_clock_list_response.rb index ece49073a..0497e18fb 100644 --- a/lib/plaid/models/sandbox_transfer_test_clock_list_response.rb +++ b/lib/plaid/models/sandbox_transfer_test_clock_list_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/scopes.rb b/lib/plaid/models/scopes.rb index d9e4e4d01..de3c35a3b 100644 --- a/lib/plaid/models/scopes.rb +++ b/lib/plaid/models/scopes.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/scopes_context.rb b/lib/plaid/models/scopes_context.rb index a88a9f551..c5d70b1e0 100644 --- a/lib/plaid/models/scopes_context.rb +++ b/lib/plaid/models/scopes_context.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/scopes_nullable.rb b/lib/plaid/models/scopes_nullable.rb index 63c5b4880..cf3999afe 100644 --- a/lib/plaid/models/scopes_nullable.rb +++ b/lib/plaid/models/scopes_nullable.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/screening_hit_analysis.rb b/lib/plaid/models/screening_hit_analysis.rb index 6d6952135..8ad45883d 100644 --- a/lib/plaid/models/screening_hit_analysis.rb +++ b/lib/plaid/models/screening_hit_analysis.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -27,6 +27,28 @@ class ScreeningHitAnalysis # The version of the screening's `search_terms` that were compared when the screening hit was added. screening hits are immutable once they have been reviewed. If changes are detected due to updates to the screening's `search_terms`, the associated program, or the list's source data prior to review, the screening hit will be updated to reflect those changes. attr_accessor :search_terms_version + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/screening_hit_data.rb b/lib/plaid/models/screening_hit_data.rb index 3661c48f4..b6dd05158 100644 --- a/lib/plaid/models/screening_hit_data.rb +++ b/lib/plaid/models/screening_hit_data.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/screening_hit_date_of_birth_item.rb b/lib/plaid/models/screening_hit_date_of_birth_item.rb index a2d2f8f6e..36eb20409 100644 --- a/lib/plaid/models/screening_hit_date_of_birth_item.rb +++ b/lib/plaid/models/screening_hit_date_of_birth_item.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/screening_hit_documents_items.rb b/lib/plaid/models/screening_hit_documents_items.rb index 6bf2cce3b..8379228b9 100644 --- a/lib/plaid/models/screening_hit_documents_items.rb +++ b/lib/plaid/models/screening_hit_documents_items.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/screening_hit_names_items.rb b/lib/plaid/models/screening_hit_names_items.rb index 2b4098d36..2fd568030 100644 --- a/lib/plaid/models/screening_hit_names_items.rb +++ b/lib/plaid/models/screening_hit_names_items.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/screening_status_updated_webhook.rb b/lib/plaid/models/screening_status_updated_webhook.rb index fec3bf90b..04a803482 100644 --- a/lib/plaid/models/screening_status_updated_webhook.rb +++ b/lib/plaid/models/screening_status_updated_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -27,6 +27,28 @@ class ScreeningStatusUpdatedWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/security.rb b/lib/plaid/models/security.rb index ea9cb2796..b10da1af1 100644 --- a/lib/plaid/models/security.rb +++ b/lib/plaid/models/security.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/security_override.rb b/lib/plaid/models/security_override.rb index 8df5b9384..47d6c5cc4 100644 --- a/lib/plaid/models/security_override.rb +++ b/lib/plaid/models/security_override.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/selfie_analysis.rb b/lib/plaid/models/selfie_analysis.rb index 41e85345e..86bb2b4e0 100644 --- a/lib/plaid/models/selfie_analysis.rb +++ b/lib/plaid/models/selfie_analysis.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -18,6 +18,28 @@ module Plaid class SelfieAnalysis attr_accessor :document_comparison + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/selfie_analysis_document_comparison.rb b/lib/plaid/models/selfie_analysis_document_comparison.rb index a89f1de66..27cf31e23 100644 --- a/lib/plaid/models/selfie_analysis_document_comparison.rb +++ b/lib/plaid/models/selfie_analysis_document_comparison.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/selfie_capture.rb b/lib/plaid/models/selfie_capture.rb index 3ebf9d327..c39f8e28f 100644 --- a/lib/plaid/models/selfie_capture.rb +++ b/lib/plaid/models/selfie_capture.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/selfie_check.rb b/lib/plaid/models/selfie_check.rb index d75a340c5..e1d668125 100644 --- a/lib/plaid/models/selfie_check.rb +++ b/lib/plaid/models/selfie_check.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -21,6 +21,28 @@ class SelfieCheck # An array of selfies submitted to the `selfie_check` step. Each entry represents one user submission. attr_accessor :selfies + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/selfie_check_selfie.rb b/lib/plaid/models/selfie_check_selfie.rb index fc9ee9a05..27c0ea510 100644 --- a/lib/plaid/models/selfie_check_selfie.rb +++ b/lib/plaid/models/selfie_check_selfie.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -25,6 +25,28 @@ class SelfieCheckSelfie attr_accessor :analysis + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/selfie_check_status.rb b/lib/plaid/models/selfie_check_status.rb index c2f735f39..fbc91c080 100644 --- a/lib/plaid/models/selfie_check_status.rb +++ b/lib/plaid/models/selfie_check_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/selfie_status.rb b/lib/plaid/models/selfie_status.rb index c8a9d014b..b76f5f780 100644 --- a/lib/plaid/models/selfie_status.rb +++ b/lib/plaid/models/selfie_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sender_bacs_nullable.rb b/lib/plaid/models/sender_bacs_nullable.rb index a5dc7d4fc..414e77209 100644 --- a/lib/plaid/models/sender_bacs_nullable.rb +++ b/lib/plaid/models/sender_bacs_nullable.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/service.rb b/lib/plaid/models/service.rb index bd4df5a5f..8c44949ed 100644 --- a/lib/plaid/models/service.rb +++ b/lib/plaid/models/service.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/service_product_fulfillment.rb b/lib/plaid/models/service_product_fulfillment.rb index 4b28d0728..19f4eb823 100644 --- a/lib/plaid/models/service_product_fulfillment.rb +++ b/lib/plaid/models/service_product_fulfillment.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/service_product_fulfillment_detail.rb b/lib/plaid/models/service_product_fulfillment_detail.rb index 2ccab687d..92df4dd82 100644 --- a/lib/plaid/models/service_product_fulfillment_detail.rb +++ b/lib/plaid/models/service_product_fulfillment_detail.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -21,6 +21,28 @@ class ServiceProductFulfillmentDetail attr_accessor :service_product_fulfillment_identifier + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/service_product_fulfillment_identifier.rb b/lib/plaid/models/service_product_fulfillment_identifier.rb index 00f871da1..cadf39f2a 100644 --- a/lib/plaid/models/service_product_fulfillment_identifier.rb +++ b/lib/plaid/models/service_product_fulfillment_identifier.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/servicer_address_data.rb b/lib/plaid/models/servicer_address_data.rb index 54d9c49a7..73dd24845 100644 --- a/lib/plaid/models/servicer_address_data.rb +++ b/lib/plaid/models/servicer_address_data.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/services.rb b/lib/plaid/models/services.rb index ad27d48bf..06b46bfbc 100644 --- a/lib/plaid/models/services.rb +++ b/lib/plaid/models/services.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/signal_address_data.rb b/lib/plaid/models/signal_address_data.rb index d96bb278b..30d0bb71d 100644 --- a/lib/plaid/models/signal_address_data.rb +++ b/lib/plaid/models/signal_address_data.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/signal_decision_outcome.rb b/lib/plaid/models/signal_decision_outcome.rb index 04bda99bb..f7df44cdc 100644 --- a/lib/plaid/models/signal_decision_outcome.rb +++ b/lib/plaid/models/signal_decision_outcome.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/signal_decision_report_request.rb b/lib/plaid/models/signal_decision_report_request.rb index 50d813446..c829d9053 100644 --- a/lib/plaid/models/signal_decision_report_request.rb +++ b/lib/plaid/models/signal_decision_report_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -38,6 +38,28 @@ class SignalDecisionReportRequest # The amount (in USD) made available to your customers instantly following the debit transaction. It could be a partial amount of the requested transaction (example: 102.05). attr_accessor :amount_instantly_available + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/signal_decision_report_response.rb b/lib/plaid/models/signal_decision_report_response.rb index 8a4f16ef3..e30f2cbf3 100644 --- a/lib/plaid/models/signal_decision_report_response.rb +++ b/lib/plaid/models/signal_decision_report_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/signal_device.rb b/lib/plaid/models/signal_device.rb index d8a9e75e5..2c1ab3cb7 100644 --- a/lib/plaid/models/signal_device.rb +++ b/lib/plaid/models/signal_device.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/signal_evaluate_core_attributes.rb b/lib/plaid/models/signal_evaluate_core_attributes.rb index 391df8336..a450b0294 100644 --- a/lib/plaid/models/signal_evaluate_core_attributes.rb +++ b/lib/plaid/models/signal_evaluate_core_attributes.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/signal_evaluate_request.rb b/lib/plaid/models/signal_evaluate_request.rb index 9e06d66d9..f5276f59f 100644 --- a/lib/plaid/models/signal_evaluate_request.rb +++ b/lib/plaid/models/signal_evaluate_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/signal_evaluate_response.rb b/lib/plaid/models/signal_evaluate_response.rb index ade09fd5a..d05e9d962 100644 --- a/lib/plaid/models/signal_evaluate_response.rb +++ b/lib/plaid/models/signal_evaluate_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/signal_payment_method.rb b/lib/plaid/models/signal_payment_method.rb index 1800a8a65..a5f264add 100644 --- a/lib/plaid/models/signal_payment_method.rb +++ b/lib/plaid/models/signal_payment_method.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/signal_person_name.rb b/lib/plaid/models/signal_person_name.rb index e9c5ae4cb..55d800ce3 100644 --- a/lib/plaid/models/signal_person_name.rb +++ b/lib/plaid/models/signal_person_name.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/signal_prepare_request.rb b/lib/plaid/models/signal_prepare_request.rb index c5b167528..e0348b9a7 100644 --- a/lib/plaid/models/signal_prepare_request.rb +++ b/lib/plaid/models/signal_prepare_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/signal_prepare_response.rb b/lib/plaid/models/signal_prepare_response.rb index c1e2b9a7f..0a6483aee 100644 --- a/lib/plaid/models/signal_prepare_response.rb +++ b/lib/plaid/models/signal_prepare_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/signal_return_report_request.rb b/lib/plaid/models/signal_return_report_request.rb index 2317a6a67..d8c780ae2 100644 --- a/lib/plaid/models/signal_return_report_request.rb +++ b/lib/plaid/models/signal_return_report_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/signal_return_report_response.rb b/lib/plaid/models/signal_return_report_response.rb index f00958ce8..ee258b1b0 100644 --- a/lib/plaid/models/signal_return_report_response.rb +++ b/lib/plaid/models/signal_return_report_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/signal_scores.rb b/lib/plaid/models/signal_scores.rb index 14b46ff93..58033b48d 100644 --- a/lib/plaid/models/signal_scores.rb +++ b/lib/plaid/models/signal_scores.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/signal_user.rb b/lib/plaid/models/signal_user.rb index ef89a65e8..3368a04fe 100644 --- a/lib/plaid/models/signal_user.rb +++ b/lib/plaid/models/signal_user.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/signal_warning.rb b/lib/plaid/models/signal_warning.rb index c2cf96a0d..bff0ba25b 100644 --- a/lib/plaid/models/signal_warning.rb +++ b/lib/plaid/models/signal_warning.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/simulated_transfer_sweep.rb b/lib/plaid/models/simulated_transfer_sweep.rb index d25dac908..9120acf00 100644 --- a/lib/plaid/models/simulated_transfer_sweep.rb +++ b/lib/plaid/models/simulated_transfer_sweep.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -44,6 +44,28 @@ class SimulatedTransferSweep # The trace identifier for the transfer based on its network. This will only be set after the transfer has posted. For `ach` or `same-day-ach` transfers, this is the ACH trace number. Currently, the field will remain null for transfers on other rails. attr_accessor :network_trace_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/single_document_risk_signal.rb b/lib/plaid/models/single_document_risk_signal.rb index 470a35cf5..5b3ce39b9 100644 --- a/lib/plaid/models/single_document_risk_signal.rb +++ b/lib/plaid/models/single_document_risk_signal.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/source.rb b/lib/plaid/models/source.rb index 3ad35c1b3..19ccb7558 100644 --- a/lib/plaid/models/source.rb +++ b/lib/plaid/models/source.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/standalone_account_type.rb b/lib/plaid/models/standalone_account_type.rb index 21c9b8caf..21961b3af 100644 --- a/lib/plaid/models/standalone_account_type.rb +++ b/lib/plaid/models/standalone_account_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/standalone_currency_code_list.rb b/lib/plaid/models/standalone_currency_code_list.rb index 465353d15..21fc12d76 100644 --- a/lib/plaid/models/standalone_currency_code_list.rb +++ b/lib/plaid/models/standalone_currency_code_list.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/standalone_investment_transaction_type.rb b/lib/plaid/models/standalone_investment_transaction_type.rb index 81fd2b46e..36dce51fd 100644 --- a/lib/plaid/models/standalone_investment_transaction_type.rb +++ b/lib/plaid/models/standalone_investment_transaction_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/statements_account.rb b/lib/plaid/models/statements_account.rb index 6c4b6877a..17edaab34 100644 --- a/lib/plaid/models/statements_account.rb +++ b/lib/plaid/models/statements_account.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/statements_download_request.rb b/lib/plaid/models/statements_download_request.rb index 657f43a91..6fac37ed1 100644 --- a/lib/plaid/models/statements_download_request.rb +++ b/lib/plaid/models/statements_download_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/statements_list_request.rb b/lib/plaid/models/statements_list_request.rb index 9ba8d4b38..a0baf808f 100644 --- a/lib/plaid/models/statements_list_request.rb +++ b/lib/plaid/models/statements_list_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/statements_list_response.rb b/lib/plaid/models/statements_list_response.rb index 434d30dd2..2da9927f9 100644 --- a/lib/plaid/models/statements_list_response.rb +++ b/lib/plaid/models/statements_list_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/statements_refresh_request.rb b/lib/plaid/models/statements_refresh_request.rb new file mode 100644 index 000000000..e13c0c4b7 --- /dev/null +++ b/lib/plaid/models/statements_refresh_request.rb @@ -0,0 +1,276 @@ +=begin +#The Plaid API + +#The Plaid REST API. Please see https://plaid.com/docs/api for more details. + +The version of the OpenAPI document: 2020-09-14_1.474.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 6.3.0 + +=end + +require 'date' +require 'time' + +module Plaid + # StatementsRefreshRequest defines the request schema for `/statements/refresh` + class StatementsRefreshRequest + # The access token associated with the Item data is being requested for. + attr_accessor :access_token + + # 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. + attr_accessor :client_id + + # 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. + attr_accessor :secret + + # The start date for statements, in “YYYY-MM-DD” format, e.g. \"2023-08-30\". To determine whether a statement falls within the specified date range, Plaid will use the statement posted date. The statement posted date is typically either the last day of the statement period, or the following day. + attr_accessor :start_date + + # The end date for statements, in “YYYY-MM-DD” format, e.g. \"2023-10-30\". You can request up to two years of data. To determine whether a statement falls within the specified date range, Plaid will use the statement posted date. The statement posted date is typically either the last day of the statement period, or the following day. + attr_accessor :end_date + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'access_token' => :'access_token', + :'client_id' => :'client_id', + :'secret' => :'secret', + :'start_date' => :'start_date', + :'end_date' => :'end_date' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'access_token' => :'String', + :'client_id' => :'String', + :'secret' => :'String', + :'start_date' => :'Date', + :'end_date' => :'Date' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `Plaid::StatementsRefreshRequest` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Plaid::StatementsRefreshRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'access_token') + self.access_token = attributes[:'access_token'] + end + + if attributes.key?(:'client_id') + self.client_id = attributes[:'client_id'] + end + + if attributes.key?(:'secret') + self.secret = attributes[:'secret'] + end + + if attributes.key?(:'start_date') + self.start_date = attributes[:'start_date'] + end + + if attributes.key?(:'end_date') + self.end_date = attributes[:'end_date'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + if @access_token.nil? + invalid_properties.push('invalid value for "access_token", access_token cannot be nil.') + end + + if @start_date.nil? + invalid_properties.push('invalid value for "start_date", start_date cannot be nil.') + end + + if @end_date.nil? + invalid_properties.push('invalid value for "end_date", end_date cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + return false if @access_token.nil? + return false if @start_date.nil? + return false if @end_date.nil? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + access_token == o.access_token && + client_id == o.client_id && + secret == o.secret && + start_date == o.start_date && + end_date == o.end_date + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [access_token, client_id, secret, start_date, end_date].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = Plaid.const_get(type) + klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/lib/plaid/models/statements_refresh_response.rb b/lib/plaid/models/statements_refresh_response.rb new file mode 100644 index 000000000..24fe5470c --- /dev/null +++ b/lib/plaid/models/statements_refresh_response.rb @@ -0,0 +1,226 @@ +=begin +#The Plaid API + +#The Plaid REST API. Please see https://plaid.com/docs/api for more details. + +The version of the OpenAPI document: 2020-09-14_1.474.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 6.3.0 + +=end + +require 'date' +require 'time' + +module Plaid + # StatementsRefreshResponse defines the response schema for `/statements/refresh` + class StatementsRefreshResponse + # A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive. + attr_accessor :request_id + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'request_id' => :'request_id' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'request_id' => :'String' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `Plaid::StatementsRefreshResponse` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Plaid::StatementsRefreshResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'request_id') + self.request_id = attributes[:'request_id'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + if @request_id.nil? + invalid_properties.push('invalid value for "request_id", request_id cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + return false if @request_id.nil? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + request_id == o.request_id + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [request_id].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = Plaid.const_get(type) + klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/lib/plaid/models/statements_statement.rb b/lib/plaid/models/statements_statement.rb index 29a650227..45ec888ad 100644 --- a/lib/plaid/models/statements_statement.rb +++ b/lib/plaid/models/statements_statement.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/status.rb b/lib/plaid/models/status.rb index 155f30ffe..5b6b7ea4c 100644 --- a/lib/plaid/models/status.rb +++ b/lib/plaid/models/status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/statuses.rb b/lib/plaid/models/statuses.rb index c16eb668e..88e0b1b64 100644 --- a/lib/plaid/models/statuses.rb +++ b/lib/plaid/models/statuses.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/strategy.rb b/lib/plaid/models/strategy.rb index 93d31b6df..0b77c24d2 100644 --- a/lib/plaid/models/strategy.rb +++ b/lib/plaid/models/strategy.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/student_loan.rb b/lib/plaid/models/student_loan.rb index 8fabaf819..e0dd4eff4 100644 --- a/lib/plaid/models/student_loan.rb +++ b/lib/plaid/models/student_loan.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/student_loan_repayment_model.rb b/lib/plaid/models/student_loan_repayment_model.rb index b4f406b10..5590e3500 100644 --- a/lib/plaid/models/student_loan_repayment_model.rb +++ b/lib/plaid/models/student_loan_repayment_model.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/student_loan_status.rb b/lib/plaid/models/student_loan_status.rb index 64e19889c..300bf11e2 100644 --- a/lib/plaid/models/student_loan_status.rb +++ b/lib/plaid/models/student_loan_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/student_repayment_plan.rb b/lib/plaid/models/student_repayment_plan.rb index 59a505fac..ac14a2ca8 100644 --- a/lib/plaid/models/student_repayment_plan.rb +++ b/lib/plaid/models/student_repayment_plan.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sweep_status.rb b/lib/plaid/models/sweep_status.rb index 492bda280..761e7a027 100644 --- a/lib/plaid/models/sweep_status.rb +++ b/lib/plaid/models/sweep_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sweep_trigger.rb b/lib/plaid/models/sweep_trigger.rb index 5c6351643..91d9bc46f 100644 --- a/lib/plaid/models/sweep_trigger.rb +++ b/lib/plaid/models/sweep_trigger.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/sync_updates_available_webhook.rb b/lib/plaid/models/sync_updates_available_webhook.rb index 40fd4a197..de1bc8068 100644 --- a/lib/plaid/models/sync_updates_available_webhook.rb +++ b/lib/plaid/models/sync_updates_available_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -33,6 +33,28 @@ class SyncUpdatesAvailableWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/taxform.rb b/lib/plaid/models/taxform.rb index cba3a0029..b39dc383e 100644 --- a/lib/plaid/models/taxform.rb +++ b/lib/plaid/models/taxform.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/taxpayer_id.rb b/lib/plaid/models/taxpayer_id.rb index 440298715..befc4dc28 100644 --- a/lib/plaid/models/taxpayer_id.rb +++ b/lib/plaid/models/taxpayer_id.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/taxpayer_identifier.rb b/lib/plaid/models/taxpayer_identifier.rb index c1627025e..753796d3f 100644 --- a/lib/plaid/models/taxpayer_identifier.rb +++ b/lib/plaid/models/taxpayer_identifier.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -21,6 +21,28 @@ class TaxpayerIdentifier # The value of the taxpayer identifier as assigned by the IRS to the individual or legal entity. attr_accessor :taxpayer_identifier_value + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/taxpayer_identifier_type.rb b/lib/plaid/models/taxpayer_identifier_type.rb index 351e5d3ca..478aa63c7 100644 --- a/lib/plaid/models/taxpayer_identifier_type.rb +++ b/lib/plaid/models/taxpayer_identifier_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/taxpayer_identifiers.rb b/lib/plaid/models/taxpayer_identifiers.rb index b79c9dcdf..09abb96e9 100644 --- a/lib/plaid/models/taxpayer_identifiers.rb +++ b/lib/plaid/models/taxpayer_identifiers.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/total.rb b/lib/plaid/models/total.rb index 32b2ec453..1d4c654b3 100644 --- a/lib/plaid/models/total.rb +++ b/lib/plaid/models/total.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -25,6 +25,28 @@ class Total attr_accessor :ytd_pay + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/total_canonical_description.rb b/lib/plaid/models/total_canonical_description.rb index 3e7018cd9..27ac0abe3 100644 --- a/lib/plaid/models/total_canonical_description.rb +++ b/lib/plaid/models/total_canonical_description.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transaction.rb b/lib/plaid/models/transaction.rb index 1f88ff19e..3cfe528e2 100644 --- a/lib/plaid/models/transaction.rb +++ b/lib/plaid/models/transaction.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transaction_all_of.rb b/lib/plaid/models/transaction_all_of.rb index ba8657aa1..826e15d22 100644 --- a/lib/plaid/models/transaction_all_of.rb +++ b/lib/plaid/models/transaction_all_of.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transaction_base.rb b/lib/plaid/models/transaction_base.rb index 7a2c983d2..90e7d2b8e 100644 --- a/lib/plaid/models/transaction_base.rb +++ b/lib/plaid/models/transaction_base.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transaction_code.rb b/lib/plaid/models/transaction_code.rb index 80fe57711..be75d8874 100644 --- a/lib/plaid/models/transaction_code.rb +++ b/lib/plaid/models/transaction_code.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transaction_counterparty.rb b/lib/plaid/models/transaction_counterparty.rb index 1ac0d136f..80c173928 100644 --- a/lib/plaid/models/transaction_counterparty.rb +++ b/lib/plaid/models/transaction_counterparty.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -33,6 +33,28 @@ class TransactionCounterparty # A description of how confident we are that the provided counterparty is involved in the transaction. `VERY_HIGH`: We recognize this counterparty and we are more than 98% confident that it is involved in this transaction. `HIGH`: We recognize this counterparty and we are more than 90% confident that it is involved in this transaction. `MEDIUM`: We are moderately confident that this counterparty was involved in this transaction, but some details may differ from our records. `LOW`: We didn’t find a matching counterparty in our records, so we are returning a cleansed name parsed out of the request description. `UNKNOWN`: We don’t know the confidence level for this counterparty. attr_accessor :confidence_level + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/transaction_data.rb b/lib/plaid/models/transaction_data.rb index aee967bd2..00cd9b00d 100644 --- a/lib/plaid/models/transaction_data.rb +++ b/lib/plaid/models/transaction_data.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transaction_override.rb b/lib/plaid/models/transaction_override.rb index 0dd1f09af..46a72dc9c 100644 --- a/lib/plaid/models/transaction_override.rb +++ b/lib/plaid/models/transaction_override.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transaction_stream.rb b/lib/plaid/models/transaction_stream.rb index 2c181f8f5..fd5861f15 100644 --- a/lib/plaid/models/transaction_stream.rb +++ b/lib/plaid/models/transaction_stream.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -62,6 +62,28 @@ class TransactionStream # The date of the most recent user modification. This will only be set if `is_user_modified` is `true`. attr_accessor :last_user_modified_date + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/transaction_stream_amount.rb b/lib/plaid/models/transaction_stream_amount.rb index b42dc82e9..eb7febcf4 100644 --- a/lib/plaid/models/transaction_stream_amount.rb +++ b/lib/plaid/models/transaction_stream_amount.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transaction_stream_status.rb b/lib/plaid/models/transaction_stream_status.rb index 0315088a6..e4b4a73bd 100644 --- a/lib/plaid/models/transaction_stream_status.rb +++ b/lib/plaid/models/transaction_stream_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transactions_category_rule.rb b/lib/plaid/models/transactions_category_rule.rb index 2ee4e7378..a434cf0d9 100644 --- a/lib/plaid/models/transactions_category_rule.rb +++ b/lib/plaid/models/transactions_category_rule.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transactions_enhance_get_request.rb b/lib/plaid/models/transactions_enhance_get_request.rb index e5c92e8d8..bd588a691 100644 --- a/lib/plaid/models/transactions_enhance_get_request.rb +++ b/lib/plaid/models/transactions_enhance_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transactions_enhance_get_response.rb b/lib/plaid/models/transactions_enhance_get_response.rb index 42d66317f..0b36f4799 100644 --- a/lib/plaid/models/transactions_enhance_get_response.rb +++ b/lib/plaid/models/transactions_enhance_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transactions_enrich_request.rb b/lib/plaid/models/transactions_enrich_request.rb index a52530111..75c44ff61 100644 --- a/lib/plaid/models/transactions_enrich_request.rb +++ b/lib/plaid/models/transactions_enrich_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transactions_enrich_request_options.rb b/lib/plaid/models/transactions_enrich_request_options.rb index 9a1b1b878..c6d3ee19e 100644 --- a/lib/plaid/models/transactions_enrich_request_options.rb +++ b/lib/plaid/models/transactions_enrich_request_options.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transactions_enrich_response.rb b/lib/plaid/models/transactions_enrich_response.rb index 72de176de..1bf79b27a 100644 --- a/lib/plaid/models/transactions_enrich_response.rb +++ b/lib/plaid/models/transactions_enrich_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transactions_get_request.rb b/lib/plaid/models/transactions_get_request.rb index 4b26e2dd8..cb951816d 100644 --- a/lib/plaid/models/transactions_get_request.rb +++ b/lib/plaid/models/transactions_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transactions_get_request_options.rb b/lib/plaid/models/transactions_get_request_options.rb index 25761e898..aec4e86fd 100644 --- a/lib/plaid/models/transactions_get_request_options.rb +++ b/lib/plaid/models/transactions_get_request_options.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -37,6 +37,9 @@ class TransactionsGetRequestOptions # Counterparties and extra merchant fields are now returned by default. attr_accessor :include_logo_and_counterparty_beta + # If Transactions has not already been added to the Item, this option controls the maximum number of days of transaction history Plaid will request from the financial institution. If Transactions has already been added to the Item, this field will have no effect. + attr_accessor :days_requested + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -46,7 +49,8 @@ def self.attribute_map :'include_original_description' => :'include_original_description', :'include_personal_finance_category_beta' => :'include_personal_finance_category_beta', :'include_personal_finance_category' => :'include_personal_finance_category', - :'include_logo_and_counterparty_beta' => :'include_logo_and_counterparty_beta' + :'include_logo_and_counterparty_beta' => :'include_logo_and_counterparty_beta', + :'days_requested' => :'days_requested' } end @@ -64,7 +68,8 @@ def self.openapi_types :'include_original_description' => :'Boolean', :'include_personal_finance_category_beta' => :'Boolean', :'include_personal_finance_category' => :'Boolean', - :'include_logo_and_counterparty_beta' => :'Boolean' + :'include_logo_and_counterparty_beta' => :'Boolean', + :'days_requested' => :'Integer' } end @@ -131,6 +136,12 @@ def initialize(attributes = {}) else self.include_logo_and_counterparty_beta = false end + + if attributes.key?(:'days_requested') + self.days_requested = attributes[:'days_requested'] + else + self.days_requested = 90 + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -151,6 +162,15 @@ def list_invalid_properties end + if !@days_requested.nil? && @days_requested > 730 + invalid_properties.push('invalid value for "days_requested", must be smaller than or equal to 730.') + end + + if !@days_requested.nil? && @days_requested < 1 + invalid_properties.push('invalid value for "days_requested", must be greater than or equal to 1.') + end + + invalid_properties end @@ -160,6 +180,8 @@ def valid? return false if !@count.nil? && @count > 500 return false if !@count.nil? && @count < 1 return false if !@offset.nil? && @offset < 0 + return false if !@days_requested.nil? && @days_requested > 730 + return false if !@days_requested.nil? && @days_requested < 1 true end @@ -189,6 +211,21 @@ def offset=(offset) @offset = offset end + # Custom attribute writer method with validation + # @param [Object] days_requested Value to be assigned + def days_requested=(days_requested) + if !days_requested.nil? && days_requested > 730 + fail ArgumentError, 'invalid value for "days_requested", must be smaller than or equal to 730.' + end + + if !days_requested.nil? && days_requested < 1 + fail ArgumentError, 'invalid value for "days_requested", must be greater than or equal to 1.' + end + + + @days_requested = days_requested + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) @@ -200,7 +237,8 @@ def ==(o) include_original_description == o.include_original_description && include_personal_finance_category_beta == o.include_personal_finance_category_beta && include_personal_finance_category == o.include_personal_finance_category && - include_logo_and_counterparty_beta == o.include_logo_and_counterparty_beta + include_logo_and_counterparty_beta == o.include_logo_and_counterparty_beta && + days_requested == o.days_requested end # @see the `==` method @@ -212,7 +250,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [account_ids, count, offset, include_original_description, include_personal_finance_category_beta, include_personal_finance_category, include_logo_and_counterparty_beta].hash + [account_ids, count, offset, include_original_description, include_personal_finance_category_beta, include_personal_finance_category, include_logo_and_counterparty_beta, days_requested].hash end # Builds the object from hash diff --git a/lib/plaid/models/transactions_get_response.rb b/lib/plaid/models/transactions_get_response.rb index c742f7b6a..217bb274a 100644 --- a/lib/plaid/models/transactions_get_response.rb +++ b/lib/plaid/models/transactions_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transactions_recurring_create_input.rb b/lib/plaid/models/transactions_recurring_create_input.rb index 0c2051007..83eebfffb 100644 --- a/lib/plaid/models/transactions_recurring_create_input.rb +++ b/lib/plaid/models/transactions_recurring_create_input.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transactions_recurring_create_request.rb b/lib/plaid/models/transactions_recurring_create_request.rb index ffe8e6753..9d6739f51 100644 --- a/lib/plaid/models/transactions_recurring_create_request.rb +++ b/lib/plaid/models/transactions_recurring_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transactions_recurring_create_response.rb b/lib/plaid/models/transactions_recurring_create_response.rb index 20623eefe..d0ac24e81 100644 --- a/lib/plaid/models/transactions_recurring_create_response.rb +++ b/lib/plaid/models/transactions_recurring_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transactions_recurring_get_request.rb b/lib/plaid/models/transactions_recurring_get_request.rb index 9d8b017d9..66286f127 100644 --- a/lib/plaid/models/transactions_recurring_get_request.rb +++ b/lib/plaid/models/transactions_recurring_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transactions_recurring_get_request_options.rb b/lib/plaid/models/transactions_recurring_get_request_options.rb index 6308ce174..9c3043f99 100644 --- a/lib/plaid/models/transactions_recurring_get_request_options.rb +++ b/lib/plaid/models/transactions_recurring_get_request_options.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transactions_recurring_get_response.rb b/lib/plaid/models/transactions_recurring_get_response.rb index 53fa10f92..fa792a249 100644 --- a/lib/plaid/models/transactions_recurring_get_response.rb +++ b/lib/plaid/models/transactions_recurring_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transactions_recurring_merge_input.rb b/lib/plaid/models/transactions_recurring_merge_input.rb index 36d5a9f02..7306c4a59 100644 --- a/lib/plaid/models/transactions_recurring_merge_input.rb +++ b/lib/plaid/models/transactions_recurring_merge_input.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transactions_recurring_merge_request.rb b/lib/plaid/models/transactions_recurring_merge_request.rb index ec3329c15..6019dc9b3 100644 --- a/lib/plaid/models/transactions_recurring_merge_request.rb +++ b/lib/plaid/models/transactions_recurring_merge_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transactions_recurring_merge_response.rb b/lib/plaid/models/transactions_recurring_merge_response.rb index 752707027..40696aa21 100644 --- a/lib/plaid/models/transactions_recurring_merge_response.rb +++ b/lib/plaid/models/transactions_recurring_merge_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transactions_recurring_update_input.rb b/lib/plaid/models/transactions_recurring_update_input.rb index 1602b20ea..2915dd5b1 100644 --- a/lib/plaid/models/transactions_recurring_update_input.rb +++ b/lib/plaid/models/transactions_recurring_update_input.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transactions_recurring_update_request.rb b/lib/plaid/models/transactions_recurring_update_request.rb index 8bb43ad7a..fb37ad976 100644 --- a/lib/plaid/models/transactions_recurring_update_request.rb +++ b/lib/plaid/models/transactions_recurring_update_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transactions_recurring_update_response.rb b/lib/plaid/models/transactions_recurring_update_response.rb index 63bfd039b..41e910f6c 100644 --- a/lib/plaid/models/transactions_recurring_update_response.rb +++ b/lib/plaid/models/transactions_recurring_update_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transactions_refresh_request.rb b/lib/plaid/models/transactions_refresh_request.rb index d43ea17db..43c7764ce 100644 --- a/lib/plaid/models/transactions_refresh_request.rb +++ b/lib/plaid/models/transactions_refresh_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transactions_refresh_response.rb b/lib/plaid/models/transactions_refresh_response.rb index 8fc174bfa..06acd70df 100644 --- a/lib/plaid/models/transactions_refresh_response.rb +++ b/lib/plaid/models/transactions_refresh_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transactions_removed_webhook.rb b/lib/plaid/models/transactions_removed_webhook.rb index 64e8f7460..402a8ddf0 100644 --- a/lib/plaid/models/transactions_removed_webhook.rb +++ b/lib/plaid/models/transactions_removed_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -32,6 +32,28 @@ class TransactionsRemovedWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/transactions_rule_details.rb b/lib/plaid/models/transactions_rule_details.rb index 91f60fa41..cc173014c 100644 --- a/lib/plaid/models/transactions_rule_details.rb +++ b/lib/plaid/models/transactions_rule_details.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -23,6 +23,28 @@ class TransactionsRuleDetails # For TRANSACTION_ID field, provide transaction_id. For NAME field, provide a string pattern. attr_accessor :query + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/transactions_rule_field.rb b/lib/plaid/models/transactions_rule_field.rb index dff24fdfa..4f8d6b411 100644 --- a/lib/plaid/models/transactions_rule_field.rb +++ b/lib/plaid/models/transactions_rule_field.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transactions_rule_type.rb b/lib/plaid/models/transactions_rule_type.rb index 69778a77e..dd5f430ff 100644 --- a/lib/plaid/models/transactions_rule_type.rb +++ b/lib/plaid/models/transactions_rule_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transactions_rules_create_request.rb b/lib/plaid/models/transactions_rules_create_request.rb index 8927f1779..fafdea744 100644 --- a/lib/plaid/models/transactions_rules_create_request.rb +++ b/lib/plaid/models/transactions_rules_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transactions_rules_create_response.rb b/lib/plaid/models/transactions_rules_create_response.rb index 65e509265..10ddeb7f4 100644 --- a/lib/plaid/models/transactions_rules_create_response.rb +++ b/lib/plaid/models/transactions_rules_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transactions_rules_list_request.rb b/lib/plaid/models/transactions_rules_list_request.rb index 27747df86..ead56d888 100644 --- a/lib/plaid/models/transactions_rules_list_request.rb +++ b/lib/plaid/models/transactions_rules_list_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transactions_rules_list_response.rb b/lib/plaid/models/transactions_rules_list_response.rb index 9ca2369da..b998f7f8c 100644 --- a/lib/plaid/models/transactions_rules_list_response.rb +++ b/lib/plaid/models/transactions_rules_list_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transactions_rules_remove_request.rb b/lib/plaid/models/transactions_rules_remove_request.rb index 17e120e1e..113c3c534 100644 --- a/lib/plaid/models/transactions_rules_remove_request.rb +++ b/lib/plaid/models/transactions_rules_remove_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transactions_rules_remove_response.rb b/lib/plaid/models/transactions_rules_remove_response.rb index 51e45352c..ad1a520dc 100644 --- a/lib/plaid/models/transactions_rules_remove_response.rb +++ b/lib/plaid/models/transactions_rules_remove_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transactions_sync_request.rb b/lib/plaid/models/transactions_sync_request.rb index 17a7e32e3..be5fdfb53 100644 --- a/lib/plaid/models/transactions_sync_request.rb +++ b/lib/plaid/models/transactions_sync_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transactions_sync_request_options.rb b/lib/plaid/models/transactions_sync_request_options.rb index 585808924..127cc5960 100644 --- a/lib/plaid/models/transactions_sync_request_options.rb +++ b/lib/plaid/models/transactions_sync_request_options.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -25,12 +25,16 @@ class TransactionsSyncRequestOptions # Counterparties and extra merchant fields are now returned by default. attr_accessor :include_logo_and_counterparty_beta + # If Transactions has not already been added to the Item, this option controls the maximum number of days of transaction history Plaid will request from the financial institution. If Transactions has already been added to the Item, this field will have no effect. + attr_accessor :days_requested + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'include_original_description' => :'include_original_description', :'include_personal_finance_category' => :'include_personal_finance_category', - :'include_logo_and_counterparty_beta' => :'include_logo_and_counterparty_beta' + :'include_logo_and_counterparty_beta' => :'include_logo_and_counterparty_beta', + :'days_requested' => :'days_requested' } end @@ -44,7 +48,8 @@ def self.openapi_types { :'include_original_description' => :'Boolean', :'include_personal_finance_category' => :'Boolean', - :'include_logo_and_counterparty_beta' => :'Boolean' + :'include_logo_and_counterparty_beta' => :'Boolean', + :'days_requested' => :'Integer' } end @@ -87,21 +92,53 @@ def initialize(attributes = {}) else self.include_logo_and_counterparty_beta = false end + + if attributes.key?(:'days_requested') + self.days_requested = attributes[:'days_requested'] + else + self.days_requested = 90 + end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new + if !@days_requested.nil? && @days_requested > 730 + invalid_properties.push('invalid value for "days_requested", must be smaller than or equal to 730.') + end + + if !@days_requested.nil? && @days_requested < 1 + invalid_properties.push('invalid value for "days_requested", must be greater than or equal to 1.') + end + + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + return false if !@days_requested.nil? && @days_requested > 730 + return false if !@days_requested.nil? && @days_requested < 1 true end + # Custom attribute writer method with validation + # @param [Object] days_requested Value to be assigned + def days_requested=(days_requested) + if !days_requested.nil? && days_requested > 730 + fail ArgumentError, 'invalid value for "days_requested", must be smaller than or equal to 730.' + end + + if !days_requested.nil? && days_requested < 1 + fail ArgumentError, 'invalid value for "days_requested", must be greater than or equal to 1.' + end + + + @days_requested = days_requested + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) @@ -109,7 +146,8 @@ def ==(o) self.class == o.class && include_original_description == o.include_original_description && include_personal_finance_category == o.include_personal_finance_category && - include_logo_and_counterparty_beta == o.include_logo_and_counterparty_beta + include_logo_and_counterparty_beta == o.include_logo_and_counterparty_beta && + days_requested == o.days_requested end # @see the `==` method @@ -121,7 +159,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [include_original_description, include_personal_finance_category, include_logo_and_counterparty_beta].hash + [include_original_description, include_personal_finance_category, include_logo_and_counterparty_beta, days_requested].hash end # Builds the object from hash diff --git a/lib/plaid/models/transactions_sync_response.rb b/lib/plaid/models/transactions_sync_response.rb index 5ce1e164e..d701b9e07 100644 --- a/lib/plaid/models/transactions_sync_response.rb +++ b/lib/plaid/models/transactions_sync_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transactions_user_insights_get_request.rb b/lib/plaid/models/transactions_user_insights_get_request.rb index 46a1bf985..81f0383ec 100644 --- a/lib/plaid/models/transactions_user_insights_get_request.rb +++ b/lib/plaid/models/transactions_user_insights_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transactions_user_insights_get_response.rb b/lib/plaid/models/transactions_user_insights_get_response.rb index 7ae72cf8d..f5d09d27c 100644 --- a/lib/plaid/models/transactions_user_insights_get_response.rb +++ b/lib/plaid/models/transactions_user_insights_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer.rb b/lib/plaid/models/transfer.rb index e933ed214..97a7c95a1 100644 --- a/lib/plaid/models/transfer.rb +++ b/lib/plaid/models/transfer.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -96,6 +96,28 @@ class Transfer # The trace identifier for the transfer based on its network. This will only be set after the transfer has posted. For `ach` or `same-day-ach` transfers, this is the ACH trace number. Currently, the field will remain null for transfers on other rails. attr_accessor :network_trace_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/transfer_ach_network.rb b/lib/plaid/models/transfer_ach_network.rb index 61652cea6..5f4585890 100644 --- a/lib/plaid/models/transfer_ach_network.rb +++ b/lib/plaid/models/transfer_ach_network.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_authorization.rb b/lib/plaid/models/transfer_authorization.rb index bd7c259ff..112cf6af4 100644 --- a/lib/plaid/models/transfer_authorization.rb +++ b/lib/plaid/models/transfer_authorization.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -34,6 +34,28 @@ class TransferAuthorization attr_accessor :proposed_transfer + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/transfer_authorization_create_request.rb b/lib/plaid/models/transfer_authorization_create_request.rb index a9a6a7071..f02fd17aa 100644 --- a/lib/plaid/models/transfer_authorization_create_request.rb +++ b/lib/plaid/models/transfer_authorization_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -73,6 +73,28 @@ class TransferAuthorizationCreateRequest # Plaid’s unique identifier for a test clock. This field may only be used when using `sandbox` environment. If provided, the `authorization` is created at the `virtual_time` on the provided test clock. attr_accessor :test_clock_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/transfer_authorization_create_response.rb b/lib/plaid/models/transfer_authorization_create_response.rb index 670aed9be..44eb31bbb 100644 --- a/lib/plaid/models/transfer_authorization_create_response.rb +++ b/lib/plaid/models/transfer_authorization_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_authorization_decision.rb b/lib/plaid/models/transfer_authorization_decision.rb index a9ecc3eca..fe7ea933e 100644 --- a/lib/plaid/models/transfer_authorization_decision.rb +++ b/lib/plaid/models/transfer_authorization_decision.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_authorization_decision_rationale.rb b/lib/plaid/models/transfer_authorization_decision_rationale.rb index c2984d142..180d05ace 100644 --- a/lib/plaid/models/transfer_authorization_decision_rationale.rb +++ b/lib/plaid/models/transfer_authorization_decision_rationale.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -21,6 +21,28 @@ class TransferAuthorizationDecisionRationale # A human-readable description of the code associated with a transfer approval or transfer decline. attr_accessor :description + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/transfer_authorization_decision_rationale_code.rb b/lib/plaid/models/transfer_authorization_decision_rationale_code.rb index d2549fc16..7259809ae 100644 --- a/lib/plaid/models/transfer_authorization_decision_rationale_code.rb +++ b/lib/plaid/models/transfer_authorization_decision_rationale_code.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_authorization_device.rb b/lib/plaid/models/transfer_authorization_device.rb index 22929caeb..01278bfec 100644 --- a/lib/plaid/models/transfer_authorization_device.rb +++ b/lib/plaid/models/transfer_authorization_device.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_authorization_guarantee_decision.rb b/lib/plaid/models/transfer_authorization_guarantee_decision.rb index 72defe5b9..ab7e49ea0 100644 --- a/lib/plaid/models/transfer_authorization_guarantee_decision.rb +++ b/lib/plaid/models/transfer_authorization_guarantee_decision.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_authorization_guarantee_decision_rationale.rb b/lib/plaid/models/transfer_authorization_guarantee_decision_rationale.rb index 4b345da5a..e580789cf 100644 --- a/lib/plaid/models/transfer_authorization_guarantee_decision_rationale.rb +++ b/lib/plaid/models/transfer_authorization_guarantee_decision_rationale.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -21,6 +21,28 @@ class TransferAuthorizationGuaranteeDecisionRationale # A human-readable description of why the transfer cannot be guaranteed. attr_accessor :description + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/transfer_authorization_guarantee_decision_rationale_code.rb b/lib/plaid/models/transfer_authorization_guarantee_decision_rationale_code.rb index bbadec924..d2822ab3b 100644 --- a/lib/plaid/models/transfer_authorization_guarantee_decision_rationale_code.rb +++ b/lib/plaid/models/transfer_authorization_guarantee_decision_rationale_code.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_authorization_payment_risk.rb b/lib/plaid/models/transfer_authorization_payment_risk.rb index 9042000e0..ed798b547 100644 --- a/lib/plaid/models/transfer_authorization_payment_risk.rb +++ b/lib/plaid/models/transfer_authorization_payment_risk.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -27,6 +27,28 @@ class TransferAuthorizationPaymentRisk # If bank information was not available to be used in the Signal model, this array contains warnings describing why bank data is missing. If you want to receive an API error instead of Signal scores in the case of missing bank data, file a support ticket or contact your Plaid account manager. attr_accessor :warnings + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/transfer_authorization_proposed_transfer.rb b/lib/plaid/models/transfer_authorization_proposed_transfer.rb index 937e2b1bf..66568eb57 100644 --- a/lib/plaid/models/transfer_authorization_proposed_transfer.rb +++ b/lib/plaid/models/transfer_authorization_proposed_transfer.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -45,6 +45,28 @@ class TransferAuthorizationProposedTransfer attr_accessor :credit_funds_source + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/transfer_authorization_risk_level.rb b/lib/plaid/models/transfer_authorization_risk_level.rb index d62cae5e2..fbd3480fe 100644 --- a/lib/plaid/models/transfer_authorization_risk_level.rb +++ b/lib/plaid/models/transfer_authorization_risk_level.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_authorization_user_in_request.rb b/lib/plaid/models/transfer_authorization_user_in_request.rb index 0d72f4129..b3b89824b 100644 --- a/lib/plaid/models/transfer_authorization_user_in_request.rb +++ b/lib/plaid/models/transfer_authorization_user_in_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_balance.rb b/lib/plaid/models/transfer_balance.rb index ec135dc5a..99b59fffb 100644 --- a/lib/plaid/models/transfer_balance.rb +++ b/lib/plaid/models/transfer_balance.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -24,6 +24,28 @@ class TransferBalance attr_accessor :type + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/transfer_balance_get_request.rb b/lib/plaid/models/transfer_balance_get_request.rb index eee023bc0..ebb072c41 100644 --- a/lib/plaid/models/transfer_balance_get_request.rb +++ b/lib/plaid/models/transfer_balance_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -27,6 +27,28 @@ class TransferBalanceGetRequest attr_accessor :type + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/transfer_balance_get_response.rb b/lib/plaid/models/transfer_balance_get_response.rb index d4aa984bb..515308c61 100644 --- a/lib/plaid/models/transfer_balance_get_response.rb +++ b/lib/plaid/models/transfer_balance_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_balance_type.rb b/lib/plaid/models/transfer_balance_type.rb index 640a9a09e..db6406fa7 100644 --- a/lib/plaid/models/transfer_balance_type.rb +++ b/lib/plaid/models/transfer_balance_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_cancel_request.rb b/lib/plaid/models/transfer_cancel_request.rb index ceec5db5b..667d6de69 100644 --- a/lib/plaid/models/transfer_cancel_request.rb +++ b/lib/plaid/models/transfer_cancel_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_cancel_response.rb b/lib/plaid/models/transfer_cancel_response.rb index 07e07986d..bda72bb83 100644 --- a/lib/plaid/models/transfer_cancel_response.rb +++ b/lib/plaid/models/transfer_cancel_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_capabilities_get_request.rb b/lib/plaid/models/transfer_capabilities_get_request.rb index 9559520b0..a78f536b1 100644 --- a/lib/plaid/models/transfer_capabilities_get_request.rb +++ b/lib/plaid/models/transfer_capabilities_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_capabilities_get_response.rb b/lib/plaid/models/transfer_capabilities_get_response.rb index 71def7e2f..ba5cd98eb 100644 --- a/lib/plaid/models/transfer_capabilities_get_response.rb +++ b/lib/plaid/models/transfer_capabilities_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_capabilities_get_rtp.rb b/lib/plaid/models/transfer_capabilities_get_rtp.rb index e94dad645..1248c6fae 100644 --- a/lib/plaid/models/transfer_capabilities_get_rtp.rb +++ b/lib/plaid/models/transfer_capabilities_get_rtp.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_configuration_get_request.rb b/lib/plaid/models/transfer_configuration_get_request.rb index e6b140a87..32062404f 100644 --- a/lib/plaid/models/transfer_configuration_get_request.rb +++ b/lib/plaid/models/transfer_configuration_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_configuration_get_response.rb b/lib/plaid/models/transfer_configuration_get_response.rb index e8090d5fb..6a3a2ad21 100644 --- a/lib/plaid/models/transfer_configuration_get_response.rb +++ b/lib/plaid/models/transfer_configuration_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_create_request.rb b/lib/plaid/models/transfer_create_request.rb index 7d2683838..cb8995ed7 100644 --- a/lib/plaid/models/transfer_create_request.rb +++ b/lib/plaid/models/transfer_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_create_response.rb b/lib/plaid/models/transfer_create_response.rb index 958d2dd7d..273a3ae61 100644 --- a/lib/plaid/models/transfer_create_response.rb +++ b/lib/plaid/models/transfer_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_credit_funds_source.rb b/lib/plaid/models/transfer_credit_funds_source.rb index 755b3b884..dbdb68a03 100644 --- a/lib/plaid/models/transfer_credit_funds_source.rb +++ b/lib/plaid/models/transfer_credit_funds_source.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_credit_usage_configuration.rb b/lib/plaid/models/transfer_credit_usage_configuration.rb index 0a3fb5df3..18a2880c6 100644 --- a/lib/plaid/models/transfer_credit_usage_configuration.rb +++ b/lib/plaid/models/transfer_credit_usage_configuration.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -30,6 +30,28 @@ class TransferCreditUsageConfiguration # Specifies the expected use cases for the originator’s credit transfers. This should be a list that contains one or more of the following codes: `\"ccd\"` - Corporate Credit or Debit - fund transfer between two corporate bank accounts `\"ppd\"` - Prearranged Payment or Deposit - the transfer is part of a pre-existing relationship with a consumer, e.g. bill payment `\"web\"` - A credit Entry initiated by or on behalf of a holder of a Consumer Account that is intended for a Consumer Account of a Receiver attr_accessor :sec_codes + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/transfer_debit_usage_configuration.rb b/lib/plaid/models/transfer_debit_usage_configuration.rb index 8fbfdbaea..487c64989 100644 --- a/lib/plaid/models/transfer_debit_usage_configuration.rb +++ b/lib/plaid/models/transfer_debit_usage_configuration.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -30,6 +30,28 @@ class TransferDebitUsageConfiguration # Specifies the expected use cases for the originator’s debit transfers. This should be a list that contains one or more of the following codes: `\"ccd\"` - Corporate Credit or Debit - fund transfer between two corporate bank accounts `\"ppd\"` - Prearranged Payment or Deposit - the transfer is part of a pre-existing relationship with a consumer, eg. bill payment `\"tel\"` - Telephone-Initiated Entry `\"web\"` - Internet-Initiated Entry - debits from a consumer’s account where their authorization is obtained over the Internet attr_accessor :sec_codes + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/transfer_device.rb b/lib/plaid/models/transfer_device.rb index 2009bf2d9..3ad1651ba 100644 --- a/lib/plaid/models/transfer_device.rb +++ b/lib/plaid/models/transfer_device.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_diligence_document_upload_request.rb b/lib/plaid/models/transfer_diligence_document_upload_request.rb index d3375e84f..23e87677f 100644 --- a/lib/plaid/models/transfer_diligence_document_upload_request.rb +++ b/lib/plaid/models/transfer_diligence_document_upload_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -24,6 +24,28 @@ class TransferDiligenceDocumentUploadRequest attr_accessor :purpose + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/transfer_diligence_document_upload_response.rb b/lib/plaid/models/transfer_diligence_document_upload_response.rb index 9b3b9d282..ca6507d94 100644 --- a/lib/plaid/models/transfer_diligence_document_upload_response.rb +++ b/lib/plaid/models/transfer_diligence_document_upload_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_diligence_status.rb b/lib/plaid/models/transfer_diligence_status.rb index 520c2ae5b..f7195192f 100644 --- a/lib/plaid/models/transfer_diligence_status.rb +++ b/lib/plaid/models/transfer_diligence_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_diligence_submit_request.rb b/lib/plaid/models/transfer_diligence_submit_request.rb index 86eaa9d2a..fff5713c0 100644 --- a/lib/plaid/models/transfer_diligence_submit_request.rb +++ b/lib/plaid/models/transfer_diligence_submit_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_diligence_submit_response.rb b/lib/plaid/models/transfer_diligence_submit_response.rb index cc52ed3b1..af577fb57 100644 --- a/lib/plaid/models/transfer_diligence_submit_response.rb +++ b/lib/plaid/models/transfer_diligence_submit_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_document_purpose.rb b/lib/plaid/models/transfer_document_purpose.rb index cfbb9df2b..97b99611d 100644 --- a/lib/plaid/models/transfer_document_purpose.rb +++ b/lib/plaid/models/transfer_document_purpose.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_event.rb b/lib/plaid/models/transfer_event.rb index a4ff2f248..332e517b3 100644 --- a/lib/plaid/models/transfer_event.rb +++ b/lib/plaid/models/transfer_event.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -55,6 +55,28 @@ class TransferEvent # The Plaid client ID that is the originator of the transfer that this event applies to. Only present if the transfer was created on behalf of another client as a third-party sender (TPS). attr_accessor :originator_client_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/transfer_event_list_request.rb b/lib/plaid/models/transfer_event_list_request.rb index 1244e1029..b18dbb753 100644 --- a/lib/plaid/models/transfer_event_list_request.rb +++ b/lib/plaid/models/transfer_event_list_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -57,6 +57,28 @@ class TransferEventListRequest # Filter transfer events to only those with the specified `funding_account_id`. attr_accessor :funding_account_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/transfer_event_list_response.rb b/lib/plaid/models/transfer_event_list_response.rb index 6f803b406..55bc5f3cd 100644 --- a/lib/plaid/models/transfer_event_list_response.rb +++ b/lib/plaid/models/transfer_event_list_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_event_list_transfer_type.rb b/lib/plaid/models/transfer_event_list_transfer_type.rb index 643bd7939..b7867d2d4 100644 --- a/lib/plaid/models/transfer_event_list_transfer_type.rb +++ b/lib/plaid/models/transfer_event_list_transfer_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_event_sync_request.rb b/lib/plaid/models/transfer_event_sync_request.rb index 4ecb57dce..14a2ea4c4 100644 --- a/lib/plaid/models/transfer_event_sync_request.rb +++ b/lib/plaid/models/transfer_event_sync_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_event_sync_response.rb b/lib/plaid/models/transfer_event_sync_response.rb index 22a0ff039..527d310ea 100644 --- a/lib/plaid/models/transfer_event_sync_response.rb +++ b/lib/plaid/models/transfer_event_sync_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_event_type.rb b/lib/plaid/models/transfer_event_type.rb index a0a47b4ec..722260faa 100644 --- a/lib/plaid/models/transfer_event_type.rb +++ b/lib/plaid/models/transfer_event_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_events_update_webhook.rb b/lib/plaid/models/transfer_events_update_webhook.rb index 9f7cf308e..18c3e7bdc 100644 --- a/lib/plaid/models/transfer_events_update_webhook.rb +++ b/lib/plaid/models/transfer_events_update_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -24,6 +24,28 @@ class TransferEventsUpdateWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/transfer_expected_sweep_settlement_schedule_item.rb b/lib/plaid/models/transfer_expected_sweep_settlement_schedule_item.rb index ba1b51005..53e17c49c 100644 --- a/lib/plaid/models/transfer_expected_sweep_settlement_schedule_item.rb +++ b/lib/plaid/models/transfer_expected_sweep_settlement_schedule_item.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_failure.rb b/lib/plaid/models/transfer_failure.rb index 17d1f227c..a420033ce 100644 --- a/lib/plaid/models/transfer_failure.rb +++ b/lib/plaid/models/transfer_failure.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_funding_account.rb b/lib/plaid/models/transfer_funding_account.rb index aa5952d9a..0e37a4c78 100644 --- a/lib/plaid/models/transfer_funding_account.rb +++ b/lib/plaid/models/transfer_funding_account.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_get_request.rb b/lib/plaid/models/transfer_get_request.rb index d45982360..42a2f184d 100644 --- a/lib/plaid/models/transfer_get_request.rb +++ b/lib/plaid/models/transfer_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_get_response.rb b/lib/plaid/models/transfer_get_response.rb index b1365fe18..7e55b3c13 100644 --- a/lib/plaid/models/transfer_get_response.rb +++ b/lib/plaid/models/transfer_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_intent_authorization_decision.rb b/lib/plaid/models/transfer_intent_authorization_decision.rb index 9bcf43fe4..78537aa2d 100644 --- a/lib/plaid/models/transfer_intent_authorization_decision.rb +++ b/lib/plaid/models/transfer_intent_authorization_decision.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_intent_create.rb b/lib/plaid/models/transfer_intent_create.rb index 8f97931f8..1660e5c32 100644 --- a/lib/plaid/models/transfer_intent_create.rb +++ b/lib/plaid/models/transfer_intent_create.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -56,6 +56,28 @@ class TransferIntentCreate # When `true`, the transfer requires a `GUARANTEED` decision by Plaid to proceed (Guarantee customers only). attr_accessor :require_guarantee + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/transfer_intent_create_mode.rb b/lib/plaid/models/transfer_intent_create_mode.rb index 04ecd846d..f3071f710 100644 --- a/lib/plaid/models/transfer_intent_create_mode.rb +++ b/lib/plaid/models/transfer_intent_create_mode.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_intent_create_network.rb b/lib/plaid/models/transfer_intent_create_network.rb index b0415a46a..22df7e950 100644 --- a/lib/plaid/models/transfer_intent_create_network.rb +++ b/lib/plaid/models/transfer_intent_create_network.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_intent_create_request.rb b/lib/plaid/models/transfer_intent_create_request.rb index 7b75146d5..65c8ca967 100644 --- a/lib/plaid/models/transfer_intent_create_request.rb +++ b/lib/plaid/models/transfer_intent_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -54,6 +54,28 @@ class TransferIntentCreateRequest # When `true`, the transfer requires a `GUARANTEED` decision by Plaid to proceed (Guarantee customers only). attr_accessor :require_guarantee + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/transfer_intent_create_response.rb b/lib/plaid/models/transfer_intent_create_response.rb index 65ebe0fb0..45fdd72fc 100644 --- a/lib/plaid/models/transfer_intent_create_response.rb +++ b/lib/plaid/models/transfer_intent_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_intent_get.rb b/lib/plaid/models/transfer_intent_get.rb index 0c243d53c..abefae0dd 100644 --- a/lib/plaid/models/transfer_intent_get.rb +++ b/lib/plaid/models/transfer_intent_get.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -69,6 +69,28 @@ class TransferIntentGet attr_accessor :guarantee_decision_rationale + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/transfer_intent_get_failure_reason.rb b/lib/plaid/models/transfer_intent_get_failure_reason.rb index 14203b3da..670d133da 100644 --- a/lib/plaid/models/transfer_intent_get_failure_reason.rb +++ b/lib/plaid/models/transfer_intent_get_failure_reason.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_intent_get_request.rb b/lib/plaid/models/transfer_intent_get_request.rb index d55543295..910e3ae89 100644 --- a/lib/plaid/models/transfer_intent_get_request.rb +++ b/lib/plaid/models/transfer_intent_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_intent_get_response.rb b/lib/plaid/models/transfer_intent_get_response.rb index 31d199107..4a2077063 100644 --- a/lib/plaid/models/transfer_intent_get_response.rb +++ b/lib/plaid/models/transfer_intent_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_intent_status.rb b/lib/plaid/models/transfer_intent_status.rb index 3daf4fda4..b7c512299 100644 --- a/lib/plaid/models/transfer_intent_status.rb +++ b/lib/plaid/models/transfer_intent_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_ledger_balance.rb b/lib/plaid/models/transfer_ledger_balance.rb index 8fcc5b13a..6490b3045 100644 --- a/lib/plaid/models/transfer_ledger_balance.rb +++ b/lib/plaid/models/transfer_ledger_balance.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_ledger_deposit_request.rb b/lib/plaid/models/transfer_ledger_deposit_request.rb index 7a5fa8394..fbf0e6273 100644 --- a/lib/plaid/models/transfer_ledger_deposit_request.rb +++ b/lib/plaid/models/transfer_ledger_deposit_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -39,6 +39,28 @@ class TransferLedgerDepositRequest attr_accessor :network + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/transfer_ledger_deposit_response.rb b/lib/plaid/models/transfer_ledger_deposit_response.rb index 744364ac1..0949a5bfc 100644 --- a/lib/plaid/models/transfer_ledger_deposit_response.rb +++ b/lib/plaid/models/transfer_ledger_deposit_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_ledger_distribute_request.rb b/lib/plaid/models/transfer_ledger_distribute_request.rb index 41591018b..299a89472 100644 --- a/lib/plaid/models/transfer_ledger_distribute_request.rb +++ b/lib/plaid/models/transfer_ledger_distribute_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_ledger_distribute_response.rb b/lib/plaid/models/transfer_ledger_distribute_response.rb index 93e1d1f47..567266506 100644 --- a/lib/plaid/models/transfer_ledger_distribute_response.rb +++ b/lib/plaid/models/transfer_ledger_distribute_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_ledger_get_request.rb b/lib/plaid/models/transfer_ledger_get_request.rb index 93abfb655..5b135f550 100644 --- a/lib/plaid/models/transfer_ledger_get_request.rb +++ b/lib/plaid/models/transfer_ledger_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_ledger_get_response.rb b/lib/plaid/models/transfer_ledger_get_response.rb index 8b1579b53..3b8eae0af 100644 --- a/lib/plaid/models/transfer_ledger_get_response.rb +++ b/lib/plaid/models/transfer_ledger_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_ledger_sweep_simulate_event_type.rb b/lib/plaid/models/transfer_ledger_sweep_simulate_event_type.rb index cd5910939..f417adeac 100644 --- a/lib/plaid/models/transfer_ledger_sweep_simulate_event_type.rb +++ b/lib/plaid/models/transfer_ledger_sweep_simulate_event_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_ledger_withdraw_request.rb b/lib/plaid/models/transfer_ledger_withdraw_request.rb index 748cae969..b60b0289d 100644 --- a/lib/plaid/models/transfer_ledger_withdraw_request.rb +++ b/lib/plaid/models/transfer_ledger_withdraw_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -39,6 +39,28 @@ class TransferLedgerWithdrawRequest attr_accessor :network + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/transfer_ledger_withdraw_response.rb b/lib/plaid/models/transfer_ledger_withdraw_response.rb index 94ad7435f..3f8cef94a 100644 --- a/lib/plaid/models/transfer_ledger_withdraw_response.rb +++ b/lib/plaid/models/transfer_ledger_withdraw_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_list_request.rb b/lib/plaid/models/transfer_list_request.rb index 43c11be3e..88ce20a62 100644 --- a/lib/plaid/models/transfer_list_request.rb +++ b/lib/plaid/models/transfer_list_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_list_response.rb b/lib/plaid/models/transfer_list_response.rb index 80b090f3b..eaaf8baaa 100644 --- a/lib/plaid/models/transfer_list_response.rb +++ b/lib/plaid/models/transfer_list_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_metrics_get_request.rb b/lib/plaid/models/transfer_metrics_get_request.rb index fa0424f31..f858eb58b 100644 --- a/lib/plaid/models/transfer_metrics_get_request.rb +++ b/lib/plaid/models/transfer_metrics_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_metrics_get_response.rb b/lib/plaid/models/transfer_metrics_get_response.rb index 5e255ac54..bd5e5abe0 100644 --- a/lib/plaid/models/transfer_metrics_get_response.rb +++ b/lib/plaid/models/transfer_metrics_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_migrate_account_request.rb b/lib/plaid/models/transfer_migrate_account_request.rb index d50cb3775..17247d9d0 100644 --- a/lib/plaid/models/transfer_migrate_account_request.rb +++ b/lib/plaid/models/transfer_migrate_account_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_migrate_account_response.rb b/lib/plaid/models/transfer_migrate_account_response.rb index 678d8ba91..d73b948e5 100644 --- a/lib/plaid/models/transfer_migrate_account_response.rb +++ b/lib/plaid/models/transfer_migrate_account_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_network.rb b/lib/plaid/models/transfer_network.rb index 90005ba88..8d69b6218 100644 --- a/lib/plaid/models/transfer_network.rb +++ b/lib/plaid/models/transfer_network.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_originator_address.rb b/lib/plaid/models/transfer_originator_address.rb index 213ab9f64..e03fab483 100644 --- a/lib/plaid/models/transfer_originator_address.rb +++ b/lib/plaid/models/transfer_originator_address.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_originator_create_request.rb b/lib/plaid/models/transfer_originator_create_request.rb index 29fbaa251..fcb79f4e9 100644 --- a/lib/plaid/models/transfer_originator_create_request.rb +++ b/lib/plaid/models/transfer_originator_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_originator_create_response.rb b/lib/plaid/models/transfer_originator_create_response.rb index 1a0b55080..c2865d387 100644 --- a/lib/plaid/models/transfer_originator_create_response.rb +++ b/lib/plaid/models/transfer_originator_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_originator_diligence.rb b/lib/plaid/models/transfer_originator_diligence.rb index 3731e446d..2b5651ff3 100644 --- a/lib/plaid/models/transfer_originator_diligence.rb +++ b/lib/plaid/models/transfer_originator_diligence.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_originator_funding_account_update_request.rb b/lib/plaid/models/transfer_originator_funding_account_update_request.rb index cc2ca247c..2e6f7b5bc 100644 --- a/lib/plaid/models/transfer_originator_funding_account_update_request.rb +++ b/lib/plaid/models/transfer_originator_funding_account_update_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_originator_funding_account_update_response.rb b/lib/plaid/models/transfer_originator_funding_account_update_response.rb index 450df4e33..ea9448b5c 100644 --- a/lib/plaid/models/transfer_originator_funding_account_update_response.rb +++ b/lib/plaid/models/transfer_originator_funding_account_update_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_originator_get_request.rb b/lib/plaid/models/transfer_originator_get_request.rb index 4ae0bd19b..957cdc505 100644 --- a/lib/plaid/models/transfer_originator_get_request.rb +++ b/lib/plaid/models/transfer_originator_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_originator_get_response.rb b/lib/plaid/models/transfer_originator_get_response.rb index 26f504a99..17a013759 100644 --- a/lib/plaid/models/transfer_originator_get_response.rb +++ b/lib/plaid/models/transfer_originator_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_originator_list_request.rb b/lib/plaid/models/transfer_originator_list_request.rb index 86e7262c1..895f5bcbf 100644 --- a/lib/plaid/models/transfer_originator_list_request.rb +++ b/lib/plaid/models/transfer_originator_list_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_originator_list_response.rb b/lib/plaid/models/transfer_originator_list_response.rb index 8703b695a..eb9abef88 100644 --- a/lib/plaid/models/transfer_originator_list_response.rb +++ b/lib/plaid/models/transfer_originator_list_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_questionnaire_create_request.rb b/lib/plaid/models/transfer_questionnaire_create_request.rb index 32c74025f..20ce9aab8 100644 --- a/lib/plaid/models/transfer_questionnaire_create_request.rb +++ b/lib/plaid/models/transfer_questionnaire_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_questionnaire_create_response.rb b/lib/plaid/models/transfer_questionnaire_create_response.rb index 601926459..0a45dd19c 100644 --- a/lib/plaid/models/transfer_questionnaire_create_response.rb +++ b/lib/plaid/models/transfer_questionnaire_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_recurring_cancel_request.rb b/lib/plaid/models/transfer_recurring_cancel_request.rb index 5614b7e8d..3e7132221 100644 --- a/lib/plaid/models/transfer_recurring_cancel_request.rb +++ b/lib/plaid/models/transfer_recurring_cancel_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_recurring_cancel_response.rb b/lib/plaid/models/transfer_recurring_cancel_response.rb index ec92245a2..f0f49a842 100644 --- a/lib/plaid/models/transfer_recurring_cancel_response.rb +++ b/lib/plaid/models/transfer_recurring_cancel_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_recurring_create_request.rb b/lib/plaid/models/transfer_recurring_create_request.rb index 9e8af0b63..8126b7c98 100644 --- a/lib/plaid/models/transfer_recurring_create_request.rb +++ b/lib/plaid/models/transfer_recurring_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -61,6 +61,28 @@ class TransferRecurringCreateRequest attr_accessor :device + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/transfer_recurring_create_response.rb b/lib/plaid/models/transfer_recurring_create_response.rb index 7719b0e19..4e4747368 100644 --- a/lib/plaid/models/transfer_recurring_create_response.rb +++ b/lib/plaid/models/transfer_recurring_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -25,6 +25,28 @@ class TransferRecurringCreateResponse # A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive. attr_accessor :request_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/transfer_recurring_get_request.rb b/lib/plaid/models/transfer_recurring_get_request.rb index 4d3e2f9bc..8ae6cce83 100644 --- a/lib/plaid/models/transfer_recurring_get_request.rb +++ b/lib/plaid/models/transfer_recurring_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_recurring_get_response.rb b/lib/plaid/models/transfer_recurring_get_response.rb index 65ec2aacf..1faf85bdc 100644 --- a/lib/plaid/models/transfer_recurring_get_response.rb +++ b/lib/plaid/models/transfer_recurring_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_recurring_list_request.rb b/lib/plaid/models/transfer_recurring_list_request.rb index 02e7c0cc0..a6d66ed99 100644 --- a/lib/plaid/models/transfer_recurring_list_request.rb +++ b/lib/plaid/models/transfer_recurring_list_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_recurring_list_response.rb b/lib/plaid/models/transfer_recurring_list_response.rb index b82c759a7..aafb0c8fc 100644 --- a/lib/plaid/models/transfer_recurring_list_response.rb +++ b/lib/plaid/models/transfer_recurring_list_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_recurring_schedule.rb b/lib/plaid/models/transfer_recurring_schedule.rb index 81a279869..48c686162 100644 --- a/lib/plaid/models/transfer_recurring_schedule.rb +++ b/lib/plaid/models/transfer_recurring_schedule.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -30,6 +30,28 @@ class TransferRecurringSchedule # A date in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format (YYYY-MM-DD). The recurring transfer will end on the last `interval_execution_day` on or before the `end_date`. If the `interval_execution_day` between the start date and the end date (inclusive) is also the same day that `/transfer/recurring/create` was called, the bank *may* make a payment on that day, but it is not guaranteed to do so. attr_accessor :end_date + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/transfer_recurring_status.rb b/lib/plaid/models/transfer_recurring_status.rb index a7ca38da4..e30ccc634 100644 --- a/lib/plaid/models/transfer_recurring_status.rb +++ b/lib/plaid/models/transfer_recurring_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_refund.rb b/lib/plaid/models/transfer_refund.rb index e767ad396..346cfb154 100644 --- a/lib/plaid/models/transfer_refund.rb +++ b/lib/plaid/models/transfer_refund.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -35,6 +35,28 @@ class TransferRefund # The trace identifier for the transfer based on its network. This will only be set after the transfer has posted. For `ach` or `same-day-ach` transfers, this is the ACH trace number. Currently, the field will remain null for transfers on other rails. attr_accessor :network_trace_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/transfer_refund_cancel_request.rb b/lib/plaid/models/transfer_refund_cancel_request.rb index 9d5b05eab..86b0e2ec9 100644 --- a/lib/plaid/models/transfer_refund_cancel_request.rb +++ b/lib/plaid/models/transfer_refund_cancel_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_refund_cancel_response.rb b/lib/plaid/models/transfer_refund_cancel_response.rb index b7cee83f8..81bf719ba 100644 --- a/lib/plaid/models/transfer_refund_cancel_response.rb +++ b/lib/plaid/models/transfer_refund_cancel_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_refund_create_request.rb b/lib/plaid/models/transfer_refund_create_request.rb index 64c2d1115..44918b4f2 100644 --- a/lib/plaid/models/transfer_refund_create_request.rb +++ b/lib/plaid/models/transfer_refund_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_refund_create_response.rb b/lib/plaid/models/transfer_refund_create_response.rb index ab896dc2f..a0172812b 100644 --- a/lib/plaid/models/transfer_refund_create_response.rb +++ b/lib/plaid/models/transfer_refund_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_refund_failure.rb b/lib/plaid/models/transfer_refund_failure.rb index 711568054..52947009e 100644 --- a/lib/plaid/models/transfer_refund_failure.rb +++ b/lib/plaid/models/transfer_refund_failure.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_refund_get_request.rb b/lib/plaid/models/transfer_refund_get_request.rb index 321b5bf23..aff62b6c4 100644 --- a/lib/plaid/models/transfer_refund_get_request.rb +++ b/lib/plaid/models/transfer_refund_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_refund_get_response.rb b/lib/plaid/models/transfer_refund_get_response.rb index e9d8cd49c..bc581ca34 100644 --- a/lib/plaid/models/transfer_refund_get_response.rb +++ b/lib/plaid/models/transfer_refund_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_refund_status.rb b/lib/plaid/models/transfer_refund_status.rb index 400493098..8fe743b49 100644 --- a/lib/plaid/models/transfer_refund_status.rb +++ b/lib/plaid/models/transfer_refund_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_repayment.rb b/lib/plaid/models/transfer_repayment.rb index 6db080ce8..39012397b 100644 --- a/lib/plaid/models/transfer_repayment.rb +++ b/lib/plaid/models/transfer_repayment.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_repayment_list_request.rb b/lib/plaid/models/transfer_repayment_list_request.rb index ab30563ba..d08eb3b8f 100644 --- a/lib/plaid/models/transfer_repayment_list_request.rb +++ b/lib/plaid/models/transfer_repayment_list_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_repayment_list_response.rb b/lib/plaid/models/transfer_repayment_list_response.rb index 02732a3e3..d398a9fe2 100644 --- a/lib/plaid/models/transfer_repayment_list_response.rb +++ b/lib/plaid/models/transfer_repayment_list_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_repayment_return.rb b/lib/plaid/models/transfer_repayment_return.rb index 9a9fb719e..6060c7c93 100644 --- a/lib/plaid/models/transfer_repayment_return.rb +++ b/lib/plaid/models/transfer_repayment_return.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_repayment_return_list_request.rb b/lib/plaid/models/transfer_repayment_return_list_request.rb index f1d8e9c65..fa0a7f4f4 100644 --- a/lib/plaid/models/transfer_repayment_return_list_request.rb +++ b/lib/plaid/models/transfer_repayment_return_list_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_repayment_return_list_response.rb b/lib/plaid/models/transfer_repayment_return_list_response.rb index 9fcdf93da..e65d6d1b4 100644 --- a/lib/plaid/models/transfer_repayment_return_list_response.rb +++ b/lib/plaid/models/transfer_repayment_return_list_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_schedule_interval_unit.rb b/lib/plaid/models/transfer_schedule_interval_unit.rb index 88fa5378a..6c7c0bec0 100644 --- a/lib/plaid/models/transfer_schedule_interval_unit.rb +++ b/lib/plaid/models/transfer_schedule_interval_unit.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_status.rb b/lib/plaid/models/transfer_status.rb index bc6d165ff..df93e3a42 100644 --- a/lib/plaid/models/transfer_status.rb +++ b/lib/plaid/models/transfer_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_sweep.rb b/lib/plaid/models/transfer_sweep.rb index 70dbc4f59..ce078ca0b 100644 --- a/lib/plaid/models/transfer_sweep.rb +++ b/lib/plaid/models/transfer_sweep.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -44,6 +44,28 @@ class TransferSweep # The trace identifier for the transfer based on its network. This will only be set after the transfer has posted. For `ach` or `same-day-ach` transfers, this is the ACH trace number. Currently, the field will remain null for transfers on other rails. attr_accessor :network_trace_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/transfer_sweep_get_request.rb b/lib/plaid/models/transfer_sweep_get_request.rb index 8c669d067..8af7a7794 100644 --- a/lib/plaid/models/transfer_sweep_get_request.rb +++ b/lib/plaid/models/transfer_sweep_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_sweep_get_response.rb b/lib/plaid/models/transfer_sweep_get_response.rb index ef4c7c733..7b033ef21 100644 --- a/lib/plaid/models/transfer_sweep_get_response.rb +++ b/lib/plaid/models/transfer_sweep_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_sweep_list_request.rb b/lib/plaid/models/transfer_sweep_list_request.rb index 8f39525be..0b50d3466 100644 --- a/lib/plaid/models/transfer_sweep_list_request.rb +++ b/lib/plaid/models/transfer_sweep_list_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -50,6 +50,28 @@ class TransferSweepListRequest attr_accessor :trigger + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/transfer_sweep_list_response.rb b/lib/plaid/models/transfer_sweep_list_response.rb index 125c30647..8749752f5 100644 --- a/lib/plaid/models/transfer_sweep_list_response.rb +++ b/lib/plaid/models/transfer_sweep_list_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_sweep_status.rb b/lib/plaid/models/transfer_sweep_status.rb index 5089c9aca..81dd4bbd8 100644 --- a/lib/plaid/models/transfer_sweep_status.rb +++ b/lib/plaid/models/transfer_sweep_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_test_clock.rb b/lib/plaid/models/transfer_test_clock.rb index 34fda05ad..14c78f265 100644 --- a/lib/plaid/models/transfer_test_clock.rb +++ b/lib/plaid/models/transfer_test_clock.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_type.rb b/lib/plaid/models/transfer_type.rb index a44475845..4567b4649 100644 --- a/lib/plaid/models/transfer_type.rb +++ b/lib/plaid/models/transfer_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_user_address_in_request.rb b/lib/plaid/models/transfer_user_address_in_request.rb index 0946a5003..122873240 100644 --- a/lib/plaid/models/transfer_user_address_in_request.rb +++ b/lib/plaid/models/transfer_user_address_in_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_user_address_in_response.rb b/lib/plaid/models/transfer_user_address_in_response.rb index 4320f67bf..51ce05014 100644 --- a/lib/plaid/models/transfer_user_address_in_response.rb +++ b/lib/plaid/models/transfer_user_address_in_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_user_in_request.rb b/lib/plaid/models/transfer_user_in_request.rb index 7e81d4396..fb7b10e15 100644 --- a/lib/plaid/models/transfer_user_in_request.rb +++ b/lib/plaid/models/transfer_user_in_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_user_in_request_deprecated.rb b/lib/plaid/models/transfer_user_in_request_deprecated.rb index b9a54366b..cc7545ea2 100644 --- a/lib/plaid/models/transfer_user_in_request_deprecated.rb +++ b/lib/plaid/models/transfer_user_in_request_deprecated.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/transfer_user_in_response.rb b/lib/plaid/models/transfer_user_in_response.rb index 4b2b444e0..d560a7325 100644 --- a/lib/plaid/models/transfer_user_in_response.rb +++ b/lib/plaid/models/transfer_user_in_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/update_entity_screening_request_search_terms.rb b/lib/plaid/models/update_entity_screening_request_search_terms.rb index 97a50632b..07874e6ce 100644 --- a/lib/plaid/models/update_entity_screening_request_search_terms.rb +++ b/lib/plaid/models/update_entity_screening_request_search_terms.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/update_individual_screening_request_search_terms.rb b/lib/plaid/models/update_individual_screening_request_search_terms.rb index 593777af3..6c901bfbd 100644 --- a/lib/plaid/models/update_individual_screening_request_search_terms.rb +++ b/lib/plaid/models/update_individual_screening_request_search_terms.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/user_address.rb b/lib/plaid/models/user_address.rb index 285cdb62f..1c258c32f 100644 --- a/lib/plaid/models/user_address.rb +++ b/lib/plaid/models/user_address.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/user_create_request.rb b/lib/plaid/models/user_create_request.rb index ec6058c3f..70c183b2f 100644 --- a/lib/plaid/models/user_create_request.rb +++ b/lib/plaid/models/user_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/user_create_response.rb b/lib/plaid/models/user_create_response.rb index 32926ec8c..b16d2fe3b 100644 --- a/lib/plaid/models/user_create_response.rb +++ b/lib/plaid/models/user_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/user_custom_password.rb b/lib/plaid/models/user_custom_password.rb index 5700c0f81..44c8e2436 100644 --- a/lib/plaid/models/user_custom_password.rb +++ b/lib/plaid/models/user_custom_password.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/user_data_overview.rb b/lib/plaid/models/user_data_overview.rb index df303f94f..e391657aa 100644 --- a/lib/plaid/models/user_data_overview.rb +++ b/lib/plaid/models/user_data_overview.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/user_id_number.rb b/lib/plaid/models/user_id_number.rb index f304a95c1..316fe9793 100644 --- a/lib/plaid/models/user_id_number.rb +++ b/lib/plaid/models/user_id_number.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -21,6 +21,28 @@ class UserIDNumber attr_accessor :type + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/user_permission_revoked_webhook.rb b/lib/plaid/models/user_permission_revoked_webhook.rb index 51690e50c..14e82ac98 100644 --- a/lib/plaid/models/user_permission_revoked_webhook.rb +++ b/lib/plaid/models/user_permission_revoked_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -29,6 +29,28 @@ class UserPermissionRevokedWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/user_stated_income_source_category.rb b/lib/plaid/models/user_stated_income_source_category.rb index 65edd4648..458a43955 100644 --- a/lib/plaid/models/user_stated_income_source_category.rb +++ b/lib/plaid/models/user_stated_income_source_category.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/user_stated_income_source_frequency.rb b/lib/plaid/models/user_stated_income_source_frequency.rb index 320f9ccd8..2003fb1b6 100644 --- a/lib/plaid/models/user_stated_income_source_frequency.rb +++ b/lib/plaid/models/user_stated_income_source_frequency.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/user_stated_income_source_pay_type.rb b/lib/plaid/models/user_stated_income_source_pay_type.rb index 9d68c5cc6..6cd960b49 100644 --- a/lib/plaid/models/user_stated_income_source_pay_type.rb +++ b/lib/plaid/models/user_stated_income_source_pay_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/user_update_request.rb b/lib/plaid/models/user_update_request.rb index 91d608f44..a1e4921a8 100644 --- a/lib/plaid/models/user_update_request.rb +++ b/lib/plaid/models/user_update_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/user_update_response.rb b/lib/plaid/models/user_update_response.rb index a5e20e314..d7f8c98e1 100644 --- a/lib/plaid/models/user_update_response.rb +++ b/lib/plaid/models/user_update_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/validation_source.rb b/lib/plaid/models/validation_source.rb index f4be06dea..665a309bf 100644 --- a/lib/plaid/models/validation_source.rb +++ b/lib/plaid/models/validation_source.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/validation_sources.rb b/lib/plaid/models/validation_sources.rb index 4d297d061..cc6362c5e 100644 --- a/lib/plaid/models/validation_sources.rb +++ b/lib/plaid/models/validation_sources.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/verification_expired_webhook.rb b/lib/plaid/models/verification_expired_webhook.rb index ca4ef0900..3ea63625c 100644 --- a/lib/plaid/models/verification_expired_webhook.rb +++ b/lib/plaid/models/verification_expired_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -32,6 +32,28 @@ class VerificationExpiredWebhook attr_accessor :error + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/verification_of_asset.rb b/lib/plaid/models/verification_of_asset.rb index b16a80f77..d45f5b05d 100644 --- a/lib/plaid/models/verification_of_asset.rb +++ b/lib/plaid/models/verification_of_asset.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/verification_of_asset_response.rb b/lib/plaid/models/verification_of_asset_response.rb index 86d87d20b..77232ccd3 100644 --- a/lib/plaid/models/verification_of_asset_response.rb +++ b/lib/plaid/models/verification_of_asset_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/verification_refresh_status.rb b/lib/plaid/models/verification_refresh_status.rb index 0bbe1d9d3..0cd922188 100644 --- a/lib/plaid/models/verification_refresh_status.rb +++ b/lib/plaid/models/verification_refresh_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/verification_status.rb b/lib/plaid/models/verification_status.rb index d126005a8..fa84bdf26 100644 --- a/lib/plaid/models/verification_status.rb +++ b/lib/plaid/models/verification_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/w2.rb b/lib/plaid/models/w2.rb index fb364762e..d2dcfbf5c 100644 --- a/lib/plaid/models/w2.rb +++ b/lib/plaid/models/w2.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/w2_box12.rb b/lib/plaid/models/w2_box12.rb index 74d2fb1bf..cd8e9b6fc 100644 --- a/lib/plaid/models/w2_box12.rb +++ b/lib/plaid/models/w2_box12.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/w2_state_and_local_wages.rb b/lib/plaid/models/w2_state_and_local_wages.rb index a1d3f4a10..d7b1569d2 100644 --- a/lib/plaid/models/w2_state_and_local_wages.rb +++ b/lib/plaid/models/w2_state_and_local_wages.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/wallet.rb b/lib/plaid/models/wallet.rb index b5d5d6085..c30d71767 100644 --- a/lib/plaid/models/wallet.rb +++ b/lib/plaid/models/wallet.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -28,6 +28,28 @@ class Wallet attr_accessor :status + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/wallet_balance.rb b/lib/plaid/models/wallet_balance.rb index 8080c50fd..2118ab96d 100644 --- a/lib/plaid/models/wallet_balance.rb +++ b/lib/plaid/models/wallet_balance.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/wallet_create_request.rb b/lib/plaid/models/wallet_create_request.rb index 87dcecc1f..ab934cd15 100644 --- a/lib/plaid/models/wallet_create_request.rb +++ b/lib/plaid/models/wallet_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -24,6 +24,28 @@ class WalletCreateRequest attr_accessor :iso_currency_code + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/wallet_create_response.rb b/lib/plaid/models/wallet_create_response.rb index 30a59f013..71431b077 100644 --- a/lib/plaid/models/wallet_create_response.rb +++ b/lib/plaid/models/wallet_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -31,6 +31,28 @@ class WalletCreateResponse # A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive. attr_accessor :request_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/wallet_get_request.rb b/lib/plaid/models/wallet_get_request.rb index 2fa30c69d..19d5022ba 100644 --- a/lib/plaid/models/wallet_get_request.rb +++ b/lib/plaid/models/wallet_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/wallet_get_response.rb b/lib/plaid/models/wallet_get_response.rb index 4541e7386..aaaf7be57 100644 --- a/lib/plaid/models/wallet_get_response.rb +++ b/lib/plaid/models/wallet_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -31,6 +31,28 @@ class WalletGetResponse # A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive. attr_accessor :request_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/wallet_iso_currency_code.rb b/lib/plaid/models/wallet_iso_currency_code.rb index ee0778160..088dbd6eb 100644 --- a/lib/plaid/models/wallet_iso_currency_code.rb +++ b/lib/plaid/models/wallet_iso_currency_code.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/wallet_list_request.rb b/lib/plaid/models/wallet_list_request.rb index 51b297c8a..8c91780a4 100644 --- a/lib/plaid/models/wallet_list_request.rb +++ b/lib/plaid/models/wallet_list_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -30,6 +30,28 @@ class WalletListRequest # The number of e-wallets to fetch attr_accessor :count + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/wallet_list_response.rb b/lib/plaid/models/wallet_list_response.rb index ffba9b312..fd2912919 100644 --- a/lib/plaid/models/wallet_list_response.rb +++ b/lib/plaid/models/wallet_list_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/wallet_numbers.rb b/lib/plaid/models/wallet_numbers.rb index a6e52611f..7d9e4c85a 100644 --- a/lib/plaid/models/wallet_numbers.rb +++ b/lib/plaid/models/wallet_numbers.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/wallet_payment_scheme.rb b/lib/plaid/models/wallet_payment_scheme.rb index ed1e55744..45bcd6ef7 100644 --- a/lib/plaid/models/wallet_payment_scheme.rb +++ b/lib/plaid/models/wallet_payment_scheme.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/wallet_status.rb b/lib/plaid/models/wallet_status.rb index b52374b8e..0efb2d6e0 100644 --- a/lib/plaid/models/wallet_status.rb +++ b/lib/plaid/models/wallet_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/wallet_transaction.rb b/lib/plaid/models/wallet_transaction.rb index 8bf073ea1..bf1ad3011 100644 --- a/lib/plaid/models/wallet_transaction.rb +++ b/lib/plaid/models/wallet_transaction.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/wallet_transaction_amount.rb b/lib/plaid/models/wallet_transaction_amount.rb index 5e62437d8..d2c0241a7 100644 --- a/lib/plaid/models/wallet_transaction_amount.rb +++ b/lib/plaid/models/wallet_transaction_amount.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -21,6 +21,28 @@ class WalletTransactionAmount # The amount of the transaction. Must contain at most two digits of precision e.g. `1.23`. attr_accessor :value + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/wallet_transaction_counterparty.rb b/lib/plaid/models/wallet_transaction_counterparty.rb index 790f2b58e..ddf22e50e 100644 --- a/lib/plaid/models/wallet_transaction_counterparty.rb +++ b/lib/plaid/models/wallet_transaction_counterparty.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/wallet_transaction_counterparty_bacs.rb b/lib/plaid/models/wallet_transaction_counterparty_bacs.rb index 672cd04d0..fa8dfd1dc 100644 --- a/lib/plaid/models/wallet_transaction_counterparty_bacs.rb +++ b/lib/plaid/models/wallet_transaction_counterparty_bacs.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/wallet_transaction_counterparty_international.rb b/lib/plaid/models/wallet_transaction_counterparty_international.rb index 6334d9010..20558b606 100644 --- a/lib/plaid/models/wallet_transaction_counterparty_international.rb +++ b/lib/plaid/models/wallet_transaction_counterparty_international.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/wallet_transaction_counterparty_numbers.rb b/lib/plaid/models/wallet_transaction_counterparty_numbers.rb index f411b7f8a..8cbd8af77 100644 --- a/lib/plaid/models/wallet_transaction_counterparty_numbers.rb +++ b/lib/plaid/models/wallet_transaction_counterparty_numbers.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/wallet_transaction_execute_request.rb b/lib/plaid/models/wallet_transaction_execute_request.rb index 17b7c0d33..f9a336ade 100644 --- a/lib/plaid/models/wallet_transaction_execute_request.rb +++ b/lib/plaid/models/wallet_transaction_execute_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/wallet_transaction_execute_response.rb b/lib/plaid/models/wallet_transaction_execute_response.rb index 0457f25f1..a1006fa75 100644 --- a/lib/plaid/models/wallet_transaction_execute_response.rb +++ b/lib/plaid/models/wallet_transaction_execute_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -24,6 +24,28 @@ class WalletTransactionExecuteResponse # A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive. attr_accessor :request_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/wallet_transaction_failure_reason.rb b/lib/plaid/models/wallet_transaction_failure_reason.rb index 4c5877fc5..7ee276267 100644 --- a/lib/plaid/models/wallet_transaction_failure_reason.rb +++ b/lib/plaid/models/wallet_transaction_failure_reason.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/wallet_transaction_get_request.rb b/lib/plaid/models/wallet_transaction_get_request.rb index 3e783f037..f472e580e 100644 --- a/lib/plaid/models/wallet_transaction_get_request.rb +++ b/lib/plaid/models/wallet_transaction_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/wallet_transaction_get_response.rb b/lib/plaid/models/wallet_transaction_get_response.rb index 237415b52..efb5b2bd5 100644 --- a/lib/plaid/models/wallet_transaction_get_response.rb +++ b/lib/plaid/models/wallet_transaction_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/wallet_transaction_list_request.rb b/lib/plaid/models/wallet_transaction_list_request.rb index abc7e6cc1..645cb58fd 100644 --- a/lib/plaid/models/wallet_transaction_list_request.rb +++ b/lib/plaid/models/wallet_transaction_list_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/wallet_transaction_list_request_options.rb b/lib/plaid/models/wallet_transaction_list_request_options.rb index 323d67084..13b801dc4 100644 --- a/lib/plaid/models/wallet_transaction_list_request_options.rb +++ b/lib/plaid/models/wallet_transaction_list_request_options.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/wallet_transaction_list_response.rb b/lib/plaid/models/wallet_transaction_list_response.rb index f5f4ad5c4..cc1bba4a2 100644 --- a/lib/plaid/models/wallet_transaction_list_response.rb +++ b/lib/plaid/models/wallet_transaction_list_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/wallet_transaction_status.rb b/lib/plaid/models/wallet_transaction_status.rb index f810979d0..c139d5ab9 100644 --- a/lib/plaid/models/wallet_transaction_status.rb +++ b/lib/plaid/models/wallet_transaction_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/wallet_transaction_status_update_webhook.rb b/lib/plaid/models/wallet_transaction_status_update_webhook.rb index 5e215d9fe..2f569b7d2 100644 --- a/lib/plaid/models/wallet_transaction_status_update_webhook.rb +++ b/lib/plaid/models/wallet_transaction_status_update_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -40,6 +40,28 @@ class WalletTransactionStatusUpdateWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/wallet_transactions_list_request.rb b/lib/plaid/models/wallet_transactions_list_request.rb index d475ed27d..cd09f76b5 100644 --- a/lib/plaid/models/wallet_transactions_list_request.rb +++ b/lib/plaid/models/wallet_transactions_list_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/warning.rb b/lib/plaid/models/warning.rb index 61a0012c5..345644782 100644 --- a/lib/plaid/models/warning.rb +++ b/lib/plaid/models/warning.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_audit_trail.rb b/lib/plaid/models/watchlist_screening_audit_trail.rb index 6e96e2417..d6b9b814e 100644 --- a/lib/plaid/models/watchlist_screening_audit_trail.rb +++ b/lib/plaid/models/watchlist_screening_audit_trail.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -24,6 +24,28 @@ class WatchlistScreeningAuditTrail # An ISO8601 formatted timestamp. attr_accessor :timestamp + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/watchlist_screening_document.rb b/lib/plaid/models/watchlist_screening_document.rb index 06eb2a9b6..fc80564d6 100644 --- a/lib/plaid/models/watchlist_screening_document.rb +++ b/lib/plaid/models/watchlist_screening_document.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -21,6 +21,28 @@ class WatchlistScreeningDocument # The numeric or alphanumeric identifier associated with this document. attr_accessor :number + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/watchlist_screening_document_type.rb b/lib/plaid/models/watchlist_screening_document_type.rb index 7a69951f3..0007151c8 100644 --- a/lib/plaid/models/watchlist_screening_document_type.rb +++ b/lib/plaid/models/watchlist_screening_document_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_entity_create_request.rb b/lib/plaid/models/watchlist_screening_entity_create_request.rb index 669f74046..2962a1cb9 100644 --- a/lib/plaid/models/watchlist_screening_entity_create_request.rb +++ b/lib/plaid/models/watchlist_screening_entity_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_entity_create_response.rb b/lib/plaid/models/watchlist_screening_entity_create_response.rb index 485573070..ebf5a5c27 100644 --- a/lib/plaid/models/watchlist_screening_entity_create_response.rb +++ b/lib/plaid/models/watchlist_screening_entity_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -34,6 +34,28 @@ class WatchlistScreeningEntityCreateResponse # A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive. attr_accessor :request_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/watchlist_screening_entity_get_request.rb b/lib/plaid/models/watchlist_screening_entity_get_request.rb index 6c76a8f7f..2668088fe 100644 --- a/lib/plaid/models/watchlist_screening_entity_get_request.rb +++ b/lib/plaid/models/watchlist_screening_entity_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_entity_get_response.rb b/lib/plaid/models/watchlist_screening_entity_get_response.rb index f9851598a..33627139f 100644 --- a/lib/plaid/models/watchlist_screening_entity_get_response.rb +++ b/lib/plaid/models/watchlist_screening_entity_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -34,6 +34,28 @@ class WatchlistScreeningEntityGetResponse # A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive. attr_accessor :request_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/watchlist_screening_entity_history_list_request.rb b/lib/plaid/models/watchlist_screening_entity_history_list_request.rb index 21b4f2a6f..cae376568 100644 --- a/lib/plaid/models/watchlist_screening_entity_history_list_request.rb +++ b/lib/plaid/models/watchlist_screening_entity_history_list_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_entity_history_list_response.rb b/lib/plaid/models/watchlist_screening_entity_history_list_response.rb index c6b735da8..d178f5914 100644 --- a/lib/plaid/models/watchlist_screening_entity_history_list_response.rb +++ b/lib/plaid/models/watchlist_screening_entity_history_list_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_entity_hit_list_request.rb b/lib/plaid/models/watchlist_screening_entity_hit_list_request.rb index 73021bfa4..f03a23d62 100644 --- a/lib/plaid/models/watchlist_screening_entity_hit_list_request.rb +++ b/lib/plaid/models/watchlist_screening_entity_hit_list_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_entity_hit_list_response.rb b/lib/plaid/models/watchlist_screening_entity_hit_list_response.rb index b5f68ab97..a0318a90a 100644 --- a/lib/plaid/models/watchlist_screening_entity_hit_list_response.rb +++ b/lib/plaid/models/watchlist_screening_entity_hit_list_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_entity_list_request.rb b/lib/plaid/models/watchlist_screening_entity_list_request.rb index 274e94b3a..fb61c70a5 100644 --- a/lib/plaid/models/watchlist_screening_entity_list_request.rb +++ b/lib/plaid/models/watchlist_screening_entity_list_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -36,6 +36,28 @@ class WatchlistScreeningEntityListRequest # An identifier that determines which page of results you receive. attr_accessor :cursor + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/watchlist_screening_entity_list_response.rb b/lib/plaid/models/watchlist_screening_entity_list_response.rb index dafe7f71d..94f9aa112 100644 --- a/lib/plaid/models/watchlist_screening_entity_list_response.rb +++ b/lib/plaid/models/watchlist_screening_entity_list_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_entity_program_get_request.rb b/lib/plaid/models/watchlist_screening_entity_program_get_request.rb index 4b3ca5d07..a4ad23910 100644 --- a/lib/plaid/models/watchlist_screening_entity_program_get_request.rb +++ b/lib/plaid/models/watchlist_screening_entity_program_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_entity_program_get_response.rb b/lib/plaid/models/watchlist_screening_entity_program_get_response.rb index f74c11ed4..7cec49ed9 100644 --- a/lib/plaid/models/watchlist_screening_entity_program_get_response.rb +++ b/lib/plaid/models/watchlist_screening_entity_program_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -41,6 +41,28 @@ class WatchlistScreeningEntityProgramGetResponse # A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive. attr_accessor :request_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/watchlist_screening_entity_program_list_request.rb b/lib/plaid/models/watchlist_screening_entity_program_list_request.rb index 05cca94ed..d1a224e84 100644 --- a/lib/plaid/models/watchlist_screening_entity_program_list_request.rb +++ b/lib/plaid/models/watchlist_screening_entity_program_list_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_entity_program_list_response.rb b/lib/plaid/models/watchlist_screening_entity_program_list_response.rb index 926b3a404..2834e2ed3 100644 --- a/lib/plaid/models/watchlist_screening_entity_program_list_response.rb +++ b/lib/plaid/models/watchlist_screening_entity_program_list_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_entity_review_create_request.rb b/lib/plaid/models/watchlist_screening_entity_review_create_request.rb index 66dce57e2..9abe20eb4 100644 --- a/lib/plaid/models/watchlist_screening_entity_review_create_request.rb +++ b/lib/plaid/models/watchlist_screening_entity_review_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_entity_review_create_response.rb b/lib/plaid/models/watchlist_screening_entity_review_create_response.rb index f43860ba4..22b937f0a 100644 --- a/lib/plaid/models/watchlist_screening_entity_review_create_response.rb +++ b/lib/plaid/models/watchlist_screening_entity_review_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_entity_review_list_request.rb b/lib/plaid/models/watchlist_screening_entity_review_list_request.rb index ceb527bff..428ed3f57 100644 --- a/lib/plaid/models/watchlist_screening_entity_review_list_request.rb +++ b/lib/plaid/models/watchlist_screening_entity_review_list_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_entity_review_list_response.rb b/lib/plaid/models/watchlist_screening_entity_review_list_response.rb index 660b05088..14e3fe472 100644 --- a/lib/plaid/models/watchlist_screening_entity_review_list_response.rb +++ b/lib/plaid/models/watchlist_screening_entity_review_list_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_entity_update_request.rb b/lib/plaid/models/watchlist_screening_entity_update_request.rb index b08c0aeef..159f17117 100644 --- a/lib/plaid/models/watchlist_screening_entity_update_request.rb +++ b/lib/plaid/models/watchlist_screening_entity_update_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -38,6 +38,28 @@ class WatchlistScreeningEntityUpdateRequest # A list of fields to reset back to null attr_accessor :reset_fields + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/watchlist_screening_entity_update_request_resettable_field.rb b/lib/plaid/models/watchlist_screening_entity_update_request_resettable_field.rb index ee9e41b5e..ed04b9fb9 100644 --- a/lib/plaid/models/watchlist_screening_entity_update_request_resettable_field.rb +++ b/lib/plaid/models/watchlist_screening_entity_update_request_resettable_field.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_entity_update_response.rb b/lib/plaid/models/watchlist_screening_entity_update_response.rb index 84c4733e5..f0063bf37 100644 --- a/lib/plaid/models/watchlist_screening_entity_update_response.rb +++ b/lib/plaid/models/watchlist_screening_entity_update_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -34,6 +34,28 @@ class WatchlistScreeningEntityUpdateResponse # A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive. attr_accessor :request_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/watchlist_screening_hit.rb b/lib/plaid/models/watchlist_screening_hit.rb index 34b26e1c4..def4f6ba4 100644 --- a/lib/plaid/models/watchlist_screening_hit.rb +++ b/lib/plaid/models/watchlist_screening_hit.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -42,6 +42,28 @@ class WatchlistScreeningHit attr_accessor :data + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/watchlist_screening_hit_locations.rb b/lib/plaid/models/watchlist_screening_hit_locations.rb index e0450e1f7..232ccbdd4 100644 --- a/lib/plaid/models/watchlist_screening_hit_locations.rb +++ b/lib/plaid/models/watchlist_screening_hit_locations.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_hit_status.rb b/lib/plaid/models/watchlist_screening_hit_status.rb index dcc1ab11c..2561b93d8 100644 --- a/lib/plaid/models/watchlist_screening_hit_status.rb +++ b/lib/plaid/models/watchlist_screening_hit_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_individual.rb b/lib/plaid/models/watchlist_screening_individual.rb index 7b2e54215..02c61cc9f 100644 --- a/lib/plaid/models/watchlist_screening_individual.rb +++ b/lib/plaid/models/watchlist_screening_individual.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -31,6 +31,28 @@ class WatchlistScreeningIndividual attr_accessor :audit_trail + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/watchlist_screening_individual_create_request.rb b/lib/plaid/models/watchlist_screening_individual_create_request.rb index 9b65e52c6..411cc20be 100644 --- a/lib/plaid/models/watchlist_screening_individual_create_request.rb +++ b/lib/plaid/models/watchlist_screening_individual_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_individual_create_response.rb b/lib/plaid/models/watchlist_screening_individual_create_response.rb index 924611ef7..177bea5dd 100644 --- a/lib/plaid/models/watchlist_screening_individual_create_response.rb +++ b/lib/plaid/models/watchlist_screening_individual_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -34,6 +34,28 @@ class WatchlistScreeningIndividualCreateResponse # A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive. attr_accessor :request_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/watchlist_screening_individual_get_request.rb b/lib/plaid/models/watchlist_screening_individual_get_request.rb index f5d9de45e..44df0a10b 100644 --- a/lib/plaid/models/watchlist_screening_individual_get_request.rb +++ b/lib/plaid/models/watchlist_screening_individual_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_individual_get_response.rb b/lib/plaid/models/watchlist_screening_individual_get_response.rb index e25fe185e..f699965b2 100644 --- a/lib/plaid/models/watchlist_screening_individual_get_response.rb +++ b/lib/plaid/models/watchlist_screening_individual_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -34,6 +34,28 @@ class WatchlistScreeningIndividualGetResponse # A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive. attr_accessor :request_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/watchlist_screening_individual_history_list_request.rb b/lib/plaid/models/watchlist_screening_individual_history_list_request.rb index 3e431274a..84d7089f9 100644 --- a/lib/plaid/models/watchlist_screening_individual_history_list_request.rb +++ b/lib/plaid/models/watchlist_screening_individual_history_list_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_individual_history_list_response.rb b/lib/plaid/models/watchlist_screening_individual_history_list_response.rb index 12509eea5..238eb96d8 100644 --- a/lib/plaid/models/watchlist_screening_individual_history_list_response.rb +++ b/lib/plaid/models/watchlist_screening_individual_history_list_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_individual_hit_list_request.rb b/lib/plaid/models/watchlist_screening_individual_hit_list_request.rb index 184950068..5aec7f27f 100644 --- a/lib/plaid/models/watchlist_screening_individual_hit_list_request.rb +++ b/lib/plaid/models/watchlist_screening_individual_hit_list_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_individual_hit_list_response.rb b/lib/plaid/models/watchlist_screening_individual_hit_list_response.rb index 22f03d9e5..e6bd21b21 100644 --- a/lib/plaid/models/watchlist_screening_individual_hit_list_response.rb +++ b/lib/plaid/models/watchlist_screening_individual_hit_list_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_individual_list_request.rb b/lib/plaid/models/watchlist_screening_individual_list_request.rb index c71153384..b0b7ef543 100644 --- a/lib/plaid/models/watchlist_screening_individual_list_request.rb +++ b/lib/plaid/models/watchlist_screening_individual_list_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -36,6 +36,28 @@ class WatchlistScreeningIndividualListRequest # An identifier that determines which page of results you receive. attr_accessor :cursor + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/watchlist_screening_individual_list_response.rb b/lib/plaid/models/watchlist_screening_individual_list_response.rb index 328ce3792..455ebf931 100644 --- a/lib/plaid/models/watchlist_screening_individual_list_response.rb +++ b/lib/plaid/models/watchlist_screening_individual_list_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_individual_program_get_request.rb b/lib/plaid/models/watchlist_screening_individual_program_get_request.rb index 1d82e5a14..dd6dd89a3 100644 --- a/lib/plaid/models/watchlist_screening_individual_program_get_request.rb +++ b/lib/plaid/models/watchlist_screening_individual_program_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_individual_program_get_response.rb b/lib/plaid/models/watchlist_screening_individual_program_get_response.rb index 97d576fed..3078f8fd2 100644 --- a/lib/plaid/models/watchlist_screening_individual_program_get_response.rb +++ b/lib/plaid/models/watchlist_screening_individual_program_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -41,6 +41,28 @@ class WatchlistScreeningIndividualProgramGetResponse # A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive. attr_accessor :request_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/watchlist_screening_individual_program_list_request.rb b/lib/plaid/models/watchlist_screening_individual_program_list_request.rb index 71b722c58..4abd212ec 100644 --- a/lib/plaid/models/watchlist_screening_individual_program_list_request.rb +++ b/lib/plaid/models/watchlist_screening_individual_program_list_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_individual_program_list_response.rb b/lib/plaid/models/watchlist_screening_individual_program_list_response.rb index 8845829e3..d43261033 100644 --- a/lib/plaid/models/watchlist_screening_individual_program_list_response.rb +++ b/lib/plaid/models/watchlist_screening_individual_program_list_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_individual_review_create_request.rb b/lib/plaid/models/watchlist_screening_individual_review_create_request.rb index 30ca5e396..7894abb13 100644 --- a/lib/plaid/models/watchlist_screening_individual_review_create_request.rb +++ b/lib/plaid/models/watchlist_screening_individual_review_create_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_individual_review_create_response.rb b/lib/plaid/models/watchlist_screening_individual_review_create_response.rb index b3194b7af..943738d08 100644 --- a/lib/plaid/models/watchlist_screening_individual_review_create_response.rb +++ b/lib/plaid/models/watchlist_screening_individual_review_create_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_individual_review_list_request.rb b/lib/plaid/models/watchlist_screening_individual_review_list_request.rb index 846fd7990..f51fb2d96 100644 --- a/lib/plaid/models/watchlist_screening_individual_review_list_request.rb +++ b/lib/plaid/models/watchlist_screening_individual_review_list_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_individual_review_list_response.rb b/lib/plaid/models/watchlist_screening_individual_review_list_response.rb index 4950b6495..eae8c264f 100644 --- a/lib/plaid/models/watchlist_screening_individual_review_list_response.rb +++ b/lib/plaid/models/watchlist_screening_individual_review_list_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_individual_update_request.rb b/lib/plaid/models/watchlist_screening_individual_update_request.rb index 17265be90..eda6e84d0 100644 --- a/lib/plaid/models/watchlist_screening_individual_update_request.rb +++ b/lib/plaid/models/watchlist_screening_individual_update_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -38,6 +38,28 @@ class WatchlistScreeningIndividualUpdateRequest # A list of fields to reset back to null attr_accessor :reset_fields + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/watchlist_screening_individual_update_request_resettable_field.rb b/lib/plaid/models/watchlist_screening_individual_update_request_resettable_field.rb index 5d142e598..5ac1f3b66 100644 --- a/lib/plaid/models/watchlist_screening_individual_update_request_resettable_field.rb +++ b/lib/plaid/models/watchlist_screening_individual_update_request_resettable_field.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_individual_update_response.rb b/lib/plaid/models/watchlist_screening_individual_update_response.rb index 6b56b2c34..3565a9267 100644 --- a/lib/plaid/models/watchlist_screening_individual_update_response.rb +++ b/lib/plaid/models/watchlist_screening_individual_update_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -34,6 +34,28 @@ class WatchlistScreeningIndividualUpdateResponse # A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive. attr_accessor :request_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/watchlist_screening_request_search_terms.rb b/lib/plaid/models/watchlist_screening_request_search_terms.rb index f10bdcc68..b0a9c1423 100644 --- a/lib/plaid/models/watchlist_screening_request_search_terms.rb +++ b/lib/plaid/models/watchlist_screening_request_search_terms.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_review.rb b/lib/plaid/models/watchlist_screening_review.rb index 0a18d20d2..187f90ad0 100644 --- a/lib/plaid/models/watchlist_screening_review.rb +++ b/lib/plaid/models/watchlist_screening_review.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_search_terms.rb b/lib/plaid/models/watchlist_screening_search_terms.rb index a593746a6..14fa52288 100644 --- a/lib/plaid/models/watchlist_screening_search_terms.rb +++ b/lib/plaid/models/watchlist_screening_search_terms.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/watchlist_screening_status.rb b/lib/plaid/models/watchlist_screening_status.rb index 08e795b3b..73a2c1bac 100644 --- a/lib/plaid/models/watchlist_screening_status.rb +++ b/lib/plaid/models/watchlist_screening_status.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/weak_alias_determination.rb b/lib/plaid/models/weak_alias_determination.rb index eb9541029..325088d68 100644 --- a/lib/plaid/models/weak_alias_determination.rb +++ b/lib/plaid/models/weak_alias_determination.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/webhook_environment_values.rb b/lib/plaid/models/webhook_environment_values.rb index b3e5c8df4..705d8ba2e 100644 --- a/lib/plaid/models/webhook_environment_values.rb +++ b/lib/plaid/models/webhook_environment_values.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/webhook_type.rb b/lib/plaid/models/webhook_type.rb index b728eac92..b2dda13a3 100644 --- a/lib/plaid/models/webhook_type.rb +++ b/lib/plaid/models/webhook_type.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/webhook_update_acknowledged_webhook.rb b/lib/plaid/models/webhook_update_acknowledged_webhook.rb index 74842277b..61d435a07 100644 --- a/lib/plaid/models/webhook_update_acknowledged_webhook.rb +++ b/lib/plaid/models/webhook_update_acknowledged_webhook.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -32,6 +32,28 @@ class WebhookUpdateAcknowledgedWebhook attr_accessor :environment + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/webhook_verification_key_get_request.rb b/lib/plaid/models/webhook_verification_key_get_request.rb index 7a688c699..8adaff9dd 100644 --- a/lib/plaid/models/webhook_verification_key_get_request.rb +++ b/lib/plaid/models/webhook_verification_key_get_request.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/webhook_verification_key_get_response.rb b/lib/plaid/models/webhook_verification_key_get_response.rb index 288c102e6..74c72b049 100644 --- a/lib/plaid/models/webhook_verification_key_get_response.rb +++ b/lib/plaid/models/webhook_verification_key_get_response.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/lib/plaid/models/ytd_gross_income_summary_field_number.rb b/lib/plaid/models/ytd_gross_income_summary_field_number.rb index d662c15e9..5c8872ce0 100644 --- a/lib/plaid/models/ytd_gross_income_summary_field_number.rb +++ b/lib/plaid/models/ytd_gross_income_summary_field_number.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -21,6 +21,28 @@ class YTDGrossIncomeSummaryFieldNumber attr_accessor :verification_status + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/models/ytd_net_income_summary_field_number.rb b/lib/plaid/models/ytd_net_income_summary_field_number.rb index 1e07cf99c..b71eb9d91 100644 --- a/lib/plaid/models/ytd_net_income_summary_field_number.rb +++ b/lib/plaid/models/ytd_net_income_summary_field_number.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end @@ -21,6 +21,28 @@ class YTDNetIncomeSummaryFieldNumber attr_accessor :verification_status + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { diff --git a/lib/plaid/version.rb b/lib/plaid/version.rb index 6e99b02b1..6b497f6fa 100644 --- a/lib/plaid/version.rb +++ b/lib/plaid/version.rb @@ -3,13 +3,13 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end module Plaid - VERSION = '24.0.0' + VERSION = '24.2.0' end diff --git a/plaid.gemspec b/plaid.gemspec index 8b3bfe4a3..b67454ee9 100644 --- a/plaid.gemspec +++ b/plaid.gemspec @@ -5,10 +5,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end diff --git a/templates/ruby/api_client_faraday_partial.mustache b/templates/ruby/api_client_faraday_partial.mustache index 4403f79be..06d9a4de8 100644 --- a/templates/ruby/api_client_faraday_partial.mustache +++ b/templates/ruby/api_client_faraday_partial.mustache @@ -21,7 +21,7 @@ end unless response.success? - if response.status == 0 + if response.status == 0 && response.respond_to?(:return_message) # Errors from libcurl will be made visible here fail ApiError.new(:code => 0, :message => response.return_message) @@ -42,6 +42,8 @@ end rescue Faraday::TimeoutError fail ApiError.new('Connection timed out') + rescue Faraday::ConnectionFailed + fail ApiError.new('Connection failed') end if opts[:return_type] diff --git a/templates/ruby/api_error.mustache b/templates/ruby/api_error.mustache index b8681aac9..84a90aabd 100644 --- a/templates/ruby/api_error.mustache +++ b/templates/ruby/api_error.mustache @@ -17,6 +17,7 @@ module {{moduleName}} super(arg[:message] || arg['message']) else super arg + @message = arg end arg.each do |k, v| @@ -46,4 +47,4 @@ module {{moduleName}} msg end end -end \ No newline at end of file +end diff --git a/templates/ruby/configuration.mustache b/templates/ruby/configuration.mustache index 28bdc5794..1e08972a1 100644 --- a/templates/ruby/configuration.mustache +++ b/templates/ruby/configuration.mustache @@ -64,6 +64,12 @@ module {{moduleName}} # Defines the access token (Bearer) used with OAuth2. attr_accessor :access_token + # Defines a Proc used to fetch or refresh access tokens (Bearer) used with OAuth2. + # Overrides the access_token if set + # @return [Proc] + attr_accessor :access_token_getter + + # Set this to enable/disable debugging. When enabled (set to true), HTTP request/response # details will be logged with `logger.debug` (see the `logger` attribute). # Default to false. @@ -189,6 +195,12 @@ module {{moduleName}} end end + # Gets access_token using access_token_getter or uses the static access_token + def access_token_with_refresh + return access_token if access_token_getter.nil? + access_token_getter.call + end + # Gets Basic Auth token string def basic_auth_token 'Basic ' + ["#{username}:#{password}"].pack('m').delete("\r\n") @@ -226,7 +238,7 @@ module {{moduleName}} format: '{{{.}}}', {{/bearerFormat}} key: 'Authorization', - value: "Bearer #{access_token}" + value: "Bearer #{access_token_with_refresh}" }, {{/isBasicBearer}} {{/isBasic}} @@ -236,7 +248,7 @@ module {{moduleName}} type: 'oauth2', in: 'header', key: 'Authorization', - value: "Bearer #{access_token}" + value: "Bearer #{access_token_with_refresh}" }, {{/isOAuth}} {{/authMethods}} diff --git a/templates/ruby/gemspec.mustache b/templates/ruby/gemspec.mustache index 86f44d93c..c7fe143c1 100644 --- a/templates/ruby/gemspec.mustache +++ b/templates/ruby/gemspec.mustache @@ -17,7 +17,7 @@ Gem::Specification.new do |s| s.summary = "{{gemSummary}}{{^gemSummary}}{{{appName}}} Ruby Gem{{/gemSummary}}" s.description = "Ruby gem wrapper for the Plaid API. Read more at the homepage, the wiki, or in the Plaid documentation." s.license = "{{{gemLicense}}}{{^gemLicense}}MIT{{/gemLicense}}" - s.required_ruby_version = "{{{gemRequiredRubyVersion}}}{{^gemRequiredRubyVersion}}>= 2.4{{/gemRequiredRubyVersion}}" + s.required_ruby_version = "{{{gemRequiredRubyVersion}}}{{^gemRequiredRubyVersion}}>= 2.7{{/gemRequiredRubyVersion}}" {{#isFaraday}} s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 3.0'