From 70cae6afcc6c4278784e35f43650a8dcc3653e17 Mon Sep 17 00:00:00 2001 From: Matt Nguyen Date: Thu, 31 Mar 2022 15:27:03 -0700 Subject: [PATCH] 15.2.0 Co-authored-by: Matt Nguyen --- .openapi-generator/FILES | 77 ++- .openapi-generator/VERSION | 2 +- CHANGELOG.md | 84 +++ Makefile | 2 +- README.md | 2 +- lib/plaid.rb | 42 +- lib/plaid/api/plaid_api.rb | 385 ++++++++++++-- lib/plaid/api_client.rb | 6 +- lib/plaid/api_error.rb | 4 +- lib/plaid/configuration.rb | 4 +- lib/plaid/models/account_access.rb | 4 +- lib/plaid/models/account_assets.rb | 4 +- lib/plaid/models/account_assets_all_of.rb | 4 +- 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 +- 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/address.rb | 4 +- lib/plaid/models/address_data.rb | 4 +- lib/plaid/models/address_data_nullable.rb | 4 +- lib/plaid/models/address_nullable.rb | 4 +- lib/plaid/models/application.rb | 80 ++- 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_report.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_get_request.rb | 4 +- lib/plaid/models/asset_report_get_response.rb | 4 +- lib/plaid/models/asset_report_item.rb | 4 +- .../models/asset_report_pdf_get_request.rb | 4 +- .../models/asset_report_refresh_request.rb | 4 +- .../asset_report_refresh_request_options.rb | 4 +- .../models/asset_report_refresh_response.rb | 4 +- .../asset_report_relay_create_request.rb | 4 +- .../asset_report_relay_create_response.rb | 4 +- .../models/asset_report_relay_get_request.rb | 4 +- .../asset_report_relay_refresh_request.rb | 4 +- .../asset_report_relay_refresh_response.rb | 4 +- .../asset_report_relay_remove_request.rb | 4 +- .../asset_report_relay_remove_response.rb | 4 +- .../models/asset_report_remove_request.rb | 4 +- .../models/asset_report_remove_response.rb | 4 +- lib/plaid/models/asset_report_transaction.rb | 4 +- .../models/asset_report_transaction_all_of.rb | 4 +- lib/plaid/models/asset_report_user.rb | 4 +- lib/plaid/models/assets_error_webhook.rb | 4 +- .../models/assets_product_ready_webhook.rb | 4 +- lib/plaid/models/assets_relay_webhook.rb | 4 +- 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 | 4 +- .../models/bank_initiated_return_risk.rb | 4 +- lib/plaid/models/bank_transfer.rb | 4 +- 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 | 4 +- .../models/bank_transfer_create_response.rb | 4 +- lib/plaid/models/bank_transfer_direction.rb | 4 +- lib/plaid/models/bank_transfer_event.rb | 4 +- ..._transfer_event_list_bank_transfer_type.rb | 4 +- .../bank_transfer_event_list_direction.rb | 4 +- .../bank_transfer_event_list_request.rb | 4 +- .../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 | 4 +- .../models/bank_transfer_list_response.rb | 4 +- .../bank_transfer_migrate_account_request.rb | 16 +- .../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 | 4 +- lib/plaid/models/categories_get_response.rb | 4 +- lib/plaid/models/category.rb | 4 +- lib/plaid/models/cause.rb | 175 ++++++- lib/plaid/models/cause_all_of.rb | 219 ++++++++ .../client_provided_enhanced_transaction.rb | 4 +- .../models/client_provided_raw_transaction.rb | 4 +- lib/plaid/models/connected_application.rb | 102 +--- lib/plaid/models/country_code.rb | 4 +- lib/plaid/models/credit_account_subtype.rb | 4 +- lib/plaid/models/credit_bank_income.rb | 4 +- .../models/credit_bank_income_account.rb | 4 +- .../models/credit_bank_income_account_type.rb | 4 +- .../models/credit_bank_income_category.rb | 4 +- lib/plaid/models/credit_bank_income_cause.rb | 4 +- .../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 +- lib/plaid/models/credit_bank_income_source.rb | 4 +- .../models/credit_bank_income_summary.rb | 4 +- .../models/credit_bank_income_transaction.rb | 4 +- .../models/credit_bank_income_warning.rb | 4 +- .../models/credit_bank_income_warning_code.rb | 5 +- .../models/credit_bank_income_warning_type.rb | 4 +- lib/plaid/models/credit_card_liability.rb | 4 +- lib/plaid/models/credit_document_metadata.rb | 258 ++++++++++ .../models/credit_employer_verification.rb | 221 ++++++++ .../models/credit_employment_get_request.rb | 245 +++++++++ .../models/credit_employment_get_response.rb | 242 +++++++++ .../models/credit_employment_verification.rb | 282 ++++++++++ lib/plaid/models/credit_filter.rb | 4 +- .../credit_payroll_income_get_request.rb | 240 +++++++++ .../credit_payroll_income_get_response.rb | 261 ++++++++++ .../credit_payroll_income_precheck_request.rb | 272 ++++++++++ ...credit_payroll_income_precheck_response.rb | 239 +++++++++ lib/plaid/models/credit_platform_ids.rb | 243 +++++++++ lib/plaid/models/credit_w2.rb | 486 ++++++++++++++++++ .../models/customer_initiated_return_risk.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 | 4 +- .../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 | 4 +- .../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/distribution_breakdown.rb | 4 +- lib/plaid/models/doc_type.rb | 4 +- lib/plaid/models/document_metadata.rb | 4 +- lib/plaid/models/earnings.rb | 4 +- lib/plaid/models/earnings_breakdown.rb | 4 +- ...arnings_breakdown_canonical_description.rb | 4 +- lib/plaid/models/earnings_total.rb | 4 +- lib/plaid/models/email.rb | 4 +- lib/plaid/models/employee.rb | 4 +- .../employee_income_summary_field_string.rb | 4 +- lib/plaid/models/employer.rb | 4 +- .../employer_income_summary_field_string.rb | 4 +- 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_verification.rb | 4 +- .../employment_verification_get_request.rb | 4 +- .../employment_verification_get_response.rb | 4 +- .../models/employment_verification_status.rb | 4 +- lib/plaid/models/enhancements.rb | 8 +- lib/plaid/models/error.rb | 4 +- ...rnal_payment_initiation_consent_options.rb | 4 +- lib/plaid/models/external_payment_options.rb | 4 +- .../models/external_payment_refund_details.rb | 4 +- .../models/external_payment_schedule_base.rb | 4 +- .../models/external_payment_schedule_get.rb | 4 +- .../external_payment_schedule_request.rb | 4 +- lib/plaid/models/health_incident.rb | 4 +- lib/plaid/models/historical_balance.rb | 4 +- lib/plaid/models/historical_update_webhook.rb | 4 +- lib/plaid/models/holding.rb | 4 +- .../models/holdings_default_update_webhook.rb | 4 +- lib/plaid/models/holdings_override.rb | 4 +- .../models/identity_default_update_webhook.rb | 4 +- 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_update_types.rb | 4 +- lib/plaid/models/incident_update.rb | 4 +- lib/plaid/models/income_breakdown.rb | 4 +- 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 | 4 +- .../models/income_summary_field_string.rb | 4 +- .../income_verification_create_request.rb | 4 +- ...ome_verification_create_request_options.rb | 4 +- .../income_verification_create_response.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 | 52 +- ...fication_precheck_employer_address_data.rb | 52 +- ...ome_verification_precheck_military_info.rb | 4 +- .../income_verification_precheck_request.rb | 4 +- .../income_verification_precheck_response.rb | 4 +- .../income_verification_precheck_user.rb | 4 +- .../income_verification_refresh_request.rb | 4 +- .../income_verification_refresh_response.rb | 4 +- .../models/income_verification_source_type.rb | 4 +- .../income_verification_status_webhook.rb | 23 +- ...ncome_verification_taxforms_get_request.rb | 4 +- ...come_verification_taxforms_get_response.rb | 4 +- .../income_verification_webhook_status.rb | 4 +- lib/plaid/models/inflow_model.rb | 4 +- lib/plaid/models/initial_update_webhook.rb | 4 +- lib/plaid/models/institution.rb | 4 +- lib/plaid/models/institution_status.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 | 25 +- .../models/institutions_search_request.rb | 4 +- .../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 | 4 +- .../models/investment_transaction_subtype.rb | 4 +- .../models/investment_transaction_type.rb | 4 +- .../investments_default_update_webhook.rb | 4 +- .../investments_holdings_get_request.rb | 4 +- .../investments_holdings_get_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/item.rb | 4 +- .../item_access_token_invalidate_request.rb | 4 +- .../item_access_token_invalidate_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 | 4 +- ...item_application_scopes_update_response.rb | 4 +- lib/plaid/models/item_error_webhook.rb | 4 +- 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_product_ready_webhook.rb | 4 +- .../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 | 6 +- .../models/item_webhook_update_response.rb | 4 +- lib/plaid/models/jwk_public_key.rb | 4 +- lib/plaid/models/jwt_header.rb | 4 +- .../liabilities_default_update_webhook.rb | 4 +- 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 +- .../models/link_token_account_filters.rb | 4 +- .../models/link_token_create_credit_filter.rb | 4 +- .../link_token_create_depository_filter.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 | 4 +- ...k_token_create_request_account_subtypes.rb | 4 +- .../models/link_token_create_request_auth.rb | 4 +- ...ink_token_create_request_deposit_switch.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_transfer.rb | 4 +- .../link_token_create_request_update.rb | 4 +- .../models/link_token_create_request_user.rb | 4 +- .../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 +- lib/plaid/models/loan_account_subtype.rb | 4 +- lib/plaid/models/loan_filter.rb | 4 +- lib/plaid/models/location.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 +- lib/plaid/models/net_pay.rb | 4 +- .../models/new_accounts_available_webhook.rb | 4 +- lib/plaid/models/numbers.rb | 4 +- lib/plaid/models/numbers_ach.rb | 4 +- lib/plaid/models/numbers_ach_nullable.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_international.rb | 4 +- .../models/numbers_international_nullable.rb | 4 +- lib/plaid/models/override_account_type.rb | 4 +- lib/plaid/models/override_accounts.rb | 4 +- lib/plaid/models/owner.rb | 4 +- lib/plaid/models/owner_override.rb | 4 +- lib/plaid/models/pay.rb | 4 +- lib/plaid/models/pay_frequency.rb | 4 +- lib/plaid/models/pay_frequency_value.rb | 4 +- lib/plaid/models/pay_period_details.rb | 4 +- lib/plaid/models/pay_stub.rb | 329 ++++++++++++ lib/plaid/models/pay_stub_address.rb | 265 ++++++++++ lib/plaid/models/pay_stub_deductions.rb | 240 +++++++++ .../models/pay_stub_deductions_breakdown.rb | 265 ++++++++++ lib/plaid/models/pay_stub_deductions_total.rb | 254 +++++++++ .../models/pay_stub_distribution_breakdown.rb | 287 +++++++++++ ...quested_scopes.rb => pay_stub_earnings.rb} | 51 +- .../models/pay_stub_earnings_breakdown.rb | 298 +++++++++++ lib/plaid/models/pay_stub_earnings_total.rb | 265 ++++++++++ lib/plaid/models/pay_stub_employee.rb | 260 ++++++++++ lib/plaid/models/pay_stub_employer.rb | 235 +++++++++ lib/plaid/models/pay_stub_net_pay.rb | 265 ++++++++++ .../models/pay_stub_pay_period_details.rb | 314 +++++++++++ lib/plaid/models/pay_stub_taxpayer_id.rb | 232 +++++++++ lib/plaid/models/pay_stub_verification.rb | 237 +++++++++ .../models/pay_stub_verification_attribute.rb | 221 ++++++++ lib/plaid/models/payment_amount.rb | 4 +- lib/plaid/models/payment_amount_currency.rb | 4 +- lib/plaid/models/payment_channel.rb | 4 +- .../payment_consent_max_payment_amount.rb | 4 +- .../payment_consent_periodic_alignment.rb | 4 +- .../models/payment_consent_periodic_amount.rb | 4 +- .../payment_consent_periodic_amount_amount.rb | 4 +- .../payment_consent_periodic_interval.rb | 4 +- .../models/payment_consent_valid_date_time.rb | 6 +- .../models/payment_initiation_address.rb | 4 +- .../models/payment_initiation_consent.rb | 4 +- .../payment_initiation_consent_constraints.rb | 5 +- ...yment_initiation_consent_create_request.rb | 4 +- ...ment_initiation_consent_create_response.rb | 4 +- .../payment_initiation_consent_get_request.rb | 4 +- ...payment_initiation_consent_get_response.rb | 4 +- ...tiation_consent_payment_execute_request.rb | 4 +- ...iation_consent_payment_execute_response.rb | 4 +- ...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 | 4 +- ...yment_initiation_payment_create_request.rb | 4 +- ...ment_initiation_payment_create_response.rb | 4 +- ...ayment_initiation_payment_create_status.rb | 4 +- .../payment_initiation_payment_get_request.rb | 4 +- ...payment_initiation_payment_get_response.rb | 4 +- ...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 | 4 +- .../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 +- lib/plaid/models/payment_initiation_refund.rb | 4 +- .../payment_initiation_refund_status.rb | 4 +- ...ment_initiation_standing_order_metadata.rb | 4 +- lib/plaid/models/payment_meta.rb | 4 +- lib/plaid/models/payment_schedule_interval.rb | 4 +- lib/plaid/models/payment_scheme.rb | 4 +- .../models/payment_status_update_webhook.rb | 4 +- lib/plaid/models/payroll_income_object.rb | 255 +++++++++ lib/plaid/models/payroll_item.rb | 241 +++++++++ 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 | 4 +- 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_verification.rb | 4 +- .../models/paystub_verification_status.rb | 4 +- lib/plaid/models/paystub_ytd_details.rb | 4 +- .../models/pending_expiration_webhook.rb | 4 +- lib/plaid/models/personal_finance_category.rb | 4 +- lib/plaid/models/phone_number.rb | 4 +- lib/plaid/models/plaid_error.rb | 4 +- lib/plaid/models/platform_ids.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 | 4 +- ...processor_bank_transfer_create_response.rb | 4 +- .../models/processor_identity_get_request.rb | 4 +- .../models/processor_identity_get_response.rb | 4 +- lib/plaid/models/processor_number.rb | 4 +- ...tripe_bank_account_token_create_request.rb | 4 +- ...ripe_bank_account_token_create_response.rb | 4 +- .../models/processor_token_create_request.rb | 8 +- .../models/processor_token_create_response.rb | 4 +- lib/plaid/models/product_access.rb | 4 +- lib/plaid/models/product_status.rb | 4 +- lib/plaid/models/product_status_breakdown.rb | 4 +- lib/plaid/models/products.rb | 4 +- .../projected_income_summary_field_number.rb | 4 +- lib/plaid/models/pslf_status.rb | 4 +- lib/plaid/models/recaptcha_required_error.rb | 4 +- lib/plaid/models/recipient_bacs.rb | 6 +- lib/plaid/models/recipient_bacs_nullable.rb | 4 +- .../models/recurring_transaction_frequency.rb | 4 +- lib/plaid/models/relay_event.rb | 4 +- lib/plaid/models/removed_transaction.rb | 4 +- ...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 +- .../sandbox_item_fire_webhook_request.rb | 21 +- .../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 +- .../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 +- ...box_public_token_create_request_options.rb | 4 +- ...ken_create_request_options_transactions.rb | 4 +- .../sandbox_public_token_create_response.rb | 4 +- .../sandbox_transfer_fire_webhook_request.rb | 245 +++++++++ .../sandbox_transfer_fire_webhook_response.rb | 225 ++++++++ ...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 +- lib/plaid/models/scopes.rb | 4 +- lib/plaid/models/scopes_context.rb | 4 +- lib/plaid/models/scopes_nullable.rb | 4 +- lib/plaid/models/security.rb | 4 +- lib/plaid/models/security_override.rb | 4 +- lib/plaid/models/sender_bacs_nullable.rb | 4 +- lib/plaid/models/servicer_address_data.rb | 4 +- lib/plaid/models/signal_address_data.rb | 4 +- .../models/signal_decision_report_request.rb | 4 +- .../models/signal_decision_report_response.rb | 4 +- lib/plaid/models/signal_device.rb | 4 +- .../models/signal_evaluate_core_attributes.rb | 333 +++++++++++- lib/plaid/models/signal_evaluate_request.rb | 4 +- lib/plaid/models/signal_evaluate_response.rb | 4 +- lib/plaid/models/signal_person_name.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/simulated_transfer_sweep.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/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/taxform.rb | 4 +- lib/plaid/models/taxpayer_id.rb | 4 +- lib/plaid/models/total.rb | 4 +- .../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_data.rb | 4 +- lib/plaid/models/transaction_override.rb | 4 +- lib/plaid/models/transaction_stream.rb | 4 +- 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 +- lib/plaid/models/transactions_get_request.rb | 4 +- .../transactions_get_request_options.rb | 8 +- lib/plaid/models/transactions_get_response.rb | 4 +- .../transactions_recurring_get_request.rb | 4 +- .../transactions_recurring_get_response.rb | 4 +- .../models/transactions_refresh_request.rb | 4 +- .../models/transactions_refresh_response.rb | 4 +- .../models/transactions_removed_webhook.rb | 4 +- lib/plaid/models/transactions_rule_details.rb | 4 +- 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 +- .../models/transactions_sync_response.rb | 4 +- lib/plaid/models/transfer.rb | 4 +- lib/plaid/models/transfer_authorization.rb | 4 +- .../transfer_authorization_create_request.rb | 4 +- .../transfer_authorization_create_response.rb | 4 +- .../models/transfer_authorization_decision.rb | 4 +- ...ansfer_authorization_decision_rationale.rb | 4 +- ...r_authorization_decision_rationale_code.rb | 4 +- .../models/transfer_authorization_device.rb | 4 +- ...ansfer_authorization_guarantee_decision.rb | 4 +- ...horization_guarantee_decision_rationale.rb | 4 +- ...ation_guarantee_decision_rationale_code.rb | 4 +- ...ransfer_authorization_proposed_transfer.rb | 4 +- lib/plaid/models/transfer_cancel_request.rb | 4 +- lib/plaid/models/transfer_cancel_response.rb | 4 +- lib/plaid/models/transfer_create_request.rb | 4 +- lib/plaid/models/transfer_create_response.rb | 4 +- lib/plaid/models/transfer_event.rb | 4 +- .../models/transfer_event_list_request.rb | 4 +- .../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 +- lib/plaid/models/transfer_failure.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 | 4 +- .../models/transfer_intent_create_mode.rb | 4 +- .../models/transfer_intent_create_request.rb | 13 +- .../models/transfer_intent_create_response.rb | 4 +- lib/plaid/models/transfer_intent_get.rb | 4 +- .../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_list_request.rb | 4 +- lib/plaid/models/transfer_list_response.rb | 4 +- .../transfer_migrate_account_request.rb | 285 ++++++++++ .../transfer_migrate_account_response.rb | 255 +++++++++ lib/plaid/models/transfer_network.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 +- lib/plaid/models/transfer_status.rb | 4 +- lib/plaid/models/transfer_sweep.rb | 4 +- .../models/transfer_sweep_get_request.rb | 4 +- .../models/transfer_sweep_get_response.rb | 4 +- .../models/transfer_sweep_list_request.rb | 4 +- .../models/transfer_sweep_list_response.rb | 4 +- lib/plaid/models/transfer_sweep_status.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 +- lib/plaid/models/transfer_user_in_response.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 +- .../models/user_permission_revoked_webhook.rb | 4 +- lib/plaid/models/verification_attribute.rb | 4 +- .../models/verification_expired_webhook.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_balance.rb | 4 +- lib/plaid/models/wallet_get_request.rb | 4 +- lib/plaid/models/wallet_get_response.rb | 21 +- lib/plaid/models/wallet_numbers.rb | 220 ++++++++ lib/plaid/models/wallet_transaction.rb | 4 +- lib/plaid/models/wallet_transaction_amount.rb | 4 +- .../models/wallet_transaction_counterparty.rb | 4 +- .../wallet_transaction_counterparty_bacs.rb | 4 +- ...wallet_transaction_counterparty_numbers.rb | 4 +- .../wallet_transaction_execute_request.rb | 4 +- .../wallet_transaction_execute_response.rb | 4 +- lib/plaid/models/wallet_transaction_status.rb | 4 +- .../wallet_transactions_list_request.rb | 4 +- .../wallet_transactions_list_response.rb | 4 +- lib/plaid/models/warning.rb | 4 +- ..._application_status.rb => webhook_type.rb} | 14 +- .../webhook_update_acknowledged_webhook.rb | 4 +- .../webhook_verification_key_get_request.rb | 4 +- .../webhook_verification_key_get_response.rb | 4 +- .../ytd_gross_income_summary_field_number.rb | 4 +- .../ytd_net_income_summary_field_number.rb | 4 +- lib/plaid/version.rb | 6 +- plaid.gemspec | 4 +- test/test_income_verifications.rb | 76 --- 653 files changed, 11389 insertions(+), 1572 deletions(-) create mode 100644 lib/plaid/models/cause_all_of.rb create mode 100644 lib/plaid/models/credit_document_metadata.rb create mode 100644 lib/plaid/models/credit_employer_verification.rb create mode 100644 lib/plaid/models/credit_employment_get_request.rb create mode 100644 lib/plaid/models/credit_employment_get_response.rb create mode 100644 lib/plaid/models/credit_employment_verification.rb create mode 100644 lib/plaid/models/credit_payroll_income_get_request.rb create mode 100644 lib/plaid/models/credit_payroll_income_get_response.rb create mode 100644 lib/plaid/models/credit_payroll_income_precheck_request.rb create mode 100644 lib/plaid/models/credit_payroll_income_precheck_response.rb create mode 100644 lib/plaid/models/credit_platform_ids.rb create mode 100644 lib/plaid/models/credit_w2.rb create mode 100644 lib/plaid/models/pay_stub.rb create mode 100644 lib/plaid/models/pay_stub_address.rb create mode 100644 lib/plaid/models/pay_stub_deductions.rb create mode 100644 lib/plaid/models/pay_stub_deductions_breakdown.rb create mode 100644 lib/plaid/models/pay_stub_deductions_total.rb create mode 100644 lib/plaid/models/pay_stub_distribution_breakdown.rb rename lib/plaid/models/{requested_scopes.rb => pay_stub_earnings.rb} (81%) create mode 100644 lib/plaid/models/pay_stub_earnings_breakdown.rb create mode 100644 lib/plaid/models/pay_stub_earnings_total.rb create mode 100644 lib/plaid/models/pay_stub_employee.rb create mode 100644 lib/plaid/models/pay_stub_employer.rb create mode 100644 lib/plaid/models/pay_stub_net_pay.rb create mode 100644 lib/plaid/models/pay_stub_pay_period_details.rb create mode 100644 lib/plaid/models/pay_stub_taxpayer_id.rb create mode 100644 lib/plaid/models/pay_stub_verification.rb create mode 100644 lib/plaid/models/pay_stub_verification_attribute.rb create mode 100644 lib/plaid/models/payroll_income_object.rb create mode 100644 lib/plaid/models/payroll_item.rb create mode 100644 lib/plaid/models/sandbox_transfer_fire_webhook_request.rb create mode 100644 lib/plaid/models/sandbox_transfer_fire_webhook_response.rb create mode 100644 lib/plaid/models/transfer_migrate_account_request.rb create mode 100644 lib/plaid/models/transfer_migrate_account_response.rb create mode 100644 lib/plaid/models/wallet_numbers.rb rename lib/plaid/models/{connected_application_status.rb => webhook_type.rb} (70%) delete mode 100644 test/test_income_verifications.rb diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index d463bab3c..b02eefadf 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -104,10 +104,10 @@ docs/BankTransfersEventsUpdateWebhook.md docs/CategoriesGetResponse.md docs/Category.md docs/Cause.md +docs/CauseAllOf.md docs/ClientProvidedEnhancedTransaction.md docs/ClientProvidedRawTransaction.md docs/ConnectedApplication.md -docs/ConnectedApplicationStatus.md docs/CountryCode.md docs/CreditAccountSubtype.md docs/CreditBankIncome.md @@ -129,7 +129,18 @@ docs/CreditBankIncomeWarning.md docs/CreditBankIncomeWarningCode.md docs/CreditBankIncomeWarningType.md docs/CreditCardLiability.md +docs/CreditDocumentMetadata.md +docs/CreditEmployerVerification.md +docs/CreditEmploymentGetRequest.md +docs/CreditEmploymentGetResponse.md +docs/CreditEmploymentVerification.md docs/CreditFilter.md +docs/CreditPayrollIncomeGetRequest.md +docs/CreditPayrollIncomeGetResponse.md +docs/CreditPayrollIncomePrecheckRequest.md +docs/CreditPayrollIncomePrecheckResponse.md +docs/CreditPlatformIds.md +docs/CreditW2.md docs/CustomerInitiatedReturnRisk.md docs/Deductions.md docs/DeductionsBreakdown.md @@ -332,6 +343,22 @@ docs/Pay.md docs/PayFrequency.md docs/PayFrequencyValue.md docs/PayPeriodDetails.md +docs/PayStub.md +docs/PayStubAddress.md +docs/PayStubDeductions.md +docs/PayStubDeductionsBreakdown.md +docs/PayStubDeductionsTotal.md +docs/PayStubDistributionBreakdown.md +docs/PayStubEarnings.md +docs/PayStubEarningsBreakdown.md +docs/PayStubEarningsTotal.md +docs/PayStubEmployee.md +docs/PayStubEmployer.md +docs/PayStubNetPay.md +docs/PayStubPayPeriodDetails.md +docs/PayStubTaxpayerID.md +docs/PayStubVerification.md +docs/PayStubVerificationAttribute.md docs/PaymentAmount.md docs/PaymentAmountCurrency.md docs/PaymentChannel.md @@ -384,6 +411,8 @@ docs/PaymentMeta.md docs/PaymentScheduleInterval.md docs/PaymentScheme.md docs/PaymentStatusUpdateWebhook.md +docs/PayrollIncomeObject.md +docs/PayrollItem.md docs/Paystub.md docs/PaystubAddress.md docs/PaystubDeduction.md @@ -429,7 +458,6 @@ docs/RecipientBACSNullable.md docs/RecurringTransactionFrequency.md docs/RelayEvent.md docs/RemovedTransaction.md -docs/RequestedScopes.md docs/SandboxBankTransferFireWebhookRequest.md docs/SandboxBankTransferFireWebhookResponse.md docs/SandboxBankTransferSimulateRequest.md @@ -450,6 +478,8 @@ docs/SandboxPublicTokenCreateRequest.md docs/SandboxPublicTokenCreateRequestOptions.md docs/SandboxPublicTokenCreateRequestOptionsTransactions.md docs/SandboxPublicTokenCreateResponse.md +docs/SandboxTransferFireWebhookRequest.md +docs/SandboxTransferFireWebhookResponse.md docs/SandboxTransferRepaymentSimulateRequest.md docs/SandboxTransferRepaymentSimulateResponse.md docs/SandboxTransferSimulateRequest.md @@ -556,6 +586,8 @@ docs/TransferIntentGetResponse.md docs/TransferIntentStatus.md docs/TransferListRequest.md docs/TransferListResponse.md +docs/TransferMigrateAccountRequest.md +docs/TransferMigrateAccountResponse.md docs/TransferNetwork.md docs/TransferRepayment.md docs/TransferRepaymentListRequest.md @@ -589,6 +621,7 @@ docs/W2StateAndLocalWages.md docs/WalletBalance.md docs/WalletGetRequest.md docs/WalletGetResponse.md +docs/WalletNumbers.md docs/WalletTransaction.md docs/WalletTransactionAmount.md docs/WalletTransactionCounterparty.md @@ -600,6 +633,7 @@ docs/WalletTransactionStatus.md docs/WalletTransactionsListRequest.md docs/WalletTransactionsListResponse.md docs/Warning.md +docs/WebhookType.md docs/WebhookUpdateAcknowledgedWebhook.md docs/WebhookVerificationKeyGetRequest.md docs/WebhookVerificationKeyGetResponse.md @@ -610,7 +644,6 @@ lib/plaid/api/plaid_api.rb lib/plaid/api_client.rb lib/plaid/api_error.rb lib/plaid/configuration.rb -lib/plaid/configuration.rb lib/plaid/models/account_access.rb lib/plaid/models/account_assets.rb lib/plaid/models/account_assets_all_of.rb @@ -717,10 +750,10 @@ lib/plaid/models/bank_transfers_events_update_webhook.rb lib/plaid/models/categories_get_response.rb lib/plaid/models/category.rb lib/plaid/models/cause.rb +lib/plaid/models/cause_all_of.rb lib/plaid/models/client_provided_enhanced_transaction.rb lib/plaid/models/client_provided_raw_transaction.rb lib/plaid/models/connected_application.rb -lib/plaid/models/connected_application_status.rb lib/plaid/models/country_code.rb lib/plaid/models/credit_account_subtype.rb lib/plaid/models/credit_bank_income.rb @@ -742,7 +775,18 @@ lib/plaid/models/credit_bank_income_warning.rb lib/plaid/models/credit_bank_income_warning_code.rb lib/plaid/models/credit_bank_income_warning_type.rb lib/plaid/models/credit_card_liability.rb +lib/plaid/models/credit_document_metadata.rb +lib/plaid/models/credit_employer_verification.rb +lib/plaid/models/credit_employment_get_request.rb +lib/plaid/models/credit_employment_get_response.rb +lib/plaid/models/credit_employment_verification.rb lib/plaid/models/credit_filter.rb +lib/plaid/models/credit_payroll_income_get_request.rb +lib/plaid/models/credit_payroll_income_get_response.rb +lib/plaid/models/credit_payroll_income_precheck_request.rb +lib/plaid/models/credit_payroll_income_precheck_response.rb +lib/plaid/models/credit_platform_ids.rb +lib/plaid/models/credit_w2.rb lib/plaid/models/customer_initiated_return_risk.rb lib/plaid/models/deductions.rb lib/plaid/models/deductions_breakdown.rb @@ -944,6 +988,22 @@ lib/plaid/models/pay.rb lib/plaid/models/pay_frequency.rb lib/plaid/models/pay_frequency_value.rb lib/plaid/models/pay_period_details.rb +lib/plaid/models/pay_stub.rb +lib/plaid/models/pay_stub_address.rb +lib/plaid/models/pay_stub_deductions.rb +lib/plaid/models/pay_stub_deductions_breakdown.rb +lib/plaid/models/pay_stub_deductions_total.rb +lib/plaid/models/pay_stub_distribution_breakdown.rb +lib/plaid/models/pay_stub_earnings.rb +lib/plaid/models/pay_stub_earnings_breakdown.rb +lib/plaid/models/pay_stub_earnings_total.rb +lib/plaid/models/pay_stub_employee.rb +lib/plaid/models/pay_stub_employer.rb +lib/plaid/models/pay_stub_net_pay.rb +lib/plaid/models/pay_stub_pay_period_details.rb +lib/plaid/models/pay_stub_taxpayer_id.rb +lib/plaid/models/pay_stub_verification.rb +lib/plaid/models/pay_stub_verification_attribute.rb lib/plaid/models/payment_amount.rb lib/plaid/models/payment_amount_currency.rb lib/plaid/models/payment_channel.rb @@ -996,6 +1056,8 @@ lib/plaid/models/payment_meta.rb lib/plaid/models/payment_schedule_interval.rb lib/plaid/models/payment_scheme.rb lib/plaid/models/payment_status_update_webhook.rb +lib/plaid/models/payroll_income_object.rb +lib/plaid/models/payroll_item.rb lib/plaid/models/paystub.rb lib/plaid/models/paystub_address.rb lib/plaid/models/paystub_deduction.rb @@ -1041,7 +1103,6 @@ lib/plaid/models/recipient_bacs_nullable.rb lib/plaid/models/recurring_transaction_frequency.rb lib/plaid/models/relay_event.rb lib/plaid/models/removed_transaction.rb -lib/plaid/models/requested_scopes.rb lib/plaid/models/sandbox_bank_transfer_fire_webhook_request.rb lib/plaid/models/sandbox_bank_transfer_fire_webhook_response.rb lib/plaid/models/sandbox_bank_transfer_simulate_request.rb @@ -1062,6 +1123,8 @@ lib/plaid/models/sandbox_public_token_create_request.rb lib/plaid/models/sandbox_public_token_create_request_options.rb lib/plaid/models/sandbox_public_token_create_request_options_transactions.rb lib/plaid/models/sandbox_public_token_create_response.rb +lib/plaid/models/sandbox_transfer_fire_webhook_request.rb +lib/plaid/models/sandbox_transfer_fire_webhook_response.rb lib/plaid/models/sandbox_transfer_repayment_simulate_request.rb lib/plaid/models/sandbox_transfer_repayment_simulate_response.rb lib/plaid/models/sandbox_transfer_simulate_request.rb @@ -1168,6 +1231,8 @@ lib/plaid/models/transfer_intent_get_response.rb lib/plaid/models/transfer_intent_status.rb lib/plaid/models/transfer_list_request.rb lib/plaid/models/transfer_list_response.rb +lib/plaid/models/transfer_migrate_account_request.rb +lib/plaid/models/transfer_migrate_account_response.rb lib/plaid/models/transfer_network.rb lib/plaid/models/transfer_repayment.rb lib/plaid/models/transfer_repayment_list_request.rb @@ -1201,6 +1266,7 @@ lib/plaid/models/w2_state_and_local_wages.rb lib/plaid/models/wallet_balance.rb lib/plaid/models/wallet_get_request.rb lib/plaid/models/wallet_get_response.rb +lib/plaid/models/wallet_numbers.rb lib/plaid/models/wallet_transaction.rb lib/plaid/models/wallet_transaction_amount.rb lib/plaid/models/wallet_transaction_counterparty.rb @@ -1212,6 +1278,7 @@ lib/plaid/models/wallet_transaction_status.rb lib/plaid/models/wallet_transactions_list_request.rb lib/plaid/models/wallet_transactions_list_response.rb lib/plaid/models/warning.rb +lib/plaid/models/webhook_type.rb lib/plaid/models/webhook_update_acknowledged_webhook.rb lib/plaid/models/webhook_verification_key_get_request.rb lib/plaid/models/webhook_verification_key_get_response.rb diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index acf69b48b..3bff05917 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -5.1.0 \ No newline at end of file +5.1.1 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 43f20614a..31391712d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,89 @@ See full changelog for the OpenAPI schema (OAS) [here](https://github.com/plaid/plaid-openapi/blob/master/CHANGELOG.md). +# 15.2.0 +- Updating to OAS 2020-09-14_1.94.0 + +## OpenAPI Schema Changes +### 2020-09-14_1.94.0 +- Add `use_case`, `company_legal_name`, `city`, `region`, `country_code`, `postal_code` as a required response field of `Application` + +### 2020-09-14_1.93.2 +- Remove `income_verification_id` from income webhook example +- Fix incorrect URL for `/user/create` endpoint + +### 2020-09-14_1.93.1 +- Remove deprecated `income_verification_id` from income webhooks +- Standardize income webhook casing + +### 2020-09-14_1.93.0 +- Add several new fields to `/signal/evaluate` response +- +### 2020-09-14_1.92.4 +- Add `/sandbox/transfer/fire_webhook` endpoint + +### 2020-09-14_1.91.4 +- Mark certain Income endpoints as deprecated in favor of the new `/credit/*` endpoints. + +### 2020-09-14_1.91.3 +- Add `checkout` processor to `/processor/token/create` + +### 2020-09-14_1.91.2 +- Add `webhook_type` parameter to `/sandbox/item/fire_webhook` +- Support for investments transactions, investments holdings and liabilities `DEFAULT_UPDATE` webhooks + +### 2020-09-14_1.90.2 +- Add new warning type to `/credit/bank_income/get` response + +### 2020-09-14_1.90.1 +- Add `marqeta` and `solid` as Auth processor partners +- Fix schema of `cause` parameter for Asset Reports +- Fix some invalid examples + +### 2020-09-14_1.90.0 +- Add `/credit/employment/get` endpoint +- Add optional `access_tokens` array to `/credit/payroll_income/precheck` request + +### 2020-09-14_1.89.3 +- Update description of `/sandbox/item/fire_webhook` + +### 2020-09-14_1.89.2 +- Update description of `accounts/get` + +### 2020-09-14_1.89.1 +- Added `AUTH_DATA_UPDATE` webhook code as valid input to `/sandbox/item/fire_webhook` +- Update description for `/sandbox/item/fire_webhook` + +### 2020-09-14_1.89.0 +- Add `/transfer/migrate_account` endpoint + +### 2020-09-14_1.88.2 +- Fix operationId for `/credit/payroll_income/precheck` + +### 2020-09-14_1.88.1 +- Remove deprecated fields from `/item/application/list` + +### 2020-09-14_1.88.0 +- Add `wire_routing_number` parameter to `/bank_transfer/migrate_account` + +### 2020-09-14_1.87.1 +- Specify minimum length of 1 for `description` on `TransferIntentCreateRequest` + +### 2020-09-14_1.87.0 +- Add `consent_id` support in the Institutions Search request + +### 2020-09-14_1.86.1 +- Add `apex_clearing` as a processor partner + +### 2020-09-14_1.86.0 +- Introduce Credit Payroll Income APIs +- Introduce Credit Precheck API + +### 2020-09-14_1.85.1 +- Add `/identity_verification/create` endpoint, kept private for now + +### 2020-09-14_1.85.0 +- Add `status` field to `ConnectedApplication` + # 15.1.0 - Updating to OAS 2020-09-14_1.84.5 diff --git a/Makefile b/Makefile index 2d05c0af1..bc026c16e 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=15.1.0 +RUBY_PACKAGE_VERSION=15.2.0 .PHONY: release release: diff --git a/README.md b/README.md index 7abf22bd8..9aa408ae2 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Each major version of `plaid-ruby` targets a specific version of the Plaid API: For information about what has changed between versions and how to update your integration, head to the [version changelog][version-changelog]. -The plaid-ruby client library is typically updated on a biweekly basis. The canonical source for the latest version number is the [client library changelog](https://github.com/plaid/plaid-ruby/blob/master/CHANGELOG.md). +The plaid-ruby client library is typically updated on a monthly basis. The canonical source for the latest version number is the [client library changelog](https://github.com/plaid/plaid-ruby/blob/master/CHANGELOG.md). ## Usage diff --git a/lib/plaid.rb b/lib/plaid.rb index 715cebfce..c7cf33cbd 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end @@ -123,10 +123,10 @@ require 'plaid/models/categories_get_response' require 'plaid/models/category' require 'plaid/models/cause' +require 'plaid/models/cause_all_of' require 'plaid/models/client_provided_enhanced_transaction' require 'plaid/models/client_provided_raw_transaction' require 'plaid/models/connected_application' -require 'plaid/models/connected_application_status' require 'plaid/models/country_code' require 'plaid/models/credit_account_subtype' require 'plaid/models/credit_bank_income' @@ -148,7 +148,18 @@ require 'plaid/models/credit_bank_income_warning_code' require 'plaid/models/credit_bank_income_warning_type' require 'plaid/models/credit_card_liability' +require 'plaid/models/credit_document_metadata' +require 'plaid/models/credit_employer_verification' +require 'plaid/models/credit_employment_get_request' +require 'plaid/models/credit_employment_get_response' +require 'plaid/models/credit_employment_verification' require 'plaid/models/credit_filter' +require 'plaid/models/credit_payroll_income_get_request' +require 'plaid/models/credit_payroll_income_get_response' +require 'plaid/models/credit_payroll_income_precheck_request' +require 'plaid/models/credit_payroll_income_precheck_response' +require 'plaid/models/credit_platform_ids' +require 'plaid/models/credit_w2' require 'plaid/models/customer_initiated_return_risk' require 'plaid/models/deductions' require 'plaid/models/deductions_breakdown' @@ -351,6 +362,22 @@ require 'plaid/models/pay_frequency' require 'plaid/models/pay_frequency_value' require 'plaid/models/pay_period_details' +require 'plaid/models/pay_stub' +require 'plaid/models/pay_stub_address' +require 'plaid/models/pay_stub_deductions' +require 'plaid/models/pay_stub_deductions_breakdown' +require 'plaid/models/pay_stub_deductions_total' +require 'plaid/models/pay_stub_distribution_breakdown' +require 'plaid/models/pay_stub_earnings' +require 'plaid/models/pay_stub_earnings_breakdown' +require 'plaid/models/pay_stub_earnings_total' +require 'plaid/models/pay_stub_employee' +require 'plaid/models/pay_stub_employer' +require 'plaid/models/pay_stub_net_pay' +require 'plaid/models/pay_stub_pay_period_details' +require 'plaid/models/pay_stub_taxpayer_id' +require 'plaid/models/pay_stub_verification' +require 'plaid/models/pay_stub_verification_attribute' require 'plaid/models/payment_amount' require 'plaid/models/payment_amount_currency' require 'plaid/models/payment_channel' @@ -403,6 +430,8 @@ require 'plaid/models/payment_schedule_interval' require 'plaid/models/payment_scheme' require 'plaid/models/payment_status_update_webhook' +require 'plaid/models/payroll_income_object' +require 'plaid/models/payroll_item' require 'plaid/models/paystub' require 'plaid/models/paystub_address' require 'plaid/models/paystub_deduction' @@ -447,7 +476,6 @@ require 'plaid/models/recurring_transaction_frequency' require 'plaid/models/relay_event' require 'plaid/models/removed_transaction' -require 'plaid/models/requested_scopes' require 'plaid/models/sandbox_bank_transfer_fire_webhook_request' require 'plaid/models/sandbox_bank_transfer_fire_webhook_response' require 'plaid/models/sandbox_bank_transfer_simulate_request' @@ -468,6 +496,8 @@ require 'plaid/models/sandbox_public_token_create_request_options' require 'plaid/models/sandbox_public_token_create_request_options_transactions' require 'plaid/models/sandbox_public_token_create_response' +require 'plaid/models/sandbox_transfer_fire_webhook_request' +require 'plaid/models/sandbox_transfer_fire_webhook_response' require 'plaid/models/sandbox_transfer_repayment_simulate_request' require 'plaid/models/sandbox_transfer_repayment_simulate_response' require 'plaid/models/sandbox_transfer_simulate_request' @@ -574,6 +604,8 @@ require 'plaid/models/transfer_intent_status' require 'plaid/models/transfer_list_request' require 'plaid/models/transfer_list_response' +require 'plaid/models/transfer_migrate_account_request' +require 'plaid/models/transfer_migrate_account_response' require 'plaid/models/transfer_network' require 'plaid/models/transfer_repayment' require 'plaid/models/transfer_repayment_list_request' @@ -607,6 +639,7 @@ require 'plaid/models/wallet_balance' require 'plaid/models/wallet_get_request' require 'plaid/models/wallet_get_response' +require 'plaid/models/wallet_numbers' require 'plaid/models/wallet_transaction' require 'plaid/models/wallet_transaction_amount' require 'plaid/models/wallet_transaction_counterparty' @@ -618,6 +651,7 @@ require 'plaid/models/wallet_transactions_list_request' require 'plaid/models/wallet_transactions_list_response' require 'plaid/models/warning' +require 'plaid/models/webhook_type' require 'plaid/models/webhook_update_acknowledged_webhook' require 'plaid/models/webhook_verification_key_get_request' require 'plaid/models/webhook_verification_key_get_response' diff --git a/lib/plaid/api/plaid_api.rb b/lib/plaid/api/plaid_api.rb index c2db9bae3..820f7d7d2 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end @@ -85,7 +85,7 @@ def accounts_balance_get_with_http_info(accounts_balance_get_request, opts = {}) end # Retrieve accounts - # The `/accounts/get` endpoint can be used to retrieve a list of accounts associated with any linked Item. Plaid will only return active bank accounts — that is, accounts that are not closed and are capable of carrying a balance. This endpoint only returns accounts that were permissioned by the user when they initially created the Item. If a user creates a new account after the initial link, you can capture this event through the [`NEW_ACCOUNTS_AVAILABLE`](https://plaid.com/docs/api/items/#new_accounts_available) webhook and then use Link's [update mode](https://plaid.com/docs/link/update-mode/) to request that the user share this new account with you. This endpoint retrieves cached information, rather than extracting fresh information from the institution. As a result, balances returned may not be up-to-date; for realtime balance information, use `/accounts/balance/get` instead. Note that some information is nullable. + # The `/accounts/get` endpoint can be used to retrieve a list of accounts associated with any linked Item. Plaid will only return active bank accounts — that is, accounts that are not closed and are capable of carrying a balance. For items that went through the updated account selection pane, this endpoint only returns accounts that were permissioned by the user when they initially created the Item. If a user creates a new account after the initial link, you can capture this event through the [`NEW_ACCOUNTS_AVAILABLE`](https://plaid.com/docs/api/items/#new_accounts_available) webhook and then use Link's [update mode](https://plaid.com/docs/link/update-mode/) to request that the user share this new account with you. This endpoint retrieves cached information, rather than extracting fresh information from the institution. As a result, balances returned may not be up-to-date; for realtime balance information, use `/accounts/balance/get` instead. Note that some information is nullable. # @param accounts_get_request [AccountsGetRequest] # @param [Hash] opts the optional parameters # @return [AccountsGetResponse] @@ -95,7 +95,7 @@ def accounts_get(accounts_get_request, opts = {}) end # Retrieve accounts - # The `/accounts/get` endpoint can be used to retrieve a list of accounts associated with any linked Item. Plaid will only return active bank accounts — that is, accounts that are not closed and are capable of carrying a balance. This endpoint only returns accounts that were permissioned by the user when they initially created the Item. If a user creates a new account after the initial link, you can capture this event through the [`NEW_ACCOUNTS_AVAILABLE`](https://plaid.com/docs/api/items/#new_accounts_available) webhook and then use Link's [update mode](https://plaid.com/docs/link/update-mode/) to request that the user share this new account with you. This endpoint retrieves cached information, rather than extracting fresh information from the institution. As a result, balances returned may not be up-to-date; for realtime balance information, use `/accounts/balance/get` instead. Note that some information is nullable. + # The `/accounts/get` endpoint can be used to retrieve a list of accounts associated with any linked Item. Plaid will only return active bank accounts — that is, accounts that are not closed and are capable of carrying a balance. For items that went through the updated account selection pane, this endpoint only returns accounts that were permissioned by the user when they initially created the Item. If a user creates a new account after the initial link, you can capture this event through the [`NEW_ACCOUNTS_AVAILABLE`](https://plaid.com/docs/api/items/#new_accounts_available) webhook and then use Link's [update mode](https://plaid.com/docs/link/update-mode/) to request that the user share this new account with you. This endpoint retrieves cached information, rather than extracting fresh information from the institution. As a result, balances returned may not be up-to-date; for realtime balance information, use `/accounts/balance/get` instead. Note that some information is nullable. # @param accounts_get_request [AccountsGetRequest] # @param [Hash] opts the optional parameters # @return [Array<(AccountsGetResponse, Integer, Hash)>] AccountsGetResponse data, response status code and response headers @@ -1969,6 +1969,201 @@ def credit_bank_income_get_with_http_info(credit_bank_income_get_request, opts = return data, status_code, headers end + # Retrieve a summary of an individual's employment information + # `/credit/employment/get` returns a list of employments through a user payroll that was verified by an end user. + # @param credit_employment_get_request [CreditEmploymentGetRequest] + # @param [Hash] opts the optional parameters + # @return [CreditEmploymentGetResponse] + def credit_employment_get(credit_employment_get_request, opts = {}) + data, _status_code, _headers = credit_employment_get_with_http_info(credit_employment_get_request, opts) + data + end + + # Retrieve a summary of an individual's employment information + # `/credit/employment/get` returns a list of employments through a user payroll that was verified by an end user. + # @param credit_employment_get_request [CreditEmploymentGetRequest] + # @param [Hash] opts the optional parameters + # @return [Array<(CreditEmploymentGetResponse, Integer, Hash)>] CreditEmploymentGetResponse data, response status code and response headers + def credit_employment_get_with_http_info(credit_employment_get_request, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: PlaidApi.credit_employment_get ...' + end + # verify the required parameter 'credit_employment_get_request' is set + if @api_client.config.client_side_validation && credit_employment_get_request.nil? + fail ArgumentError, "Missing the required parameter 'credit_employment_get_request' when calling PlaidApi.credit_employment_get" + end + # resource path + local_var_path = '/credit/employment/get' + + # query parameters + query_params = opts[:query_params] || {} + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] || @api_client.object_to_http_body(credit_employment_get_request) + + # return_type + return_type = opts[:debug_return_type] || 'CreditEmploymentGetResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret'] + + new_options = opts.merge( + :operation => :"PlaidApi.credit_employment_get", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: PlaidApi#credit_employment_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Retrieve a user's payroll information + # This endpoint gets payroll income information for a specific user, either as a result of the user connecting to their payroll provider or uploading a pay related document. + # @param credit_payroll_income_get_request [CreditPayrollIncomeGetRequest] + # @param [Hash] opts the optional parameters + # @return [CreditPayrollIncomeGetResponse] + def credit_payroll_income_get(credit_payroll_income_get_request, opts = {}) + data, _status_code, _headers = credit_payroll_income_get_with_http_info(credit_payroll_income_get_request, opts) + data + end + + # Retrieve a user's payroll information + # This endpoint gets payroll income information for a specific user, either as a result of the user connecting to their payroll provider or uploading a pay related document. + # @param credit_payroll_income_get_request [CreditPayrollIncomeGetRequest] + # @param [Hash] opts the optional parameters + # @return [Array<(CreditPayrollIncomeGetResponse, Integer, Hash)>] CreditPayrollIncomeGetResponse data, response status code and response headers + def credit_payroll_income_get_with_http_info(credit_payroll_income_get_request, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: PlaidApi.credit_payroll_income_get ...' + end + # verify the required parameter 'credit_payroll_income_get_request' is set + if @api_client.config.client_side_validation && credit_payroll_income_get_request.nil? + fail ArgumentError, "Missing the required parameter 'credit_payroll_income_get_request' when calling PlaidApi.credit_payroll_income_get" + end + # resource path + local_var_path = '/credit/payroll_income/get' + + # query parameters + query_params = opts[:query_params] || {} + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] || @api_client.object_to_http_body(credit_payroll_income_get_request) + + # return_type + return_type = opts[:debug_return_type] || 'CreditPayrollIncomeGetResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret'] + + new_options = opts.merge( + :operation => :"PlaidApi.credit_payroll_income_get", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: PlaidApi#credit_payroll_income_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Check income verification eligibility and optimize conversion + # `/credit/payroll_income/precheck` is an optional endpoint that can be called before initializing a Link session for income verification. It evaluates whether a given user is supportable by digital income verification. If the user is eligible for digital verification, that information will be associated with the user token, and in this way will generate a Link UI optimized for the end user and their specific employer. If the user cannot be confirmed as eligible, the user can still use the income verification flow, but they may be required to manually upload a paystub to verify their income. While all request fields are optional, providing `employer` data will increase the chance of receiving a useful result. + # @param credit_payroll_income_precheck_request [CreditPayrollIncomePrecheckRequest] + # @param [Hash] opts the optional parameters + # @return [CreditPayrollIncomePrecheckResponse] + def credit_payroll_income_precheck(credit_payroll_income_precheck_request, opts = {}) + data, _status_code, _headers = credit_payroll_income_precheck_with_http_info(credit_payroll_income_precheck_request, opts) + data + end + + # Check income verification eligibility and optimize conversion + # `/credit/payroll_income/precheck` is an optional endpoint that can be called before initializing a Link session for income verification. It evaluates whether a given user is supportable by digital income verification. If the user is eligible for digital verification, that information will be associated with the user token, and in this way will generate a Link UI optimized for the end user and their specific employer. If the user cannot be confirmed as eligible, the user can still use the income verification flow, but they may be required to manually upload a paystub to verify their income. While all request fields are optional, providing `employer` data will increase the chance of receiving a useful result. + # @param credit_payroll_income_precheck_request [CreditPayrollIncomePrecheckRequest] + # @param [Hash] opts the optional parameters + # @return [Array<(CreditPayrollIncomePrecheckResponse, Integer, Hash)>] CreditPayrollIncomePrecheckResponse data, response status code and response headers + def credit_payroll_income_precheck_with_http_info(credit_payroll_income_precheck_request, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: PlaidApi.credit_payroll_income_precheck ...' + end + # verify the required parameter 'credit_payroll_income_precheck_request' is set + if @api_client.config.client_side_validation && credit_payroll_income_precheck_request.nil? + fail ArgumentError, "Missing the required parameter 'credit_payroll_income_precheck_request' when calling PlaidApi.credit_payroll_income_precheck" + end + # resource path + local_var_path = '/credit/payroll_income/precheck' + + # query parameters + query_params = opts[:query_params] || {} + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] || @api_client.object_to_http_body(credit_payroll_income_precheck_request) + + # return_type + return_type = opts[:debug_return_type] || 'CreditPayrollIncomePrecheckResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret'] + + new_options = opts.merge( + :operation => :"PlaidApi.credit_payroll_income_precheck", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: PlaidApi#credit_payroll_income_precheck\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Create a deposit switch without using Plaid Exchange # This endpoint provides an alternative to `/deposit_switch/create` for customers who have not yet fully integrated with Plaid Exchange. Like `/deposit_switch/create`, it creates a deposit switch entity that will be persisted throughout the lifecycle of the switch. # @param deposit_switch_alt_create_request [DepositSwitchAltCreateRequest] @@ -2294,8 +2489,8 @@ def employers_search_with_http_info(employers_search_request, opts = {}) return data, status_code, headers end - # Retrieve a summary of an individual's employment information - # `/employment/verification/get` returns a list of employments through a user payroll that was verified by an end user. + # (Deprecated) Retrieve a summary of an individual's employment information + # `/employment/verification/get` returns a list of employments through a user payroll that was verified by an end user. This endpoint has been deprecated; new integrations should use `/credit/employment/get` instead. # @param employment_verification_get_request [EmploymentVerificationGetRequest] # @param [Hash] opts the optional parameters # @return [EmploymentVerificationGetResponse] @@ -2304,8 +2499,8 @@ def employment_verification_get(employment_verification_get_request, opts = {}) data end - # Retrieve a summary of an individual's employment information - # `/employment/verification/get` returns a list of employments through a user payroll that was verified by an end user. + # (Deprecated) Retrieve a summary of an individual's employment information + # `/employment/verification/get` returns a list of employments through a user payroll that was verified by an end user. This endpoint has been deprecated; new integrations should use `/credit/employment/get` instead. # @param employment_verification_get_request [EmploymentVerificationGetRequest] # @param [Hash] opts the optional parameters # @return [Array<(EmploymentVerificationGetResponse, Integer, Hash)>] EmploymentVerificationGetResponse data, response status code and response headers @@ -2489,7 +2684,7 @@ def income_verification_create_with_http_info(income_verification_create_request return data, status_code, headers end - # Download the original documents used for income verification + # (Deprecated) Download the original documents used for income verification # `/income/verification/documents/download` provides the ability to download the source documents associated with the verification. If Document Income was used, the documents will be those the user provided in Link. For Payroll Income, the most recent files available for download from the payroll provider will be available from this endpoint. The response to `/income/verification/documents/download` is a ZIP file in binary data. If a `document_id` is passed, a single document will be contained in this file. If not, the response will contain all documents associated with the verification. The `request_id` is returned in the `Plaid-Request-ID` header. # @param income_verification_documents_download_request [IncomeVerificationDocumentsDownloadRequest] # @param [Hash] opts the optional parameters @@ -2499,7 +2694,7 @@ def income_verification_documents_download(income_verification_documents_downloa data end - # Download the original documents used for income verification + # (Deprecated) Download the original documents used for income verification # `/income/verification/documents/download` provides the ability to download the source documents associated with the verification. If Document Income was used, the documents will be those the user provided in Link. For Payroll Income, the most recent files available for download from the payroll provider will be available from this endpoint. The response to `/income/verification/documents/download` is a ZIP file in binary data. If a `document_id` is passed, a single document will be contained in this file. If not, the response will contain all documents associated with the verification. The `request_id` is returned in the `Plaid-Request-ID` header. # @param income_verification_documents_download_request [IncomeVerificationDocumentsDownloadRequest] # @param [Hash] opts the optional parameters @@ -2554,8 +2749,8 @@ def income_verification_documents_download_with_http_info(income_verification_do return data, status_code, headers end - # Retrieve information from the paystubs used for income verification - # `/income/verification/paystubs/get` returns the information collected from the paystubs that were used to verify an end user's income. It can be called once the status of the verification has been set to `VERIFICATION_STATUS_PROCESSING_COMPLETE`, as reported by the `INCOME: verification_status` webhook. Attempting to call the endpoint before verification has been completed will result in an error. + # (Deprecated) Retrieve information from the paystubs used for income verification + # `/income/verification/paystubs/get` returns the information collected from the paystubs that were used to verify an end user''s income. It can be called once the status of the verification has been set to `VERIFICATION_STATUS_PROCESSING_COMPLETE`, as reported by the `INCOME: verification_status` webhook. Attempting to call the endpoint before verification has been completed will result in an error. This endpoint has been deprecated; new integrations should use `/credit/payroll_income/get` instead. # @param income_verification_paystubs_get_request [IncomeVerificationPaystubsGetRequest] # @param [Hash] opts the optional parameters # @return [IncomeVerificationPaystubsGetResponse] @@ -2564,8 +2759,8 @@ def income_verification_paystubs_get(income_verification_paystubs_get_request, o data end - # Retrieve information from the paystubs used for income verification - # `/income/verification/paystubs/get` returns the information collected from the paystubs that were used to verify an end user's income. It can be called once the status of the verification has been set to `VERIFICATION_STATUS_PROCESSING_COMPLETE`, as reported by the `INCOME: verification_status` webhook. Attempting to call the endpoint before verification has been completed will result in an error. + # (Deprecated) Retrieve information from the paystubs used for income verification + # `/income/verification/paystubs/get` returns the information collected from the paystubs that were used to verify an end user''s income. It can be called once the status of the verification has been set to `VERIFICATION_STATUS_PROCESSING_COMPLETE`, as reported by the `INCOME: verification_status` webhook. Attempting to call the endpoint before verification has been completed will result in an error. This endpoint has been deprecated; new integrations should use `/credit/payroll_income/get` instead. # @param income_verification_paystubs_get_request [IncomeVerificationPaystubsGetRequest] # @param [Hash] opts the optional parameters # @return [Array<(IncomeVerificationPaystubsGetResponse, Integer, Hash)>] IncomeVerificationPaystubsGetResponse data, response status code and response headers @@ -2619,8 +2814,8 @@ def income_verification_paystubs_get_with_http_info(income_verification_paystubs return data, status_code, headers end - # Check digital income verification eligibility and optimize conversion - # `/income/verification/precheck` is an optional endpoint that can be called before initializing a Link session for income verification. It evaluates whether a given user is supportable by digital income verification and returns a `precheck_id` that can be provided to `/link/token/create`. If the user is eligible for digital verification, providing the `precheck_id` in this way will generate a Link UI optimized for the end user and their specific employer. If the user cannot be confirmed as eligible, the `precheck_id` can still be provided to `/link/token/create` and the user can still use the income verification flow, but they may be required to manually upload a paystub to verify their income. While all request fields are optional, providing either `employer` or `transactions_access_tokens` data will increase the chance of receiving a useful result. + # (Deprecated) Check digital income verification eligibility and optimize conversion + # `/income/verification/precheck` is an optional endpoint that can be called before initializing a Link session for income verification. It evaluates whether a given user is supportable by digital income verification and returns a `precheck_id` that can be provided to `/link/token/create`. If the user is eligible for digital verification, providing the `precheck_id` in this way will generate a Link UI optimized for the end user and their specific employer. If the user cannot be confirmed as eligible, the `precheck_id` can still be provided to `/link/token/create` and the user can still use the income verification flow, but they may be required to manually upload a paystub to verify their income. While all request fields are optional, providing either `employer` or `transactions_access_tokens` data will increase the chance of receiving a useful result. This endpoint has been deprecated; new integrations should use `/credit/payroll_income/precheck` instead. # @param income_verification_precheck_request [IncomeVerificationPrecheckRequest] # @param [Hash] opts the optional parameters # @return [IncomeVerificationPrecheckResponse] @@ -2629,8 +2824,8 @@ def income_verification_precheck(income_verification_precheck_request, opts = {} data end - # Check digital income verification eligibility and optimize conversion - # `/income/verification/precheck` is an optional endpoint that can be called before initializing a Link session for income verification. It evaluates whether a given user is supportable by digital income verification and returns a `precheck_id` that can be provided to `/link/token/create`. If the user is eligible for digital verification, providing the `precheck_id` in this way will generate a Link UI optimized for the end user and their specific employer. If the user cannot be confirmed as eligible, the `precheck_id` can still be provided to `/link/token/create` and the user can still use the income verification flow, but they may be required to manually upload a paystub to verify their income. While all request fields are optional, providing either `employer` or `transactions_access_tokens` data will increase the chance of receiving a useful result. + # (Deprecated) Check digital income verification eligibility and optimize conversion + # `/income/verification/precheck` is an optional endpoint that can be called before initializing a Link session for income verification. It evaluates whether a given user is supportable by digital income verification and returns a `precheck_id` that can be provided to `/link/token/create`. If the user is eligible for digital verification, providing the `precheck_id` in this way will generate a Link UI optimized for the end user and their specific employer. If the user cannot be confirmed as eligible, the `precheck_id` can still be provided to `/link/token/create` and the user can still use the income verification flow, but they may be required to manually upload a paystub to verify their income. While all request fields are optional, providing either `employer` or `transactions_access_tokens` data will increase the chance of receiving a useful result. This endpoint has been deprecated; new integrations should use `/credit/payroll_income/precheck` instead. # @param income_verification_precheck_request [IncomeVerificationPrecheckRequest] # @param [Hash] opts the optional parameters # @return [Array<(IncomeVerificationPrecheckResponse, Integer, Hash)>] IncomeVerificationPrecheckResponse data, response status code and response headers @@ -2684,7 +2879,7 @@ def income_verification_precheck_with_http_info(income_verification_precheck_req return data, status_code, headers end - # Refresh an income verification + # (Deprecated) Refresh an income verification # `/income/verification/refresh` refreshes a given income verification. # @param income_verification_refresh_request [IncomeVerificationRefreshRequest] # @param [Hash] opts the optional parameters @@ -2694,7 +2889,7 @@ def income_verification_refresh(income_verification_refresh_request, opts = {}) data end - # Refresh an income verification + # (Deprecated) Refresh an income verification # `/income/verification/refresh` refreshes a given income verification. # @param income_verification_refresh_request [IncomeVerificationRefreshRequest] # @param [Hash] opts the optional parameters @@ -2749,8 +2944,8 @@ def income_verification_refresh_with_http_info(income_verification_refresh_reque return data, status_code, headers end - # Retrieve information from the tax documents used for income verification - # `/income/verification/taxforms/get` returns the information collected from forms that were used to verify an end user's income. It can be called once the status of the verification has been set to `VERIFICATION_STATUS_PROCESSING_COMPLETE`, as reported by the `INCOME: verification_status` webhook. Attempting to call the endpoint before verification has been completed will result in an error. + # (Deprecated) Retrieve information from the tax documents used for income verification + # `/income/verification/taxforms/get` returns the information collected from forms that were used to verify an end user''s income. It can be called once the status of the verification has been set to `VERIFICATION_STATUS_PROCESSING_COMPLETE`, as reported by the `INCOME: verification_status` webhook. Attempting to call the endpoint before verification has been completed will result in an error. This endpoint has been deprecated; new integrations should use `/credit/payroll_income/get` instead. # @param request_body [Hash] # @param [Hash] opts the optional parameters # @return [IncomeVerificationTaxformsGetResponse] @@ -2759,8 +2954,8 @@ def income_verification_taxforms_get(request_body, opts = {}) data end - # Retrieve information from the tax documents used for income verification - # `/income/verification/taxforms/get` returns the information collected from forms that were used to verify an end user's income. It can be called once the status of the verification has been set to `VERIFICATION_STATUS_PROCESSING_COMPLETE`, as reported by the `INCOME: verification_status` webhook. Attempting to call the endpoint before verification has been completed will result in an error. + # (Deprecated) Retrieve information from the tax documents used for income verification + # `/income/verification/taxforms/get` returns the information collected from forms that were used to verify an end user''s income. It can be called once the status of the verification has been set to `VERIFICATION_STATUS_PROCESSING_COMPLETE`, as reported by the `INCOME: verification_status` webhook. Attempting to call the endpoint before verification has been completed will result in an error. This endpoint has been deprecated; new integrations should use `/credit/payroll_income/get` instead. # @param request_body [Hash] # @param [Hash] opts the optional parameters # @return [Array<(IncomeVerificationTaxformsGetResponse, Integer, Hash)>] IncomeVerificationTaxformsGetResponse data, response status code and response headers @@ -5285,7 +5480,7 @@ def sandbox_income_fire_webhook_with_http_info(sandbox_income_fire_webhook_reque end # Fire a test webhook - # The `/sandbox/item/fire_webhook` endpoint is used to test that code correctly handles webhooks. This endpoint can trigger a Transactions `DEFAULT_UPDATE` webhook to be fired for a given Sandbox Item. If the Item does not support Transactions, a `SANDBOX_PRODUCT_NOT_ENABLED` error will result. This endpoint can also trigger a `NEW_ACCOUNTS_AVAILABLE` webhook to be fired for a given Sandbox Item created with Account Select v2. Note that this endpoint is provided for developer ease-of-use and is not required for testing webhooks; webhooks will also fire in Sandbox under the same conditions that they would in Production or Development. + # The `/sandbox/item/fire_webhook` endpoint is used to test that code correctly handles webhooks. This endpoint can trigger the following webhooks: `DEFAULT_UPDATE`: Transactions update webhook to be fired for a given Sandbox Item. If the Item does not support Transactions, a `SANDBOX_PRODUCT_NOT_ENABLED` error will result. `NEW_ACCOUNTS_AVAILABLE`: Webhook to be fired for a given Sandbox Item created with Account Select v2. `AUTH_DATA_UPDATE`: Webhook to be fired for a given Sandbox Item created with Auth as an enabled product. Note that this endpoint is provided for developer ease-of-use and is not required for testing webhooks; webhooks will also fire in Sandbox under the same conditions that they would in Production or Development' # @param sandbox_item_fire_webhook_request [SandboxItemFireWebhookRequest] # @param [Hash] opts the optional parameters # @return [SandboxItemFireWebhookResponse] @@ -5295,7 +5490,7 @@ def sandbox_item_fire_webhook(sandbox_item_fire_webhook_request, opts = {}) end # Fire a test webhook - # The `/sandbox/item/fire_webhook` endpoint is used to test that code correctly handles webhooks. This endpoint can trigger a Transactions `DEFAULT_UPDATE` webhook to be fired for a given Sandbox Item. If the Item does not support Transactions, a `SANDBOX_PRODUCT_NOT_ENABLED` error will result. This endpoint can also trigger a `NEW_ACCOUNTS_AVAILABLE` webhook to be fired for a given Sandbox Item created with Account Select v2. Note that this endpoint is provided for developer ease-of-use and is not required for testing webhooks; webhooks will also fire in Sandbox under the same conditions that they would in Production or Development. + # The `/sandbox/item/fire_webhook` endpoint is used to test that code correctly handles webhooks. This endpoint can trigger the following webhooks: `DEFAULT_UPDATE`: Transactions update webhook to be fired for a given Sandbox Item. If the Item does not support Transactions, a `SANDBOX_PRODUCT_NOT_ENABLED` error will result. `NEW_ACCOUNTS_AVAILABLE`: Webhook to be fired for a given Sandbox Item created with Account Select v2. `AUTH_DATA_UPDATE`: Webhook to be fired for a given Sandbox Item created with Auth as an enabled product. Note that this endpoint is provided for developer ease-of-use and is not required for testing webhooks; webhooks will also fire in Sandbox under the same conditions that they would in Production or Development' # @param sandbox_item_fire_webhook_request [SandboxItemFireWebhookRequest] # @param [Hash] opts the optional parameters # @return [Array<(SandboxItemFireWebhookResponse, Integer, Hash)>] SandboxItemFireWebhookResponse data, response status code and response headers @@ -5674,6 +5869,71 @@ def sandbox_public_token_create_with_http_info(sandbox_public_token_create_reque return data, status_code, headers end + # Manually fire a Transfer webhook + # Use the `/sandbox/transfer/fire_webhook` endpoint to manually trigger a Transfer webhook in the Sandbox environment. + # @param sandbox_transfer_fire_webhook_request [SandboxTransferFireWebhookRequest] + # @param [Hash] opts the optional parameters + # @return [SandboxTransferFireWebhookResponse] + def sandbox_transfer_fire_webhook(sandbox_transfer_fire_webhook_request, opts = {}) + data, _status_code, _headers = sandbox_transfer_fire_webhook_with_http_info(sandbox_transfer_fire_webhook_request, opts) + data + end + + # Manually fire a Transfer webhook + # Use the `/sandbox/transfer/fire_webhook` endpoint to manually trigger a Transfer webhook in the Sandbox environment. + # @param sandbox_transfer_fire_webhook_request [SandboxTransferFireWebhookRequest] + # @param [Hash] opts the optional parameters + # @return [Array<(SandboxTransferFireWebhookResponse, Integer, Hash)>] SandboxTransferFireWebhookResponse data, response status code and response headers + def sandbox_transfer_fire_webhook_with_http_info(sandbox_transfer_fire_webhook_request, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: PlaidApi.sandbox_transfer_fire_webhook ...' + end + # verify the required parameter 'sandbox_transfer_fire_webhook_request' is set + if @api_client.config.client_side_validation && sandbox_transfer_fire_webhook_request.nil? + fail ArgumentError, "Missing the required parameter 'sandbox_transfer_fire_webhook_request' when calling PlaidApi.sandbox_transfer_fire_webhook" + end + # resource path + local_var_path = '/sandbox/transfer/fire_webhook' + + # query parameters + query_params = opts[:query_params] || {} + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] || @api_client.object_to_http_body(sandbox_transfer_fire_webhook_request) + + # return_type + return_type = opts[:debug_return_type] || 'SandboxTransferFireWebhookResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret'] + + new_options = opts.merge( + :operation => :"PlaidApi.sandbox_transfer_fire_webhook", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: PlaidApi#sandbox_transfer_fire_webhook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Trigger the creation of a repayment # Use the `/sandbox/transfer/repayment/simulate` endpoint to trigger the creation of a repayment. As a side effect of calling this route, a repayment is created that includes all unreimbursed returns of guaranteed transfers. If there are no such returns, an 400 error is returned. # @param sandbox_transfer_repayment_simulate_request [SandboxTransferRepaymentSimulateRequest] @@ -6585,7 +6845,7 @@ def transactions_sync_with_http_info(transactions_sync_request, opts = {}) end # Create a transfer authorization - # Use the `/transfer/authorization/create` endpoint to determine transfer failure risk. In Plaid's sandbox environment the decisions will be returned as follows: - To approve a transfer with null rationale code, make an authorization request with an `amount` less than the available balance in the account. - To approve a transfer with the rationale code `MANUALLY_VERIFIED_ITEM`, create an Item in Link through the [Same Day Micro-deposits flow](https://plaid.com/docs/auth/coverage/testing/#testing-same-day-micro-deposits). - To approve a transfer with the rationale code `LOGIN_REQUIRED`, [reset the login for an Item](https://plaid.com/docs/sandbox/#item_login_required). - To decline a transfer with the rationale code `NSF`, the available balance on the account must be less than the authorization `amount`. See [Create Sandbox test data](https://plaid.com/docs/sandbox/user-custom/) for details on how to customize data in Sandbox. - To decline a transfer with the rationale code `RISK`, the available balance on the account must be exactly $0. See [Create Sandbox test data](https://plaid.com/docs/sandbox/user-custom/) for details on how to customize data in Sandbox. + # Use the `/transfer/authorization/create` endpoint to determine transfer failure risk. In Plaid's sandbox environment the decisions will be returned as follows: - To approve a transfer with null rationale code, make an authorization request with an `amount` less than the available balance in the account. - To approve a transfer with the rationale code `MANUALLY_VERIFIED_ITEM`, create an Item in Link through the [Same Day Micro-deposits flow](https://plaid.com/docs/auth/coverage/testing/#testing-same-day-micro-deposits). - To approve a transfer with the rationale code `LOGIN_REQUIRED`, [reset the login for an Item](https://plaid.com/docs/sandbox/#item_login_required). - To decline a transfer with the rationale code `NSF`, the available balance on the account must be less than the authorization `amount`. See [Create Sandbox test data](https://plaid.com/docs/sandbox/user-custom/) for details on how to customize data in Sandbox. - To decline a transfer with the rationale code `RISK`, the available balance on the account must be exactly $0. See [Create Sandbox test data](https://plaid.com/docs/sandbox/user-custom/) for details on how to customize data in Sandbox. # @param transfer_authorization_create_request [TransferAuthorizationCreateRequest] # @param [Hash] opts the optional parameters # @return [TransferAuthorizationCreateResponse] @@ -6595,7 +6855,7 @@ def transfer_authorization_create(transfer_authorization_create_request, opts = end # Create a transfer authorization - # Use the `/transfer/authorization/create` endpoint to determine transfer failure risk. In Plaid's sandbox environment the decisions will be returned as follows: - To approve a transfer with null rationale code, make an authorization request with an `amount` less than the available balance in the account. - To approve a transfer with the rationale code `MANUALLY_VERIFIED_ITEM`, create an Item in Link through the [Same Day Micro-deposits flow](https://plaid.com/docs/auth/coverage/testing/#testing-same-day-micro-deposits). - To approve a transfer with the rationale code `LOGIN_REQUIRED`, [reset the login for an Item](https://plaid.com/docs/sandbox/#item_login_required). - To decline a transfer with the rationale code `NSF`, the available balance on the account must be less than the authorization `amount`. See [Create Sandbox test data](https://plaid.com/docs/sandbox/user-custom/) for details on how to customize data in Sandbox. - To decline a transfer with the rationale code `RISK`, the available balance on the account must be exactly $0. See [Create Sandbox test data](https://plaid.com/docs/sandbox/user-custom/) for details on how to customize data in Sandbox. + # Use the `/transfer/authorization/create` endpoint to determine transfer failure risk. In Plaid's sandbox environment the decisions will be returned as follows: - To approve a transfer with null rationale code, make an authorization request with an `amount` less than the available balance in the account. - To approve a transfer with the rationale code `MANUALLY_VERIFIED_ITEM`, create an Item in Link through the [Same Day Micro-deposits flow](https://plaid.com/docs/auth/coverage/testing/#testing-same-day-micro-deposits). - To approve a transfer with the rationale code `LOGIN_REQUIRED`, [reset the login for an Item](https://plaid.com/docs/sandbox/#item_login_required). - To decline a transfer with the rationale code `NSF`, the available balance on the account must be less than the authorization `amount`. See [Create Sandbox test data](https://plaid.com/docs/sandbox/user-custom/) for details on how to customize data in Sandbox. - To decline a transfer with the rationale code `RISK`, the available balance on the account must be exactly $0. See [Create Sandbox test data](https://plaid.com/docs/sandbox/user-custom/) for details on how to customize data in Sandbox. # @param transfer_authorization_create_request [TransferAuthorizationCreateRequest] # @param [Hash] opts the optional parameters # @return [Array<(TransferAuthorizationCreateResponse, Integer, Hash)>] TransferAuthorizationCreateResponse data, response status code and response headers @@ -7169,6 +7429,71 @@ def transfer_list_with_http_info(transfer_list_request, opts = {}) return data, status_code, headers end + # Migrate account into Transfers + # As an alternative to adding Items via Link, you can also use the `/transfer/migrate_account` endpoint to migrate known account and routing numbers to Plaid Items. Note that Items created in this way are not compatible with endpoints for other products, such as `/accounts/balance/get`, and can only be used with Transfer endpoints. If you require access to other endpoints, create the Item through Link instead. Access to `/transfer/migrate_account` is not enabled by default; to obtain access, contact your Plaid Account Manager. + # @param transfer_migrate_account_request [TransferMigrateAccountRequest] + # @param [Hash] opts the optional parameters + # @return [TransferMigrateAccountResponse] + def transfer_migrate_account(transfer_migrate_account_request, opts = {}) + data, _status_code, _headers = transfer_migrate_account_with_http_info(transfer_migrate_account_request, opts) + data + end + + # Migrate account into Transfers + # As an alternative to adding Items via Link, you can also use the `/transfer/migrate_account` endpoint to migrate known account and routing numbers to Plaid Items. Note that Items created in this way are not compatible with endpoints for other products, such as `/accounts/balance/get`, and can only be used with Transfer endpoints. If you require access to other endpoints, create the Item through Link instead. Access to `/transfer/migrate_account` is not enabled by default; to obtain access, contact your Plaid Account Manager. + # @param transfer_migrate_account_request [TransferMigrateAccountRequest] + # @param [Hash] opts the optional parameters + # @return [Array<(TransferMigrateAccountResponse, Integer, Hash)>] TransferMigrateAccountResponse data, response status code and response headers + def transfer_migrate_account_with_http_info(transfer_migrate_account_request, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: PlaidApi.transfer_migrate_account ...' + end + # verify the required parameter 'transfer_migrate_account_request' is set + if @api_client.config.client_side_validation && transfer_migrate_account_request.nil? + fail ArgumentError, "Missing the required parameter 'transfer_migrate_account_request' when calling PlaidApi.transfer_migrate_account" + end + # resource path + local_var_path = '/transfer/migrate_account' + + # query parameters + query_params = opts[:query_params] || {} + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] || @api_client.object_to_http_body(transfer_migrate_account_request) + + # return_type + return_type = opts[:debug_return_type] || 'TransferMigrateAccountResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret'] + + new_options = opts.merge( + :operation => :"PlaidApi.transfer_migrate_account", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: PlaidApi#transfer_migrate_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Lists historical repayments # The `/transfer/repayment/list` endpoint fetches repayments matching the given filters. Repayments are returned in reverse-chronological order (most recent first) starting at the given `start_time`. # @param transfer_repayment_list_request [TransferRepaymentListRequest] @@ -7430,7 +7755,7 @@ def transfer_sweep_list_with_http_info(transfer_sweep_list_request, opts = {}) end # Create user - # Note: As of February 2022, the `/user/create` endpoint is in beta. Unless you have been opted-in, you will not have access to this endpoint. + # This endpoint should be called for each of your end users before they begin a Plaid income flow. This provides you a single token to access all income data associated with the user. You should only create one per end user. # @param user_create_request [UserCreateRequest] # @param [Hash] opts the optional parameters # @return [UserCreateResponse] @@ -7440,7 +7765,7 @@ def user_create(user_create_request, opts = {}) end # Create user - # Note: As of February 2022, the `/user/create` endpoint is in beta. Unless you have been opted-in, you will not have access to this endpoint. + # This endpoint should be called for each of your end users before they begin a Plaid income flow. This provides you a single token to access all income data associated with the user. You should only create one per end user. # @param user_create_request [UserCreateRequest] # @param [Hash] opts the optional parameters # @return [Array<(UserCreateResponse, Integer, Hash)>] UserCreateResponse data, response status code and response headers diff --git a/lib/plaid/api_client.rb b/lib/plaid/api_client.rb index 96845140c..d670b1da4 100644 --- a/lib/plaid/api_client.rb +++ b/lib/plaid/api_client.rb @@ -3,10 +3,10 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end @@ -30,7 +30,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 v15.1.0" + @user_agent = "Plaid Ruby v15.2.0" @default_headers = { 'Content-Type' => 'application/json', 'User-Agent' => @user_agent, diff --git a/lib/plaid/api_error.rb b/lib/plaid/api_error.rb index df40a3314..09d826e1b 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/configuration.rb b/lib/plaid/configuration.rb index b2a7934af..7ebe88707 100644 --- a/lib/plaid/configuration.rb +++ b/lib/plaid/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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/account_access.rb b/lib/plaid/models/account_access.rb index 9d55626e8..cb7e1448b 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/account_assets.rb b/lib/plaid/models/account_assets.rb index 9ec0878c1..5ef3dadc1 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/account_assets_all_of.rb b/lib/plaid/models/account_assets_all_of.rb index d7c7d1e29..6766d5c15 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/account_balance.rb b/lib/plaid/models/account_balance.rb index 3dc543fbb..7c86b80ad 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/account_base.rb b/lib/plaid/models/account_base.rb index f4d445cc8..37f2d6406 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/account_filter.rb b/lib/plaid/models/account_filter.rb index d70b64e6e..9aed379d6 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/account_filters_response.rb b/lib/plaid/models/account_filters_response.rb index bebb5e71c..10e6cf4e0 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/account_identity.rb b/lib/plaid/models/account_identity.rb index 1898025e0..2e8fa2dbb 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/account_identity_all_of.rb b/lib/plaid/models/account_identity_all_of.rb index 6317622ea..46538702b 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/account_product_access.rb b/lib/plaid/models/account_product_access.rb index 3d5802876..5e0b97bba 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/account_product_access_nullable.rb b/lib/plaid/models/account_product_access_nullable.rb index 842591fd5..e4728fd08 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/account_selection_cardinality.rb b/lib/plaid/models/account_selection_cardinality.rb index c154fe7f4..ff96d1278 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/account_subtype.rb b/lib/plaid/models/account_subtype.rb index 91fafd74c..3868ac10c 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/account_type.rb b/lib/plaid/models/account_type.rb index aadb1034d..1558dba9a 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/accounts_balance_get_request.rb b/lib/plaid/models/accounts_balance_get_request.rb index aad9f48dc..fa37dbe40 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/accounts_balance_get_request_options.rb b/lib/plaid/models/accounts_balance_get_request_options.rb index 914a58c39..da45baf81 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/accounts_get_request.rb b/lib/plaid/models/accounts_get_request.rb index 1eb70674b..223be910a 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/accounts_get_request_options.rb b/lib/plaid/models/accounts_get_request_options.rb index 424f1cd59..3e89b93d9 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/accounts_get_response.rb b/lib/plaid/models/accounts_get_response.rb index 2da9db4e0..f018055ed 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/ach_class.rb b/lib/plaid/models/ach_class.rb index 94206ac0a..dc7544d3e 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/address.rb b/lib/plaid/models/address.rb index 591bd8670..bc4f00c2d 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/address_data.rb b/lib/plaid/models/address_data.rb index 442022c69..e36e4fce3 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/address_data_nullable.rb b/lib/plaid/models/address_data_nullable.rb index cf0b2bc5c..98480a1d3 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/address_nullable.rb b/lib/plaid/models/address_nullable.rb index c70aaf20d..98549c871 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/application.rb b/lib/plaid/models/application.rb index 4e861589e..944d96e31 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end @@ -37,6 +37,24 @@ class Application # A string provided by the connected app stating why they use their respective enabled products. attr_accessor :reason_for_access + # A string representing client’s broad use case as assessed by Plaid. + attr_accessor :use_case + + # A string representing the name of client’s legal entity. + attr_accessor :company_legal_name + + # A string representing the city of the client’s headquarters. + attr_accessor :city + + # A string representing the region of the client’s headquarters. + attr_accessor :region + + # A string representing the postal code of the client’s headquarters. + attr_accessor :postal_code + + # A string representing the country code of the client’s headquarters. + attr_accessor :country_code + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -46,7 +64,13 @@ def self.attribute_map :'join_date' => :'join_date', :'logo_url' => :'logo_url', :'application_url' => :'application_url', - :'reason_for_access' => :'reason_for_access' + :'reason_for_access' => :'reason_for_access', + :'use_case' => :'use_case', + :'company_legal_name' => :'company_legal_name', + :'city' => :'city', + :'region' => :'region', + :'postal_code' => :'postal_code', + :'country_code' => :'country_code' } end @@ -64,7 +88,13 @@ def self.openapi_types :'join_date' => :'Date', :'logo_url' => :'String', :'application_url' => :'String', - :'reason_for_access' => :'String' + :'reason_for_access' => :'String', + :'use_case' => :'String', + :'company_legal_name' => :'String', + :'city' => :'String', + :'region' => :'String', + :'postal_code' => :'String', + :'country_code' => :'String' } end @@ -73,7 +103,13 @@ def self.openapi_nullable Set.new([ :'logo_url', :'application_url', - :'reason_for_access' + :'reason_for_access', + :'use_case', + :'company_legal_name', + :'city', + :'region', + :'postal_code', + :'country_code' ]) end @@ -119,6 +155,30 @@ def initialize(attributes = {}) if attributes.key?(:'reason_for_access') self.reason_for_access = attributes[:'reason_for_access'] end + + if attributes.key?(:'use_case') + self.use_case = attributes[:'use_case'] + end + + if attributes.key?(:'company_legal_name') + self.company_legal_name = attributes[:'company_legal_name'] + end + + if attributes.key?(:'city') + self.city = attributes[:'city'] + end + + if attributes.key?(:'region') + self.region = attributes[:'region'] + end + + if attributes.key?(:'postal_code') + self.postal_code = attributes[:'postal_code'] + end + + if attributes.key?(:'country_code') + self.country_code = attributes[:'country_code'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -160,7 +220,13 @@ def ==(o) join_date == o.join_date && logo_url == o.logo_url && application_url == o.application_url && - reason_for_access == o.reason_for_access + reason_for_access == o.reason_for_access && + use_case == o.use_case && + company_legal_name == o.company_legal_name && + city == o.city && + region == o.region && + postal_code == o.postal_code && + country_code == o.country_code end # @see the `==` method @@ -172,7 +238,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [application_id, name, created_at, join_date, logo_url, application_url, reason_for_access].hash + [application_id, name, created_at, join_date, logo_url, application_url, reason_for_access, use_case, company_legal_name, city, region, postal_code, country_code].hash end # Builds the object from hash diff --git a/lib/plaid/models/application_get_request.rb b/lib/plaid/models/application_get_request.rb index 38927e860..992622910 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/application_get_response.rb b/lib/plaid/models/application_get_response.rb index 1072b4cd3..e1efa7305 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/apr.rb b/lib/plaid/models/apr.rb index adbd2a395..290ec5093 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/asset_report.rb b/lib/plaid/models/asset_report.rb index 7a46bff85..10dcbfc94 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =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 12ebc565a..fe851da93 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =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 ddf8b1b6f..1a8116d50 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =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 1fe711e3e..7f4468e3c 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =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 b739b0f61..be689fd88 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =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 788f334ed..c71c415ab 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/asset_report_create_request.rb b/lib/plaid/models/asset_report_create_request.rb index 41c97aa77..afb33b0c3 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/asset_report_create_request_options.rb b/lib/plaid/models/asset_report_create_request_options.rb index 29d76eeb8..2c55bcbf0 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/asset_report_create_response.rb b/lib/plaid/models/asset_report_create_response.rb index dd5c395ee..40f5ab355 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/asset_report_filter_request.rb b/lib/plaid/models/asset_report_filter_request.rb index eafb7f9e5..fe6656a23 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/asset_report_filter_response.rb b/lib/plaid/models/asset_report_filter_response.rb index 2fe14da96..0803d0458 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/asset_report_get_request.rb b/lib/plaid/models/asset_report_get_request.rb index 09587bec6..b83a75c18 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/asset_report_get_response.rb b/lib/plaid/models/asset_report_get_response.rb index 883646902..12695def6 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/asset_report_item.rb b/lib/plaid/models/asset_report_item.rb index e82c6595f..0c9f7c2b8 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/asset_report_pdf_get_request.rb b/lib/plaid/models/asset_report_pdf_get_request.rb index 5a9eab1c7..bbd8f8f42 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/asset_report_refresh_request.rb b/lib/plaid/models/asset_report_refresh_request.rb index e12ef0980..7f485f84e 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/asset_report_refresh_request_options.rb b/lib/plaid/models/asset_report_refresh_request_options.rb index 0a47ae4c9..fc628a7a8 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/asset_report_refresh_response.rb b/lib/plaid/models/asset_report_refresh_response.rb index 267e08423..1f697a8cf 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/asset_report_relay_create_request.rb b/lib/plaid/models/asset_report_relay_create_request.rb index 1fe76ad23..5a55e577f 100644 --- a/lib/plaid/models/asset_report_relay_create_request.rb +++ b/lib/plaid/models/asset_report_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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/asset_report_relay_create_response.rb b/lib/plaid/models/asset_report_relay_create_response.rb index 67b4e0aa7..d09cd7097 100644 --- a/lib/plaid/models/asset_report_relay_create_response.rb +++ b/lib/plaid/models/asset_report_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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/asset_report_relay_get_request.rb b/lib/plaid/models/asset_report_relay_get_request.rb index e27f4d0be..f87b50af1 100644 --- a/lib/plaid/models/asset_report_relay_get_request.rb +++ b/lib/plaid/models/asset_report_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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/asset_report_relay_refresh_request.rb b/lib/plaid/models/asset_report_relay_refresh_request.rb index 9f4e0f71c..b69375398 100644 --- a/lib/plaid/models/asset_report_relay_refresh_request.rb +++ b/lib/plaid/models/asset_report_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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/asset_report_relay_refresh_response.rb b/lib/plaid/models/asset_report_relay_refresh_response.rb index 56025e343..cf6b455e0 100644 --- a/lib/plaid/models/asset_report_relay_refresh_response.rb +++ b/lib/plaid/models/asset_report_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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/asset_report_relay_remove_request.rb b/lib/plaid/models/asset_report_relay_remove_request.rb index d61f4fb99..315c76854 100644 --- a/lib/plaid/models/asset_report_relay_remove_request.rb +++ b/lib/plaid/models/asset_report_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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/asset_report_relay_remove_response.rb b/lib/plaid/models/asset_report_relay_remove_response.rb index a73b43964..85fbb7083 100644 --- a/lib/plaid/models/asset_report_relay_remove_response.rb +++ b/lib/plaid/models/asset_report_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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/asset_report_remove_request.rb b/lib/plaid/models/asset_report_remove_request.rb index e4b3e431b..0577e9468 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/asset_report_remove_response.rb b/lib/plaid/models/asset_report_remove_response.rb index 1e8e019df..5e5e1b73e 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/asset_report_transaction.rb b/lib/plaid/models/asset_report_transaction.rb index 0f8dd21e4..4d6301427 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/asset_report_transaction_all_of.rb b/lib/plaid/models/asset_report_transaction_all_of.rb index 9bbfa57a6..9bf2a67a7 100644 --- a/lib/plaid/models/asset_report_transaction_all_of.rb +++ b/lib/plaid/models/asset_report_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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/asset_report_user.rb b/lib/plaid/models/asset_report_user.rb index 05c6d1922..47176acee 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/assets_error_webhook.rb b/lib/plaid/models/assets_error_webhook.rb index 532f38873..9c19de96a 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/assets_product_ready_webhook.rb b/lib/plaid/models/assets_product_ready_webhook.rb index b120e11a3..a5712417a 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/assets_relay_webhook.rb b/lib/plaid/models/assets_relay_webhook.rb index 4e9e352ea..fa6eef2bf 100644 --- a/lib/plaid/models/assets_relay_webhook.rb +++ b/lib/plaid/models/assets_relay_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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/auth_get_numbers.rb b/lib/plaid/models/auth_get_numbers.rb index 43548dccb..6633464d8 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/auth_get_request.rb b/lib/plaid/models/auth_get_request.rb index 1ea8049f3..54e3f8cd0 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/auth_get_request_options.rb b/lib/plaid/models/auth_get_request_options.rb index 1c5842c50..41bca980a 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/auth_get_response.rb b/lib/plaid/models/auth_get_response.rb index 9aa69627b..60f938117 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/auth_metadata.rb b/lib/plaid/models/auth_metadata.rb index 1ec83fed8..e848c9cc6 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/auth_supported_methods.rb b/lib/plaid/models/auth_supported_methods.rb index c8f277bc6..78b815108 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/automatically_verified_webhook.rb b/lib/plaid/models/automatically_verified_webhook.rb index e4fa480c9..5c8b82a55 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/bank_initiated_return_risk.rb b/lib/plaid/models/bank_initiated_return_risk.rb index 0ebee06a5..6f9015897 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/bank_transfer.rb b/lib/plaid/models/bank_transfer.rb index 571562162..abf66ee73 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/bank_transfer_balance.rb b/lib/plaid/models/bank_transfer_balance.rb index 4a20a4aa7..c81608ed7 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/bank_transfer_balance_get_request.rb b/lib/plaid/models/bank_transfer_balance_get_request.rb index b037b2389..c9c10b854 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/bank_transfer_balance_get_response.rb b/lib/plaid/models/bank_transfer_balance_get_response.rb index 1fb672893..245f31684 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/bank_transfer_cancel_request.rb b/lib/plaid/models/bank_transfer_cancel_request.rb index 5dfaa025f..dfc129f36 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/bank_transfer_cancel_response.rb b/lib/plaid/models/bank_transfer_cancel_response.rb index 41a9787b0..50082f680 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/bank_transfer_create_request.rb b/lib/plaid/models/bank_transfer_create_request.rb index cc777d7df..ccae200ac 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/bank_transfer_create_response.rb b/lib/plaid/models/bank_transfer_create_response.rb index 1551713aa..4ded4217b 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/bank_transfer_direction.rb b/lib/plaid/models/bank_transfer_direction.rb index 83eff4820..57c5bd21e 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/bank_transfer_event.rb b/lib/plaid/models/bank_transfer_event.rb index 7310ef575..8401bb637 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end 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 aa62a4247..6bfefea24 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/bank_transfer_event_list_direction.rb b/lib/plaid/models/bank_transfer_event_list_direction.rb index 033552268..7edcb8352 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/bank_transfer_event_list_request.rb b/lib/plaid/models/bank_transfer_event_list_request.rb index adad458a2..90868f181 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/bank_transfer_event_list_response.rb b/lib/plaid/models/bank_transfer_event_list_response.rb index 8bf525eb4..a74d93c87 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/bank_transfer_event_sync_request.rb b/lib/plaid/models/bank_transfer_event_sync_request.rb index 66180eda7..36b9e8cb7 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/bank_transfer_event_sync_response.rb b/lib/plaid/models/bank_transfer_event_sync_response.rb index 93952fd20..976feaa32 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/bank_transfer_event_type.rb b/lib/plaid/models/bank_transfer_event_type.rb index 6f3c71822..ea8283bfc 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/bank_transfer_failure.rb b/lib/plaid/models/bank_transfer_failure.rb index 8b2ed0568..38f84823f 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/bank_transfer_get_request.rb b/lib/plaid/models/bank_transfer_get_request.rb index ba2005b05..5e6d6449e 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/bank_transfer_get_response.rb b/lib/plaid/models/bank_transfer_get_response.rb index f2c16a744..f5e85e70d 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/bank_transfer_list_request.rb b/lib/plaid/models/bank_transfer_list_request.rb index b9e8eadf6..717b499a3 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/bank_transfer_list_response.rb b/lib/plaid/models/bank_transfer_list_response.rb index 78f58e83a..a45e7c1a2 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/bank_transfer_migrate_account_request.rb b/lib/plaid/models/bank_transfer_migrate_account_request.rb index 8121511f6..c9c3aa85b 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end @@ -28,6 +28,9 @@ class BankTransferMigrateAccountRequest # The user's routing number. attr_accessor :routing_number + # The user's wire transfer routing number. This is the ABA number; for some institutions, this may differ from the ACH number used in `routing_number`. + attr_accessor :wire_routing_number + # The type of the bank account (`checking` or `savings`). attr_accessor :account_type @@ -38,6 +41,7 @@ def self.attribute_map :'secret' => :'secret', :'account_number' => :'account_number', :'routing_number' => :'routing_number', + :'wire_routing_number' => :'wire_routing_number', :'account_type' => :'account_type' } end @@ -54,6 +58,7 @@ def self.openapi_types :'secret' => :'String', :'account_number' => :'String', :'routing_number' => :'String', + :'wire_routing_number' => :'String', :'account_type' => :'String' } end @@ -95,6 +100,10 @@ def initialize(attributes = {}) self.routing_number = attributes[:'routing_number'] end + if attributes.key?(:'wire_routing_number') + self.wire_routing_number = attributes[:'wire_routing_number'] + end + if attributes.key?(:'account_type') self.account_type = attributes[:'account_type'] end @@ -137,6 +146,7 @@ def ==(o) secret == o.secret && account_number == o.account_number && routing_number == o.routing_number && + wire_routing_number == o.wire_routing_number && account_type == o.account_type end @@ -149,7 +159,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [client_id, secret, account_number, routing_number, account_type].hash + [client_id, secret, account_number, routing_number, wire_routing_number, account_type].hash end # Builds the object from hash diff --git a/lib/plaid/models/bank_transfer_migrate_account_response.rb b/lib/plaid/models/bank_transfer_migrate_account_response.rb index 891eb1ca9..cfdf241f8 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/bank_transfer_network.rb b/lib/plaid/models/bank_transfer_network.rb index 99610a3b2..28409fa3e 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/bank_transfer_status.rb b/lib/plaid/models/bank_transfer_status.rb index 91323f31a..a46e71c21 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/bank_transfer_sweep.rb b/lib/plaid/models/bank_transfer_sweep.rb index 77bc31474..8c9b8f987 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/bank_transfer_sweep_get_request.rb b/lib/plaid/models/bank_transfer_sweep_get_request.rb index 57ecde2a6..6ba6fc977 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/bank_transfer_sweep_get_response.rb b/lib/plaid/models/bank_transfer_sweep_get_response.rb index b2c872dd3..6a05d0c4d 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/bank_transfer_sweep_list_request.rb b/lib/plaid/models/bank_transfer_sweep_list_request.rb index f9caf49ae..983bfb997 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/bank_transfer_sweep_list_response.rb b/lib/plaid/models/bank_transfer_sweep_list_response.rb index 303d73e45..b303280be 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/bank_transfer_type.rb b/lib/plaid/models/bank_transfer_type.rb index 056b652dc..b3d870a2b 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/bank_transfer_user.rb b/lib/plaid/models/bank_transfer_user.rb index f974eb36e..be49fdfd9 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/bank_transfers_events_update_webhook.rb b/lib/plaid/models/bank_transfers_events_update_webhook.rb index 08ac1d7cd..5f1b64d22 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/categories_get_response.rb b/lib/plaid/models/categories_get_response.rb index 6cb0b3a27..e63b7227a 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/category.rb b/lib/plaid/models/category.rb index d6b705392..0d52b1898 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/cause.rb b/lib/plaid/models/cause.rb index 5a99d0b59..6016bbc05 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end @@ -16,16 +16,71 @@ module Plaid # An error object and associated `item_id` used to identify a specific Item and error when a batch operation operating on multiple Items has encountered an error in one of the Items. class Cause + # A broad categorization of the error. Safe for programmatic use. + attr_accessor :error_type + + # The particular error code. Safe for programmatic use. + attr_accessor :error_code + + # A developer-friendly representation of the error code. This may change over time and is not safe for programmatic use. + attr_accessor :error_message + + # 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 + + # A unique ID identifying the request, to be used for troubleshooting purposes. This field will be omitted in errors provided by webhooks. + attr_accessor :request_id + + # In the Assets product, a request can pertain to more than one Item. If an error is returned for such a request, `causes` will return an array of errors containing a breakdown of these errors on the individual Item level, if any can be identified. `causes` will only be provided for the `error_type` `ASSET_REPORT_ERROR`. `causes` will also not be populated inside an error nested within a `warning` object. + attr_accessor :causes + + # The HTTP status code associated with the error. This will only be returned in the response body when the error information is provided via a webhook. + attr_accessor :status + + # The URL of a Plaid documentation page with more information about the error + attr_accessor :documentation_url + + # Suggested steps for resolving the error + attr_accessor :suggested_action + # The `item_id` of the Item associated with this webhook, warning, or error attr_accessor :item_id - 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 { - :'item_id' => :'item_id', - :'error' => :'error' + :'error_type' => :'error_type', + :'error_code' => :'error_code', + :'error_message' => :'error_message', + :'display_message' => :'display_message', + :'request_id' => :'request_id', + :'causes' => :'causes', + :'status' => :'status', + :'documentation_url' => :'documentation_url', + :'suggested_action' => :'suggested_action', + :'item_id' => :'item_id' } end @@ -37,17 +92,35 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types { - :'item_id' => :'String', - :'error' => :'PlaidError' + :'error_type' => :'String', + :'error_code' => :'String', + :'error_message' => :'String', + :'display_message' => :'String', + :'request_id' => :'String', + :'causes' => :'Array', + :'status' => :'Float', + :'documentation_url' => :'String', + :'suggested_action' => :'String', + :'item_id' => :'String' } end # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'display_message', + :'status', ]) end + # List of class defined in allOf (OpenAPI v3) + def self.openapi_all_of + [ + :'CauseAllOf', + :'PlaidError' + ] + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -63,12 +136,46 @@ def initialize(attributes = {}) h[k.to_sym] = v } - if attributes.key?(:'item_id') - self.item_id = attributes[:'item_id'] + if attributes.key?(:'error_type') + self.error_type = attributes[:'error_type'] + end + + if attributes.key?(:'error_code') + self.error_code = attributes[:'error_code'] + end + + if attributes.key?(:'error_message') + self.error_message = attributes[:'error_message'] + end + + if attributes.key?(:'display_message') + self.display_message = attributes[:'display_message'] end - if attributes.key?(:'error') - self.error = attributes[:'error'] + if attributes.key?(:'request_id') + self.request_id = attributes[:'request_id'] + end + + if attributes.key?(:'causes') + if (value = attributes[:'causes']).is_a?(Array) + self.causes = value + end + end + + if attributes.key?(:'status') + self.status = attributes[:'status'] + end + + if attributes.key?(:'documentation_url') + self.documentation_url = attributes[:'documentation_url'] + end + + if attributes.key?(:'suggested_action') + self.suggested_action = attributes[:'suggested_action'] + end + + if attributes.key?(:'item_id') + self.item_id = attributes[:'item_id'] end end @@ -76,12 +183,20 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @item_id.nil? - invalid_properties.push('invalid value for "item_id", item_id cannot be nil.') + if @error_type.nil? + invalid_properties.push('invalid value for "error_type", error_type cannot be nil.') + end + + if @error_code.nil? + invalid_properties.push('invalid value for "error_code", error_code cannot be nil.') + end + + if @error_message.nil? + invalid_properties.push('invalid value for "error_message", error_message cannot be nil.') end - if @error.nil? - invalid_properties.push('invalid value for "error", error cannot be nil.') + if @item_id.nil? + invalid_properties.push('invalid value for "item_id", item_id cannot be nil.') end invalid_properties @@ -90,18 +205,40 @@ def list_invalid_properties # 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 @error_type.nil? + error_type_validator = EnumAttributeValidator.new('String', ["INVALID_REQUEST", "INVALID_RESULT", "INVALID_INPUT", "INSTITUTION_ERROR", "RATE_LIMIT_EXCEEDED", "API_ERROR", "ITEM_ERROR", "ASSET_REPORT_ERROR", "RECAPTCHA_ERROR", "OAUTH_ERROR", "PAYMENT_ERROR", "BANK_TRANSFER_ERROR", "INCOME_VERIFICATION_ERROR"]) + return false unless error_type_validator.valid?(@error_type) + return false if @error_code.nil? + return false if @error_message.nil? return false if @item_id.nil? - return false if @error.nil? true end + # Custom attribute writer method checking allowed values (enum). + # @param [Object] error_type Object to be assigned + def error_type=(error_type) + validator = EnumAttributeValidator.new('String', ["INVALID_REQUEST", "INVALID_RESULT", "INVALID_INPUT", "INSTITUTION_ERROR", "RATE_LIMIT_EXCEEDED", "API_ERROR", "ITEM_ERROR", "ASSET_REPORT_ERROR", "RECAPTCHA_ERROR", "OAUTH_ERROR", "PAYMENT_ERROR", "BANK_TRANSFER_ERROR", "INCOME_VERIFICATION_ERROR"]) + unless validator.valid?(error_type) + fail ArgumentError, "invalid value for \"error_type\", must be one of #{validator.allowable_values}." + end + @error_type = error_type + 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 && - item_id == o.item_id && - error == o.error + error_type == o.error_type && + error_code == o.error_code && + error_message == o.error_message && + display_message == o.display_message && + request_id == o.request_id && + causes == o.causes && + status == o.status && + documentation_url == o.documentation_url && + suggested_action == o.suggested_action && + item_id == o.item_id end # @see the `==` method @@ -113,7 +250,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [item_id, error].hash + [error_type, error_code, error_message, display_message, request_id, causes, status, documentation_url, suggested_action, item_id].hash end # Builds the object from hash diff --git a/lib/plaid/models/cause_all_of.rb b/lib/plaid/models/cause_all_of.rb new file mode 100644 index 000000000..209aaab49 --- /dev/null +++ b/lib/plaid/models/cause_all_of.rb @@ -0,0 +1,219 @@ +=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.94.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + class CauseAllOf + # The `item_id` of the Item associated with this webhook, warning, or error + attr_accessor :item_id + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'item_id' => :'item_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 + { + :'item_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::CauseAllOf` 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::CauseAllOf`. 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?(:'item_id') + self.item_id = attributes[:'item_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 + 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? + 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 && + item_id == o.item_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 + [item_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) + 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/client_provided_enhanced_transaction.rb b/lib/plaid/models/client_provided_enhanced_transaction.rb index 39e807e9d..eec93793a 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/client_provided_raw_transaction.rb b/lib/plaid/models/client_provided_raw_transaction.rb index a1691bedd..5d17d57bf 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/connected_application.rb b/lib/plaid/models/connected_application.rb index 78650e3c9..81b1f7f3b 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end @@ -22,9 +22,6 @@ class ConnectedApplication # The name of the application attr_accessor :name - # A URL that links to the application logo image (will be deprecated in the future, please use logo_url). - attr_accessor :logo - # A URL that links to the application logo image. attr_accessor :logo_url @@ -37,55 +34,18 @@ class ConnectedApplication # The date this application was linked in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) (YYYY-MM-DD) format in UTC. attr_accessor :created_at - # The date this application was granted production access at Plaid in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) (YYYY-MM-DD) format in UTC. - attr_accessor :join_date - - # (Deprecated) A list of enums representing the data collected and products enabled for this connected application. - attr_accessor :product_data_types - attr_accessor :scopes - attr_accessor :requested_scopes - - 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 { :'application_id' => :'application_id', :'name' => :'name', - :'logo' => :'logo', :'logo_url' => :'logo_url', :'application_url' => :'application_url', :'reason_for_access' => :'reason_for_access', :'created_at' => :'created_at', - :'join_date' => :'join_date', - :'product_data_types' => :'product_data_types', - :'scopes' => :'scopes', - :'requested_scopes' => :'requested_scopes', - :'status' => :'status' + :'scopes' => :'scopes' } end @@ -99,27 +59,21 @@ def self.openapi_types { :'application_id' => :'String', :'name' => :'String', - :'logo' => :'String', :'logo_url' => :'String', :'application_url' => :'String', :'reason_for_access' => :'String', :'created_at' => :'Date', - :'join_date' => :'Date', - :'product_data_types' => :'Array', - :'scopes' => :'ScopesNullable', - :'requested_scopes' => :'RequestedScopes', - :'status' => :'ConnectedApplicationStatus' + :'scopes' => :'ScopesNullable' } end # List of attributes with nullable: true def self.openapi_nullable Set.new([ - :'logo', :'logo_url', :'application_url', :'reason_for_access', - :'scopes', + :'scopes' ]) end @@ -146,10 +100,6 @@ def initialize(attributes = {}) self.name = attributes[:'name'] end - if attributes.key?(:'logo') - self.logo = attributes[:'logo'] - end - if attributes.key?(:'logo_url') self.logo_url = attributes[:'logo_url'] end @@ -166,27 +116,9 @@ def initialize(attributes = {}) self.created_at = attributes[:'created_at'] end - if attributes.key?(:'join_date') - self.join_date = attributes[:'join_date'] - end - - if attributes.key?(:'product_data_types') - if (value = attributes[:'product_data_types']).is_a?(Array) - self.product_data_types = value - end - end - if attributes.key?(:'scopes') self.scopes = attributes[:'scopes'] end - - if attributes.key?(:'requested_scopes') - self.requested_scopes = attributes[:'requested_scopes'] - end - - if attributes.key?(:'status') - self.status = attributes[:'status'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -205,18 +137,6 @@ def list_invalid_properties invalid_properties.push('invalid value for "created_at", created_at cannot be nil.') end - if @join_date.nil? - invalid_properties.push('invalid value for "join_date", join_date cannot be nil.') - end - - if @product_data_types.nil? - invalid_properties.push('invalid value for "product_data_types", product_data_types cannot be nil.') - end - - if @status.nil? - invalid_properties.push('invalid value for "status", status cannot be nil.') - end - invalid_properties end @@ -226,9 +146,6 @@ def valid? return false if @application_id.nil? return false if @name.nil? return false if @created_at.nil? - return false if @join_date.nil? - return false if @product_data_types.nil? - return false if @status.nil? true end @@ -239,16 +156,11 @@ def ==(o) self.class == o.class && application_id == o.application_id && name == o.name && - logo == o.logo && logo_url == o.logo_url && application_url == o.application_url && reason_for_access == o.reason_for_access && created_at == o.created_at && - join_date == o.join_date && - product_data_types == o.product_data_types && - scopes == o.scopes && - requested_scopes == o.requested_scopes && - status == o.status + scopes == o.scopes end # @see the `==` method @@ -260,7 +172,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [application_id, name, logo, logo_url, application_url, reason_for_access, created_at, join_date, product_data_types, scopes, requested_scopes, status].hash + [application_id, name, logo_url, application_url, reason_for_access, created_at, scopes].hash end # Builds the object from hash diff --git a/lib/plaid/models/country_code.rb b/lib/plaid/models/country_code.rb index 0d5882731..704c79881 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/credit_account_subtype.rb b/lib/plaid/models/credit_account_subtype.rb index b9ba60511..78d2214fc 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/credit_bank_income.rb b/lib/plaid/models/credit_bank_income.rb index 646eca491..1b750be4f 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/credit_bank_income_account.rb b/lib/plaid/models/credit_bank_income_account.rb index 1dd69faaa..e9e0a36a1 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/credit_bank_income_account_type.rb b/lib/plaid/models/credit_bank_income_account_type.rb index 9da5cdb01..af472ae51 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/credit_bank_income_category.rb b/lib/plaid/models/credit_bank_income_category.rb index 8c76568b7..fe7925c46 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/credit_bank_income_cause.rb b/lib/plaid/models/credit_bank_income_cause.rb index aa5b9a6c5..26c3740b2 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/credit_bank_income_error_type.rb b/lib/plaid/models/credit_bank_income_error_type.rb index 81f72c239..a1311cb4b 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/credit_bank_income_get_request.rb b/lib/plaid/models/credit_bank_income_get_request.rb index 038598a99..ed082012b 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =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 49b88dccb..1b100c1c4 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/credit_bank_income_get_response.rb b/lib/plaid/models/credit_bank_income_get_response.rb index a76f7fb33..71ad8582f 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/credit_bank_income_historical_summary.rb b/lib/plaid/models/credit_bank_income_historical_summary.rb index 9702fcdc1..88aca794b 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/credit_bank_income_item.rb b/lib/plaid/models/credit_bank_income_item.rb index c7bc75f7d..3bee502a6 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/credit_bank_income_pay_frequency.rb b/lib/plaid/models/credit_bank_income_pay_frequency.rb index ab8af8fe7..ffb92637a 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/credit_bank_income_source.rb b/lib/plaid/models/credit_bank_income_source.rb index db41c9103..5a80b96ab 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/credit_bank_income_summary.rb b/lib/plaid/models/credit_bank_income_summary.rb index 2921b042f..09065b586 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/credit_bank_income_transaction.rb b/lib/plaid/models/credit_bank_income_transaction.rb index c171ab2c9..2140f24b7 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/credit_bank_income_warning.rb b/lib/plaid/models/credit_bank_income_warning.rb index 3f4ca2d7d..9813e724d 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/credit_bank_income_warning_code.rb b/lib/plaid/models/credit_bank_income_warning_code.rb index eef593e90..247b41046 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end @@ -18,6 +18,7 @@ class CreditBankIncomeWarningCode IDENTITY_UNAVAILABLE = "IDENTITY_UNAVAILABLE".freeze TRANSACTIONS_UNAVAILABLE = "TRANSACTIONS_UNAVAILABLE".freeze ITEM_UNAPPROVED = "ITEM_UNAPPROVED".freeze + REPORT_DELETED = "REPORT_DELETED".freeze # Builds the enum from string # @param [String] The enum value in the form of the string diff --git a/lib/plaid/models/credit_bank_income_warning_type.rb b/lib/plaid/models/credit_bank_income_warning_type.rb index bf869ba57..6c7e8b194 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/credit_card_liability.rb b/lib/plaid/models/credit_card_liability.rb index 34ac9a39f..67109f120 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/credit_document_metadata.rb b/lib/plaid/models/credit_document_metadata.rb new file mode 100644 index 000000000..cb9bf324a --- /dev/null +++ b/lib/plaid/models/credit_document_metadata.rb @@ -0,0 +1,258 @@ +=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.94.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # Object representing metadata pertaining to the document. + class CreditDocumentMetadata + # The name of the document. + attr_accessor :name + + # The type of document. `PAYSTUB`: A paystub. `BANK_STATEMENT`: A bank statement. `US_TAX_W2`: A W-2 wage and tax statement provided by a US employer reflecting wages earned by the employee. `US_MILITARY_ERAS`: An electronic Retirement Account Statement (eRAS) issued by the US military. `US_MILITARY_LES`: A Leave and Earnings Statement (LES) issued by the US military. `US_MILITARY_CLES`: A Civilian Leave and Earnings Statment (CLES) issued by the US military. `GIG`: Used to indicate that the income is related to gig work. Does not necessarily correspond to a specific document type. `NONE`: Used to indicate that there is no underlying document for the data. `UNKNOWN`: Document type could not be determined. + attr_accessor :document_type + + # Signed URL to retrieve the underlying file. + attr_accessor :download_url + + # The processing status of the document. + attr_accessor :status + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'name' => :'name', + :'document_type' => :'document_type', + :'download_url' => :'download_url', + :'status' => :'status' + } + 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 + { + :'name' => :'String', + :'document_type' => :'String', + :'download_url' => :'String', + :'status' => :'String' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'document_type', + :'download_url', + :'status' + ]) + 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::CreditDocumentMetadata` 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::CreditDocumentMetadata`. 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?(:'name') + self.name = attributes[:'name'] + end + + if attributes.key?(:'document_type') + self.document_type = attributes[:'document_type'] + end + + if attributes.key?(:'download_url') + self.download_url = attributes[:'download_url'] + end + + if attributes.key?(:'status') + self.status = attributes[:'status'] + 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 @name.nil? + invalid_properties.push('invalid value for "name", name 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 @name.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 && + name == o.name && + document_type == o.document_type && + download_url == o.download_url && + status == o.status + 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 + [name, document_type, download_url, status].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) + 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/credit_employer_verification.rb b/lib/plaid/models/credit_employer_verification.rb new file mode 100644 index 000000000..1f3d33085 --- /dev/null +++ b/lib/plaid/models/credit_employer_verification.rb @@ -0,0 +1,221 @@ +=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.94.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # An object containing employer data. + class CreditEmployerVerification + # Name of employer. + attr_accessor :name + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'name' => :'name' + } + 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 + { + :'name' => :'String' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'name' + ]) + 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::CreditEmployerVerification` 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::CreditEmployerVerification`. 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?(:'name') + self.name = attributes[:'name'] + 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 + 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? + 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 && + name == o.name + 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 + [name].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) + 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/credit_employment_get_request.rb b/lib/plaid/models/credit_employment_get_request.rb new file mode 100644 index 000000000..366ae0cb3 --- /dev/null +++ b/lib/plaid/models/credit_employment_get_request.rb @@ -0,0 +1,245 @@ +=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.94.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # CreditEmploymentGetRequest defines the request schema for `/credit/employment/get`. + class CreditEmploymentGetRequest + # 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 user token associated with the User data is being requested for. + attr_accessor :user_token + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'client_id' => :'client_id', + :'secret' => :'secret', + :'user_token' => :'user_token' + } + 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 + { + :'client_id' => :'String', + :'secret' => :'String', + :'user_token' => :'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::CreditEmploymentGetRequest` 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::CreditEmploymentGetRequest`. 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?(:'client_id') + self.client_id = attributes[:'client_id'] + end + + if attributes.key?(:'secret') + self.secret = attributes[:'secret'] + end + + if attributes.key?(:'user_token') + self.user_token = attributes[:'user_token'] + 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 @user_token.nil? + invalid_properties.push('invalid value for "user_token", user_token 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 @user_token.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 && + client_id == o.client_id && + secret == o.secret && + user_token == o.user_token + 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 + [client_id, secret, user_token].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) + 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/credit_employment_get_response.rb b/lib/plaid/models/credit_employment_get_response.rb new file mode 100644 index 000000000..9927bd693 --- /dev/null +++ b/lib/plaid/models/credit_employment_get_response.rb @@ -0,0 +1,242 @@ +=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.94.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # CreditEmploymentGetResponse defines the response schema for `/credit/employment/get`. + class CreditEmploymentGetResponse + # A list of employment verification summaries. + attr_accessor :employments + + # 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 + { + :'employments' => :'employments', + :'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 + { + :'employments' => :'Array', + :'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::CreditEmploymentGetResponse` 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::CreditEmploymentGetResponse`. 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?(:'employments') + if (value = attributes[:'employments']).is_a?(Array) + self.employments = value + end + end + + 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 @employments.nil? + invalid_properties.push('invalid value for "employments", employments cannot be nil.') + end + + 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 @employments.nil? + 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 && + employments == o.employments && + 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 + [employments, 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) + 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/credit_employment_verification.rb b/lib/plaid/models/credit_employment_verification.rb new file mode 100644 index 000000000..26e952533 --- /dev/null +++ b/lib/plaid/models/credit_employment_verification.rb @@ -0,0 +1,282 @@ +=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.94.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # The object containing proof of employment data for an individual. + class CreditEmploymentVerification + # Current employment status. + attr_accessor :status + + # Start of employment in ISO 8601 format (YYYY-MM-DD). + attr_accessor :start_date + + # End of employment, if applicable. Provided in ISO 8601 format (YYY-MM-DD). + attr_accessor :end_date + + attr_accessor :employer + + # Current title of employee. + attr_accessor :title + + attr_accessor :platform_ids + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'status' => :'status', + :'start_date' => :'start_date', + :'end_date' => :'end_date', + :'employer' => :'employer', + :'title' => :'title', + :'platform_ids' => :'platform_ids' + } + 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 + { + :'status' => :'String', + :'start_date' => :'Date', + :'end_date' => :'Date', + :'employer' => :'CreditEmployerVerification', + :'title' => :'String', + :'platform_ids' => :'CreditPlatformIds' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'status', + :'start_date', + :'end_date', + :'title', + ]) + 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::CreditEmploymentVerification` 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::CreditEmploymentVerification`. 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?(:'status') + self.status = attributes[:'status'] + 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 + + if attributes.key?(:'employer') + self.employer = attributes[:'employer'] + end + + if attributes.key?(:'title') + self.title = attributes[:'title'] + end + + if attributes.key?(:'platform_ids') + self.platform_ids = attributes[:'platform_ids'] + 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 @employer.nil? + invalid_properties.push('invalid value for "employer", employer cannot be nil.') + end + + if @platform_ids.nil? + invalid_properties.push('invalid value for "platform_ids", platform_ids 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 @employer.nil? + return false if @platform_ids.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 && + status == o.status && + start_date == o.start_date && + end_date == o.end_date && + employer == o.employer && + title == o.title && + platform_ids == o.platform_ids + 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 + [status, start_date, end_date, employer, title, platform_ids].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) + 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/credit_filter.rb b/lib/plaid/models/credit_filter.rb index 102d7cf0d..e8d41696b 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/credit_payroll_income_get_request.rb b/lib/plaid/models/credit_payroll_income_get_request.rb new file mode 100644 index 000000000..1fcd8d2da --- /dev/null +++ b/lib/plaid/models/credit_payroll_income_get_request.rb @@ -0,0 +1,240 @@ +=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.94.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # CreditPayrollIncomeGetRequest defines the request schema for `/credit/payroll_income/get`. + class CreditPayrollIncomeGetRequest + # 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 user token associated with the User data is being requested for. + attr_accessor :user_token + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'client_id' => :'client_id', + :'secret' => :'secret', + :'user_token' => :'user_token' + } + 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 + { + :'client_id' => :'String', + :'secret' => :'String', + :'user_token' => :'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::CreditPayrollIncomeGetRequest` 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::CreditPayrollIncomeGetRequest`. 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?(:'client_id') + self.client_id = attributes[:'client_id'] + end + + if attributes.key?(:'secret') + self.secret = attributes[:'secret'] + end + + if attributes.key?(:'user_token') + self.user_token = attributes[:'user_token'] + 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 + 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? + 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 && + client_id == o.client_id && + secret == o.secret && + user_token == o.user_token + 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 + [client_id, secret, user_token].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) + 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/credit_payroll_income_get_response.rb b/lib/plaid/models/credit_payroll_income_get_response.rb new file mode 100644 index 000000000..1447dff6d --- /dev/null +++ b/lib/plaid/models/credit_payroll_income_get_response.rb @@ -0,0 +1,261 @@ +=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.94.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # Defines the response body for `/credit/payroll_income/get`. + class CreditPayrollIncomeGetResponse + # The unique identifier associated with the payroll income response. + attr_accessor :payroll_income_id + + # Array of payroll items. + attr_accessor :items + + attr_accessor :error + + # 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 + { + :'payroll_income_id' => :'payroll_income_id', + :'items' => :'items', + :'error' => :'error', + :'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 + { + :'payroll_income_id' => :'String', + :'items' => :'Array', + :'error' => :'PlaidError', + :'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::CreditPayrollIncomeGetResponse` 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::CreditPayrollIncomeGetResponse`. 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?(:'payroll_income_id') + self.payroll_income_id = attributes[:'payroll_income_id'] + end + + if attributes.key?(:'items') + if (value = attributes[:'items']).is_a?(Array) + self.items = value + end + end + + if attributes.key?(:'error') + self.error = attributes[:'error'] + end + + 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 @items.nil? + invalid_properties.push('invalid value for "items", items cannot be nil.') + end + + 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 @items.nil? + 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 && + payroll_income_id == o.payroll_income_id && + items == o.items && + error == o.error && + 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 + [payroll_income_id, items, error, 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) + 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/credit_payroll_income_precheck_request.rb b/lib/plaid/models/credit_payroll_income_precheck_request.rb new file mode 100644 index 000000000..bf0f0ae41 --- /dev/null +++ b/lib/plaid/models/credit_payroll_income_precheck_request.rb @@ -0,0 +1,272 @@ +=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.94.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # Defines the request schema for `/credit/payroll_income/precheck`. + class CreditPayrollIncomePrecheckRequest + # 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 user token associated with the User data is being requested for. + attr_accessor :user_token + + # An array of access tokens corresponding to Items belonging to the user whose eligibility is being checked. Note that if the Items specified here are not already initialized with `transactions`, providing them in this field will cause these Items to be initialized with (and billed for) the Transactions product. + attr_accessor :access_tokens + + attr_accessor :employer + + attr_accessor :us_military_info + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'client_id' => :'client_id', + :'secret' => :'secret', + :'user_token' => :'user_token', + :'access_tokens' => :'access_tokens', + :'employer' => :'employer', + :'us_military_info' => :'us_military_info' + } + 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 + { + :'client_id' => :'String', + :'secret' => :'String', + :'user_token' => :'String', + :'access_tokens' => :'Array', + :'employer' => :'IncomeVerificationPrecheckEmployer', + :'us_military_info' => :'IncomeVerificationPrecheckMilitaryInfo' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'employer', + :'us_military_info' + ]) + 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::CreditPayrollIncomePrecheckRequest` 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::CreditPayrollIncomePrecheckRequest`. 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?(:'client_id') + self.client_id = attributes[:'client_id'] + end + + if attributes.key?(:'secret') + self.secret = attributes[:'secret'] + end + + if attributes.key?(:'user_token') + self.user_token = attributes[:'user_token'] + end + + if attributes.key?(:'access_tokens') + if (value = attributes[:'access_tokens']).is_a?(Array) + self.access_tokens = value + end + end + + if attributes.key?(:'employer') + self.employer = attributes[:'employer'] + end + + if attributes.key?(:'us_military_info') + self.us_military_info = attributes[:'us_military_info'] + 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 + 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? + 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 && + client_id == o.client_id && + secret == o.secret && + user_token == o.user_token && + access_tokens == o.access_tokens && + employer == o.employer && + us_military_info == o.us_military_info + 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 + [client_id, secret, user_token, access_tokens, employer, us_military_info].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) + 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/credit_payroll_income_precheck_response.rb b/lib/plaid/models/credit_payroll_income_precheck_response.rb new file mode 100644 index 000000000..08189d608 --- /dev/null +++ b/lib/plaid/models/credit_payroll_income_precheck_response.rb @@ -0,0 +1,239 @@ +=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.94.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # Defines the response schema for `/credit/payroll_income/precheck`. + class CreditPayrollIncomePrecheckResponse + # 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 + + attr_accessor :confidence + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'request_id' => :'request_id', + :'confidence' => :'confidence' + } + 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', + :'confidence' => :'IncomeVerificationPrecheckConfidence' + } + 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::CreditPayrollIncomePrecheckResponse` 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::CreditPayrollIncomePrecheckResponse`. 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 + + if attributes.key?(:'confidence') + self.confidence = attributes[:'confidence'] + 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 + + if @confidence.nil? + invalid_properties.push('invalid value for "confidence", confidence 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? + return false if @confidence.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 && + confidence == o.confidence + 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, confidence].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) + 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/credit_platform_ids.rb b/lib/plaid/models/credit_platform_ids.rb new file mode 100644 index 000000000..1767a6d7b --- /dev/null +++ b/lib/plaid/models/credit_platform_ids.rb @@ -0,0 +1,243 @@ +=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.94.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # The object containing a set of ids related to an employee. + class CreditPlatformIds + # The ID of an employee as given by their employer. + attr_accessor :employee_id + + # The ID of an employee as given by their payroll. + attr_accessor :payroll_id + + # The ID of the position of the employee. + attr_accessor :position_id + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'employee_id' => :'employee_id', + :'payroll_id' => :'payroll_id', + :'position_id' => :'position_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 + { + :'employee_id' => :'String', + :'payroll_id' => :'String', + :'position_id' => :'String' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'employee_id', + :'payroll_id', + :'position_id' + ]) + 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::CreditPlatformIds` 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::CreditPlatformIds`. 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?(:'employee_id') + self.employee_id = attributes[:'employee_id'] + end + + if attributes.key?(:'payroll_id') + self.payroll_id = attributes[:'payroll_id'] + end + + if attributes.key?(:'position_id') + self.position_id = attributes[:'position_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 + 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? + 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 && + employee_id == o.employee_id && + payroll_id == o.payroll_id && + position_id == o.position_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 + [employee_id, payroll_id, position_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) + 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/credit_w2.rb b/lib/plaid/models/credit_w2.rb new file mode 100644 index 000000000..d71a1e2a6 --- /dev/null +++ b/lib/plaid/models/credit_w2.rb @@ -0,0 +1,486 @@ +=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.94.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # W2 is an object that represents income data taken from a W2 tax document. + class CreditW2 + attr_accessor :document_metadata + + # An identifier of the document referenced by the document metadata. + attr_accessor :document_id + + attr_accessor :employer + + attr_accessor :employee + + # The tax year of the W2 document. + attr_accessor :tax_year + + # An employee identification number or EIN. + attr_accessor :employer_id_number + + # Wages from tips and other compensation. + attr_accessor :wages_tips_other_comp + + # Federal income tax withheld for the tax year. + attr_accessor :federal_income_tax_withheld + + # Wages from social security. + attr_accessor :social_security_wages + + # Social security tax withheld for the tax year. + attr_accessor :social_security_tax_withheld + + # Wages and tips from medicare. + attr_accessor :medicare_wages_and_tips + + # Medicare tax withheld for the tax year. + attr_accessor :medicare_tax_withheld + + # Tips from social security. + attr_accessor :social_security_tips + + # Allocated tips. + attr_accessor :allocated_tips + + # Contents from box 9 on the W2. + attr_accessor :box_9 + + # Dependent care benefits. + attr_accessor :dependent_care_benefits + + # Nonqualified plans. + attr_accessor :nonqualified_plans + + attr_accessor :box_12 + + # Statutory employee. + attr_accessor :statutory_employee + + # Retirement plan. + attr_accessor :retirement_plan + + # Third party sick pay. + attr_accessor :third_party_sick_pay + + # Other. + attr_accessor :other + + attr_accessor :state_and_local_wages + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'document_metadata' => :'document_metadata', + :'document_id' => :'document_id', + :'employer' => :'employer', + :'employee' => :'employee', + :'tax_year' => :'tax_year', + :'employer_id_number' => :'employer_id_number', + :'wages_tips_other_comp' => :'wages_tips_other_comp', + :'federal_income_tax_withheld' => :'federal_income_tax_withheld', + :'social_security_wages' => :'social_security_wages', + :'social_security_tax_withheld' => :'social_security_tax_withheld', + :'medicare_wages_and_tips' => :'medicare_wages_and_tips', + :'medicare_tax_withheld' => :'medicare_tax_withheld', + :'social_security_tips' => :'social_security_tips', + :'allocated_tips' => :'allocated_tips', + :'box_9' => :'box_9', + :'dependent_care_benefits' => :'dependent_care_benefits', + :'nonqualified_plans' => :'nonqualified_plans', + :'box_12' => :'box_12', + :'statutory_employee' => :'statutory_employee', + :'retirement_plan' => :'retirement_plan', + :'third_party_sick_pay' => :'third_party_sick_pay', + :'other' => :'other', + :'state_and_local_wages' => :'state_and_local_wages' + } + 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 + { + :'document_metadata' => :'CreditDocumentMetadata', + :'document_id' => :'String', + :'employer' => :'PayStubEmployer', + :'employee' => :'PayStubEmployee', + :'tax_year' => :'String', + :'employer_id_number' => :'String', + :'wages_tips_other_comp' => :'String', + :'federal_income_tax_withheld' => :'String', + :'social_security_wages' => :'String', + :'social_security_tax_withheld' => :'String', + :'medicare_wages_and_tips' => :'String', + :'medicare_tax_withheld' => :'String', + :'social_security_tips' => :'String', + :'allocated_tips' => :'String', + :'box_9' => :'String', + :'dependent_care_benefits' => :'String', + :'nonqualified_plans' => :'String', + :'box_12' => :'Array', + :'statutory_employee' => :'String', + :'retirement_plan' => :'String', + :'third_party_sick_pay' => :'String', + :'other' => :'String', + :'state_and_local_wages' => :'Array' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'tax_year', + :'employer_id_number', + :'wages_tips_other_comp', + :'federal_income_tax_withheld', + :'social_security_wages', + :'social_security_tax_withheld', + :'medicare_wages_and_tips', + :'medicare_tax_withheld', + :'social_security_tips', + :'allocated_tips', + :'box_9', + :'dependent_care_benefits', + :'nonqualified_plans', + :'statutory_employee', + :'retirement_plan', + :'third_party_sick_pay', + :'other', + ]) + 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::CreditW2` 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::CreditW2`. 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?(:'document_metadata') + self.document_metadata = attributes[:'document_metadata'] + end + + if attributes.key?(:'document_id') + self.document_id = attributes[:'document_id'] + end + + if attributes.key?(:'employer') + self.employer = attributes[:'employer'] + end + + if attributes.key?(:'employee') + self.employee = attributes[:'employee'] + end + + if attributes.key?(:'tax_year') + self.tax_year = attributes[:'tax_year'] + end + + if attributes.key?(:'employer_id_number') + self.employer_id_number = attributes[:'employer_id_number'] + end + + if attributes.key?(:'wages_tips_other_comp') + self.wages_tips_other_comp = attributes[:'wages_tips_other_comp'] + end + + if attributes.key?(:'federal_income_tax_withheld') + self.federal_income_tax_withheld = attributes[:'federal_income_tax_withheld'] + end + + if attributes.key?(:'social_security_wages') + self.social_security_wages = attributes[:'social_security_wages'] + end + + if attributes.key?(:'social_security_tax_withheld') + self.social_security_tax_withheld = attributes[:'social_security_tax_withheld'] + end + + if attributes.key?(:'medicare_wages_and_tips') + self.medicare_wages_and_tips = attributes[:'medicare_wages_and_tips'] + end + + if attributes.key?(:'medicare_tax_withheld') + self.medicare_tax_withheld = attributes[:'medicare_tax_withheld'] + end + + if attributes.key?(:'social_security_tips') + self.social_security_tips = attributes[:'social_security_tips'] + end + + if attributes.key?(:'allocated_tips') + self.allocated_tips = attributes[:'allocated_tips'] + end + + if attributes.key?(:'box_9') + self.box_9 = attributes[:'box_9'] + end + + if attributes.key?(:'dependent_care_benefits') + self.dependent_care_benefits = attributes[:'dependent_care_benefits'] + end + + if attributes.key?(:'nonqualified_plans') + self.nonqualified_plans = attributes[:'nonqualified_plans'] + end + + if attributes.key?(:'box_12') + if (value = attributes[:'box_12']).is_a?(Array) + self.box_12 = value + end + end + + if attributes.key?(:'statutory_employee') + self.statutory_employee = attributes[:'statutory_employee'] + end + + if attributes.key?(:'retirement_plan') + self.retirement_plan = attributes[:'retirement_plan'] + end + + if attributes.key?(:'third_party_sick_pay') + self.third_party_sick_pay = attributes[:'third_party_sick_pay'] + end + + if attributes.key?(:'other') + self.other = attributes[:'other'] + end + + if attributes.key?(:'state_and_local_wages') + if (value = attributes[:'state_and_local_wages']).is_a?(Array) + self.state_and_local_wages = value + end + 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 @document_metadata.nil? + invalid_properties.push('invalid value for "document_metadata", document_metadata cannot be nil.') + end + + if @document_id.nil? + invalid_properties.push('invalid value for "document_id", document_id cannot be nil.') + end + + if @employer.nil? + invalid_properties.push('invalid value for "employer", employer cannot be nil.') + end + + if @employee.nil? + invalid_properties.push('invalid value for "employee", employee cannot be nil.') + end + + if @box_12.nil? + invalid_properties.push('invalid value for "box_12", box_12 cannot be nil.') + end + + if @state_and_local_wages.nil? + invalid_properties.push('invalid value for "state_and_local_wages", state_and_local_wages 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 @document_metadata.nil? + return false if @document_id.nil? + return false if @employer.nil? + return false if @employee.nil? + return false if @box_12.nil? + return false if @state_and_local_wages.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 && + document_metadata == o.document_metadata && + document_id == o.document_id && + employer == o.employer && + employee == o.employee && + tax_year == o.tax_year && + employer_id_number == o.employer_id_number && + wages_tips_other_comp == o.wages_tips_other_comp && + federal_income_tax_withheld == o.federal_income_tax_withheld && + social_security_wages == o.social_security_wages && + social_security_tax_withheld == o.social_security_tax_withheld && + medicare_wages_and_tips == o.medicare_wages_and_tips && + medicare_tax_withheld == o.medicare_tax_withheld && + social_security_tips == o.social_security_tips && + allocated_tips == o.allocated_tips && + box_9 == o.box_9 && + dependent_care_benefits == o.dependent_care_benefits && + nonqualified_plans == o.nonqualified_plans && + box_12 == o.box_12 && + statutory_employee == o.statutory_employee && + retirement_plan == o.retirement_plan && + third_party_sick_pay == o.third_party_sick_pay && + other == o.other && + state_and_local_wages == o.state_and_local_wages + 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 + [document_metadata, document_id, employer, employee, tax_year, employer_id_number, wages_tips_other_comp, federal_income_tax_withheld, social_security_wages, social_security_tax_withheld, medicare_wages_and_tips, medicare_tax_withheld, social_security_tips, allocated_tips, box_9, dependent_care_benefits, nonqualified_plans, box_12, statutory_employee, retirement_plan, third_party_sick_pay, other, state_and_local_wages].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) + 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/customer_initiated_return_risk.rb b/lib/plaid/models/customer_initiated_return_risk.rb index c8e392bca..8bb50f278 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/deductions.rb b/lib/plaid/models/deductions.rb index d4917b3be..eed215b4f 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/deductions_breakdown.rb b/lib/plaid/models/deductions_breakdown.rb index 0a1d38351..b785f4184 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/deductions_total.rb b/lib/plaid/models/deductions_total.rb index 4833ed88f..9e2bc7c19 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/default_update_webhook.rb b/lib/plaid/models/default_update_webhook.rb index f2cd0ab22..46078cc95 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/deposit_switch_address_data.rb b/lib/plaid/models/deposit_switch_address_data.rb index 78a08b65a..695e90985 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/deposit_switch_alt_create_request.rb b/lib/plaid/models/deposit_switch_alt_create_request.rb index 41b4ef6c1..0739d7df5 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/deposit_switch_alt_create_response.rb b/lib/plaid/models/deposit_switch_alt_create_response.rb index dbf5340df..66f2244ec 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/deposit_switch_create_request.rb b/lib/plaid/models/deposit_switch_create_request.rb index 813ed5dd0..1bed61812 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/deposit_switch_create_request_options.rb b/lib/plaid/models/deposit_switch_create_request_options.rb index 8779bd226..42964f4c8 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/deposit_switch_create_response.rb b/lib/plaid/models/deposit_switch_create_response.rb index 814c70eb1..43b9793ec 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/deposit_switch_get_request.rb b/lib/plaid/models/deposit_switch_get_request.rb index 290c6a57e..4ea3c08bf 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/deposit_switch_get_response.rb b/lib/plaid/models/deposit_switch_get_response.rb index c961dd068..380231817 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/deposit_switch_state_update_webhook.rb b/lib/plaid/models/deposit_switch_state_update_webhook.rb index 6888ba0af..f641862a5 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/deposit_switch_target_account.rb b/lib/plaid/models/deposit_switch_target_account.rb index e9419ebf6..03678d3c2 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/deposit_switch_target_user.rb b/lib/plaid/models/deposit_switch_target_user.rb index ed56785f1..88b94f9ae 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/deposit_switch_token_create_request.rb b/lib/plaid/models/deposit_switch_token_create_request.rb index e30610244..03d55154a 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/deposit_switch_token_create_response.rb b/lib/plaid/models/deposit_switch_token_create_response.rb index 1068db672..f78b2e95f 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/depository_account_subtype.rb b/lib/plaid/models/depository_account_subtype.rb index c53de7b0f..a95b5f444 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/depository_filter.rb b/lib/plaid/models/depository_filter.rb index 8678f397b..b65ddc765 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/distribution_breakdown.rb b/lib/plaid/models/distribution_breakdown.rb index 36962ccfb..734110fe9 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/doc_type.rb b/lib/plaid/models/doc_type.rb index 33c137522..b70427632 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/document_metadata.rb b/lib/plaid/models/document_metadata.rb index e7933ec05..a0eaad090 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/earnings.rb b/lib/plaid/models/earnings.rb index 86d8553df..e75b976b7 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/earnings_breakdown.rb b/lib/plaid/models/earnings_breakdown.rb index 489d18493..46ff65bf7 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/earnings_breakdown_canonical_description.rb b/lib/plaid/models/earnings_breakdown_canonical_description.rb index eca205952..998a5ed84 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/earnings_total.rb b/lib/plaid/models/earnings_total.rb index 98f608c9c..7eade07af 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/email.rb b/lib/plaid/models/email.rb index e40ba7f82..42783e45c 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/employee.rb b/lib/plaid/models/employee.rb index 5b2817536..f300d9d03 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/employee_income_summary_field_string.rb b/lib/plaid/models/employee_income_summary_field_string.rb index 91789bae9..baa886444 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/employer.rb b/lib/plaid/models/employer.rb index c9d6bfab6..1a0478097 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/employer_income_summary_field_string.rb b/lib/plaid/models/employer_income_summary_field_string.rb index e35c42d11..760ced491 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/employer_verification.rb b/lib/plaid/models/employer_verification.rb index 1075dc7ed..69d97fb2c 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/employers_search_request.rb b/lib/plaid/models/employers_search_request.rb index 5414a26fe..86bca77f7 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/employers_search_response.rb b/lib/plaid/models/employers_search_response.rb index 4eb2cceda..ceb324225 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/employment_details.rb b/lib/plaid/models/employment_details.rb index 23314902e..ae44a7188 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/employment_verification.rb b/lib/plaid/models/employment_verification.rb index b4b84f34d..3db77fd2a 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/employment_verification_get_request.rb b/lib/plaid/models/employment_verification_get_request.rb index 377749777..f64a7ff54 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/employment_verification_get_response.rb b/lib/plaid/models/employment_verification_get_response.rb index 6334b9ebe..10f22076e 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/employment_verification_status.rb b/lib/plaid/models/employment_verification_status.rb index b892dd26f..48ef76e25 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/enhancements.rb b/lib/plaid/models/enhancements.rb index 30153e7a0..135c75a16 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end @@ -24,10 +24,10 @@ class Enhancements attr_accessor :payment_channel - # The ID of the category to which this transaction belongs. For a full list of categories, see [`/categories/get`](https://plaid.com/docs/api/products/#categoriesget). + # The ID of the category to which this transaction belongs. For a full list of categories, see [`/categories/get`](https://plaid.com/docs/api/products/transactions/#categoriesget). attr_accessor :category_id - # A hierarchical array of the categories to which this transaction belongs. For a full list of categories, see [`/categories/get`](https://plaid.com/docs/api/products/#categoriesget). + # A hierarchical array of the categories to which this transaction belongs. For a full list of categories, see [`/categories/get`](https://plaid.com/docs/api/products/transactions/#categoriesget). attr_accessor :category attr_accessor :location diff --git a/lib/plaid/models/error.rb b/lib/plaid/models/error.rb index 554cfc894..4be0c1792 100644 --- a/lib/plaid/models/error.rb +++ b/lib/plaid/models/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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/external_payment_initiation_consent_options.rb b/lib/plaid/models/external_payment_initiation_consent_options.rb index d3af2875b..7de7a8f38 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/external_payment_options.rb b/lib/plaid/models/external_payment_options.rb index 793ca8389..66721da4e 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/external_payment_refund_details.rb b/lib/plaid/models/external_payment_refund_details.rb index 015f0df78..b02afc2ac 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/external_payment_schedule_base.rb b/lib/plaid/models/external_payment_schedule_base.rb index 17a73e855..589d6d4dd 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/external_payment_schedule_get.rb b/lib/plaid/models/external_payment_schedule_get.rb index c3d1cf777..9b9a6147c 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/external_payment_schedule_request.rb b/lib/plaid/models/external_payment_schedule_request.rb index 4a36c2421..6601728f1 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/health_incident.rb b/lib/plaid/models/health_incident.rb index 6149cb99b..c658de623 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/historical_balance.rb b/lib/plaid/models/historical_balance.rb index 800aa588a..1acba59f1 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/historical_update_webhook.rb b/lib/plaid/models/historical_update_webhook.rb index 8fb83007b..6e0e21f5e 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/holding.rb b/lib/plaid/models/holding.rb index 6cce0597c..d5137be53 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/holdings_default_update_webhook.rb b/lib/plaid/models/holdings_default_update_webhook.rb index de4029a32..9913c62cc 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/holdings_override.rb b/lib/plaid/models/holdings_override.rb index f429ef5bd..edb930a9c 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/identity_default_update_webhook.rb b/lib/plaid/models/identity_default_update_webhook.rb index 2d7f5ff75..be0165d39 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/identity_get_request.rb b/lib/plaid/models/identity_get_request.rb index 965f544ca..5ce9b9111 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/identity_get_request_options.rb b/lib/plaid/models/identity_get_request_options.rb index 688f4137d..48547756f 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/identity_get_response.rb b/lib/plaid/models/identity_get_response.rb index 7270fd2d6..13c61a558 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/identity_update_types.rb b/lib/plaid/models/identity_update_types.rb index f61ac7e0e..aed818fff 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/incident_update.rb b/lib/plaid/models/incident_update.rb index d1cf885ee..8e5038141 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/income_breakdown.rb b/lib/plaid/models/income_breakdown.rb index 681e88add..1bcb12672 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/income_breakdown_type.rb b/lib/plaid/models/income_breakdown_type.rb index 857f09a12..cc3ec9c29 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/income_override.rb b/lib/plaid/models/income_override.rb index 3837cbd31..73c691300 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/income_summary.rb b/lib/plaid/models/income_summary.rb index 6c8accdda..1c65165a7 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/income_summary_field_number.rb b/lib/plaid/models/income_summary_field_number.rb index d31fae02a..f2b14a86e 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/income_summary_field_string.rb b/lib/plaid/models/income_summary_field_string.rb index 244402911..ddbee59ef 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/income_verification_create_request.rb b/lib/plaid/models/income_verification_create_request.rb index f9a65d36d..425c1683f 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/income_verification_create_request_options.rb b/lib/plaid/models/income_verification_create_request_options.rb index 4529d987e..237d58f6a 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/income_verification_create_response.rb b/lib/plaid/models/income_verification_create_response.rb index 96c712193..0f2a7d079 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/income_verification_documents_download_request.rb b/lib/plaid/models/income_verification_documents_download_request.rb index 212dc57ef..20aad0ca9 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/income_verification_payroll_flow_type.rb b/lib/plaid/models/income_verification_payroll_flow_type.rb index 806d61b87..fc4ff3695 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/income_verification_paystubs_get_request.rb b/lib/plaid/models/income_verification_paystubs_get_request.rb index 850564b80..8ee6b80e7 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/income_verification_paystubs_get_response.rb b/lib/plaid/models/income_verification_paystubs_get_response.rb index beadd258d..f922055ff 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/income_verification_precheck_confidence.rb b/lib/plaid/models/income_verification_precheck_confidence.rb index 181a30268..061453fd9 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/income_verification_precheck_employer.rb b/lib/plaid/models/income_verification_precheck_employer.rb index 842f1229f..140965619 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/income_verification_precheck_employer_address.rb b/lib/plaid/models/income_verification_precheck_employer_address.rb index 06a96aea7..0536f6d57 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end @@ -19,26 +19,26 @@ class IncomeVerificationPrecheckEmployerAddress # The full city name attr_accessor :city + # The ISO 3166-1 alpha-2 country code + attr_accessor :country + + # The postal code. In API versions 2018-05-22 and earlier, this field is called `zip`. + attr_accessor :postal_code + # The region or state. In API versions 2018-05-22 and earlier, this field is called `state`. Example: `\"NC\"` attr_accessor :region # The full street address Example: `\"564 Main Street, APT 15\"` attr_accessor :street - # The postal code. In API versions 2018-05-22 and earlier, this field is called `zip`. - attr_accessor :postal_code - - # The ISO 3166-1 alpha-2 country code - attr_accessor :country - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'city' => :'city', - :'region' => :'region', - :'street' => :'street', + :'country' => :'country', :'postal_code' => :'postal_code', - :'country' => :'country' + :'region' => :'region', + :'street' => :'street' } end @@ -51,10 +51,10 @@ def self.acceptable_attributes def self.openapi_types { :'city' => :'String', - :'region' => :'String', - :'street' => :'String', + :'country' => :'String', :'postal_code' => :'String', - :'country' => :'String' + :'region' => :'String', + :'street' => :'String' } end @@ -90,20 +90,20 @@ def initialize(attributes = {}) self.city = attributes[:'city'] end - if attributes.key?(:'region') - self.region = attributes[:'region'] - end - - if attributes.key?(:'street') - self.street = attributes[:'street'] + if attributes.key?(:'country') + self.country = attributes[:'country'] end if attributes.key?(:'postal_code') self.postal_code = attributes[:'postal_code'] end - if attributes.key?(:'country') - self.country = attributes[:'country'] + if attributes.key?(:'region') + self.region = attributes[:'region'] + end + + if attributes.key?(:'street') + self.street = attributes[:'street'] end end @@ -126,10 +126,10 @@ def ==(o) return true if self.equal?(o) self.class == o.class && city == o.city && - region == o.region && - street == o.street && + country == o.country && postal_code == o.postal_code && - country == o.country + region == o.region && + street == o.street end # @see the `==` method @@ -141,7 +141,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [city, region, street, postal_code, country].hash + [city, country, postal_code, region, street].hash end # Builds the object from hash 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 58b9e7e06..42675baa3 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end @@ -19,26 +19,26 @@ class IncomeVerificationPrecheckEmployerAddressData # The full city name attr_accessor :city + # The ISO 3166-1 alpha-2 country code + attr_accessor :country + + # The postal code. In API versions 2018-05-22 and earlier, this field is called `zip`. + attr_accessor :postal_code + # The region or state. In API versions 2018-05-22 and earlier, this field is called `state`. Example: `\"NC\"` attr_accessor :region # The full street address Example: `\"564 Main Street, APT 15\"` attr_accessor :street - # The postal code. In API versions 2018-05-22 and earlier, this field is called `zip`. - attr_accessor :postal_code - - # The ISO 3166-1 alpha-2 country code - attr_accessor :country - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'city' => :'city', - :'region' => :'region', - :'street' => :'street', + :'country' => :'country', :'postal_code' => :'postal_code', - :'country' => :'country' + :'region' => :'region', + :'street' => :'street' } end @@ -51,10 +51,10 @@ def self.acceptable_attributes def self.openapi_types { :'city' => :'String', - :'region' => :'String', - :'street' => :'String', + :'country' => :'String', :'postal_code' => :'String', - :'country' => :'String' + :'region' => :'String', + :'street' => :'String' } end @@ -83,20 +83,20 @@ def initialize(attributes = {}) self.city = attributes[:'city'] end - if attributes.key?(:'region') - self.region = attributes[:'region'] - end - - if attributes.key?(:'street') - self.street = attributes[:'street'] + if attributes.key?(:'country') + self.country = attributes[:'country'] end if attributes.key?(:'postal_code') self.postal_code = attributes[:'postal_code'] end - if attributes.key?(:'country') - self.country = attributes[:'country'] + if attributes.key?(:'region') + self.region = attributes[:'region'] + end + + if attributes.key?(:'street') + self.street = attributes[:'street'] end end @@ -119,10 +119,10 @@ def ==(o) return true if self.equal?(o) self.class == o.class && city == o.city && - region == o.region && - street == o.street && + country == o.country && postal_code == o.postal_code && - country == o.country + region == o.region && + street == o.street end # @see the `==` method @@ -134,7 +134,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [city, region, street, postal_code, country].hash + [city, country, postal_code, region, street].hash end # Builds the object from hash diff --git a/lib/plaid/models/income_verification_precheck_military_info.rb b/lib/plaid/models/income_verification_precheck_military_info.rb index 0a100eafa..7bbffe63b 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/income_verification_precheck_request.rb b/lib/plaid/models/income_verification_precheck_request.rb index f5396c37d..0f099e02c 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/income_verification_precheck_response.rb b/lib/plaid/models/income_verification_precheck_response.rb index 2a31285bd..0351efc10 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/income_verification_precheck_user.rb b/lib/plaid/models/income_verification_precheck_user.rb index f20a53ad5..160aeab40 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/income_verification_refresh_request.rb b/lib/plaid/models/income_verification_refresh_request.rb index 822b681b3..882e23d9f 100644 --- a/lib/plaid/models/income_verification_refresh_request.rb +++ b/lib/plaid/models/income_verification_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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/income_verification_refresh_response.rb b/lib/plaid/models/income_verification_refresh_response.rb index 90b9a2b82..630ad81c4 100644 --- a/lib/plaid/models/income_verification_refresh_response.rb +++ b/lib/plaid/models/income_verification_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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/income_verification_source_type.rb b/lib/plaid/models/income_verification_source_type.rb index 92b2bc4e0..0bc9bea7a 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/income_verification_status_webhook.rb b/lib/plaid/models/income_verification_status_webhook.rb index d6d878964..9fd347df7 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end @@ -19,12 +19,9 @@ class IncomeVerificationStatusWebhook # `\"INCOME\"` attr_accessor :webhook_type - # `income_verification` + # `INCOME_VERIFICATION` attr_accessor :webhook_code - # The `income_verification_id` of the verification instance whose status is being reported. - attr_accessor :income_verification_id - # The Item ID associated with the verification. attr_accessor :item_id @@ -36,7 +33,6 @@ def self.attribute_map { :'webhook_type' => :'webhook_type', :'webhook_code' => :'webhook_code', - :'income_verification_id' => :'income_verification_id', :'item_id' => :'item_id', :'verification_status' => :'verification_status' } @@ -52,7 +48,6 @@ def self.openapi_types { :'webhook_type' => :'String', :'webhook_code' => :'String', - :'income_verification_id' => :'String', :'item_id' => :'String', :'verification_status' => :'String' } @@ -87,10 +82,6 @@ def initialize(attributes = {}) self.webhook_code = attributes[:'webhook_code'] end - if attributes.key?(:'income_verification_id') - self.income_verification_id = attributes[:'income_verification_id'] - end - if attributes.key?(:'item_id') self.item_id = attributes[:'item_id'] end @@ -112,10 +103,6 @@ def list_invalid_properties invalid_properties.push('invalid value for "webhook_code", webhook_code cannot be nil.') end - if @income_verification_id.nil? - invalid_properties.push('invalid value for "income_verification_id", income_verification_id cannot be nil.') - end - if @item_id.nil? invalid_properties.push('invalid value for "item_id", item_id cannot be nil.') end @@ -132,7 +119,6 @@ def list_invalid_properties def valid? return false if @webhook_type.nil? return false if @webhook_code.nil? - return false if @income_verification_id.nil? return false if @item_id.nil? return false if @verification_status.nil? true @@ -145,7 +131,6 @@ def ==(o) self.class == o.class && webhook_type == o.webhook_type && webhook_code == o.webhook_code && - income_verification_id == o.income_verification_id && item_id == o.item_id && verification_status == o.verification_status end @@ -159,7 +144,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [webhook_type, webhook_code, income_verification_id, item_id, verification_status].hash + [webhook_type, webhook_code, item_id, verification_status].hash end # Builds the object from hash diff --git a/lib/plaid/models/income_verification_taxforms_get_request.rb b/lib/plaid/models/income_verification_taxforms_get_request.rb index a33f8c44d..cf1e17941 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/income_verification_taxforms_get_response.rb b/lib/plaid/models/income_verification_taxforms_get_response.rb index 5945b44da..ac75bb972 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/income_verification_webhook_status.rb b/lib/plaid/models/income_verification_webhook_status.rb index 1d3c00493..662087812 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/inflow_model.rb b/lib/plaid/models/inflow_model.rb index 4d7de1e0c..af4344c8b 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/initial_update_webhook.rb b/lib/plaid/models/initial_update_webhook.rb index e7cbb18fd..b469d7383 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/institution.rb b/lib/plaid/models/institution.rb index bf9ea285a..357c141e8 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/institution_status.rb b/lib/plaid/models/institution_status.rb index 6f1c01477..7195f414d 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/institutions_get_by_id_request.rb b/lib/plaid/models/institutions_get_by_id_request.rb index dc49cb9f4..d03cb602d 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =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 ca6f744ef..aee7d2856 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/institutions_get_by_id_response.rb b/lib/plaid/models/institutions_get_by_id_response.rb index 572c85994..20f56c65c 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/institutions_get_request.rb b/lib/plaid/models/institutions_get_request.rb index 94256e259..1e13b04b5 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/institutions_get_request_options.rb b/lib/plaid/models/institutions_get_request_options.rb index 43919f0e3..84f066cf8 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/institutions_get_response.rb b/lib/plaid/models/institutions_get_response.rb index 564895a6c..e5c2bddf6 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/institutions_search_account_filter.rb b/lib/plaid/models/institutions_search_account_filter.rb index 2ffa6bcda..83b5113ae 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/institutions_search_payment_initiation_options.rb b/lib/plaid/models/institutions_search_payment_initiation_options.rb index 9bef0fca1..b104c20a3 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end @@ -19,10 +19,14 @@ class InstitutionsSearchPaymentInitiationOptions # A unique ID identifying the payment attr_accessor :payment_id + # A unique ID identifying the payment consent + attr_accessor :consent_id + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'payment_id' => :'payment_id' + :'payment_id' => :'payment_id', + :'consent_id' => :'consent_id' } end @@ -34,14 +38,16 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types { - :'payment_id' => :'String' + :'payment_id' => :'String', + :'consent_id' => :'String' } end # List of attributes with nullable: true def self.openapi_nullable Set.new([ - :'payment_id' + :'payment_id', + :'consent_id' ]) end @@ -63,6 +69,10 @@ def initialize(attributes = {}) if attributes.key?(:'payment_id') self.payment_id = attributes[:'payment_id'] end + + if attributes.key?(:'consent_id') + self.consent_id = attributes[:'consent_id'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -83,7 +93,8 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - payment_id == o.payment_id + payment_id == o.payment_id && + consent_id == o.consent_id end # @see the `==` method @@ -95,7 +106,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [payment_id].hash + [payment_id, consent_id].hash end # Builds the object from hash diff --git a/lib/plaid/models/institutions_search_request.rb b/lib/plaid/models/institutions_search_request.rb index 3e46d85d1..1e20e9ff7 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/institutions_search_request_options.rb b/lib/plaid/models/institutions_search_request_options.rb index df1e0f416..e1e32bf41 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/institutions_search_response.rb b/lib/plaid/models/institutions_search_response.rb index 4392375af..9b310d2b8 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/investment_account_subtype.rb b/lib/plaid/models/investment_account_subtype.rb index 1e7b3b54c..99c37d071 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/investment_filter.rb b/lib/plaid/models/investment_filter.rb index a71dd3c1b..791ebc82b 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/investment_holdings_get_request_options.rb b/lib/plaid/models/investment_holdings_get_request_options.rb index b0f810438..b86e49652 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/investment_transaction.rb b/lib/plaid/models/investment_transaction.rb index 311c6a339..8a5b00d7e 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/investment_transaction_subtype.rb b/lib/plaid/models/investment_transaction_subtype.rb index 09126f59d..b3d96d5d3 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/investment_transaction_type.rb b/lib/plaid/models/investment_transaction_type.rb index a53adba14..2b868a58d 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/investments_default_update_webhook.rb b/lib/plaid/models/investments_default_update_webhook.rb index 04d0b502f..a828f47f0 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/investments_holdings_get_request.rb b/lib/plaid/models/investments_holdings_get_request.rb index c3cd9aecc..070df17c9 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/investments_holdings_get_response.rb b/lib/plaid/models/investments_holdings_get_response.rb index a325c41f5..c60965c6e 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/investments_transactions_get_request.rb b/lib/plaid/models/investments_transactions_get_request.rb index 524bd9a7e..b5a83311f 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/investments_transactions_get_request_options.rb b/lib/plaid/models/investments_transactions_get_request_options.rb index cb8146422..a63d75427 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/investments_transactions_get_response.rb b/lib/plaid/models/investments_transactions_get_response.rb index aefde0b31..a7431c052 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/investments_transactions_override.rb b/lib/plaid/models/investments_transactions_override.rb index 7b309c0c7..7ef97a18d 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/item.rb b/lib/plaid/models/item.rb index f2fe528d7..cdee3a110 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/item_access_token_invalidate_request.rb b/lib/plaid/models/item_access_token_invalidate_request.rb index 2c3392af8..e00a96c4e 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/item_access_token_invalidate_response.rb b/lib/plaid/models/item_access_token_invalidate_response.rb index 65dd8a1b4..9a59229f3 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/item_application_list_request.rb b/lib/plaid/models/item_application_list_request.rb index 2f1de99af..88029def5 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/item_application_list_response.rb b/lib/plaid/models/item_application_list_response.rb index 389ef9386..bc495768e 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/item_application_list_user_auth.rb b/lib/plaid/models/item_application_list_user_auth.rb index 30291cabd..1a4e5ef54 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/item_application_scopes_update_request.rb b/lib/plaid/models/item_application_scopes_update_request.rb index 2d08dc6c0..50ad60ed4 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/item_application_scopes_update_response.rb b/lib/plaid/models/item_application_scopes_update_response.rb index 12d5ff26d..b961c3992 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/item_error_webhook.rb b/lib/plaid/models/item_error_webhook.rb index 1d275a2a8..4fcccb9a7 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/item_get_request.rb b/lib/plaid/models/item_get_request.rb index 6d309c626..6156a8faf 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/item_get_response.rb b/lib/plaid/models/item_get_response.rb index 6ee305696..9a30d68d3 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/item_import_request.rb b/lib/plaid/models/item_import_request.rb index 4587dc51c..e355ca0d6 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/item_import_request_options.rb b/lib/plaid/models/item_import_request_options.rb index 4fbfdde56..659e6e327 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/item_import_request_user_auth.rb b/lib/plaid/models/item_import_request_user_auth.rb index 28c402975..ba76d471a 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/item_import_response.rb b/lib/plaid/models/item_import_response.rb index 9799d1200..6061e809d 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/item_product_ready_webhook.rb b/lib/plaid/models/item_product_ready_webhook.rb index 60c51553c..753a30fe3 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/item_public_token_create_request.rb b/lib/plaid/models/item_public_token_create_request.rb index 7d072d563..89c02f2d8 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/item_public_token_create_response.rb b/lib/plaid/models/item_public_token_create_response.rb index 6b8efbf43..562587f73 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/item_public_token_exchange_request.rb b/lib/plaid/models/item_public_token_exchange_request.rb index 593682cc1..94d85437f 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/item_public_token_exchange_response.rb b/lib/plaid/models/item_public_token_exchange_response.rb index 9bc288682..aaa2cfd03 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/item_remove_request.rb b/lib/plaid/models/item_remove_request.rb index bfd5907fd..a2c9513ec 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/item_remove_response.rb b/lib/plaid/models/item_remove_response.rb index 9abf328a7..37350a9ed 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/item_status.rb b/lib/plaid/models/item_status.rb index 5338d94bd..d037fc9f1 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/item_status_investments.rb b/lib/plaid/models/item_status_investments.rb index 395182973..af50bb9d1 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/item_status_last_webhook.rb b/lib/plaid/models/item_status_last_webhook.rb index 60d15f110..4d7453e99 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/item_status_nullable.rb b/lib/plaid/models/item_status_nullable.rb index 59fab8711..4eb11e384 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/item_status_transactions.rb b/lib/plaid/models/item_status_transactions.rb index 08cd7e3f8..1d0175745 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/item_webhook_update_request.rb b/lib/plaid/models/item_webhook_update_request.rb index b185bd28d..4de961f7a 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end @@ -25,7 +25,7 @@ class ItemWebhookUpdateRequest # The access token associated with the Item data is being requested for. attr_accessor :access_token - # The new webhook URL to associate with the Item. + # The new webhook URL to associate with the Item. To remove a webhook from an Item, set to `null`. attr_accessor :webhook # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/plaid/models/item_webhook_update_response.rb b/lib/plaid/models/item_webhook_update_response.rb index 22b0ccda5..1704777a6 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/jwk_public_key.rb b/lib/plaid/models/jwk_public_key.rb index 6ed7c748b..3a38143aa 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/jwt_header.rb b/lib/plaid/models/jwt_header.rb index c334e0f15..365497741 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/liabilities_default_update_webhook.rb b/lib/plaid/models/liabilities_default_update_webhook.rb index 71aa241d0..a581637db 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/liabilities_get_request.rb b/lib/plaid/models/liabilities_get_request.rb index 7046e973f..17460f8c0 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/liabilities_get_request_options.rb b/lib/plaid/models/liabilities_get_request_options.rb index 352bc757c..f59eefd66 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/liabilities_get_response.rb b/lib/plaid/models/liabilities_get_response.rb index 8d4709151..081c7b8c1 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/liabilities_object.rb b/lib/plaid/models/liabilities_object.rb index 10fdfecdb..a811418c8 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/liability_override.rb b/lib/plaid/models/liability_override.rb index 337a9c99c..18aebb6b1 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/link_token_account_filters.rb b/lib/plaid/models/link_token_account_filters.rb index 43c7ebb3e..7fc921b5b 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/link_token_create_credit_filter.rb b/lib/plaid/models/link_token_create_credit_filter.rb index 5e760672f..04190b8d1 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/link_token_create_depository_filter.rb b/lib/plaid/models/link_token_create_depository_filter.rb index cd6dc7f23..2de55ead3 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/link_token_create_investment_filter.rb b/lib/plaid/models/link_token_create_investment_filter.rb index 5b41d9e1d..eb1605fd7 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/link_token_create_loan_filter.rb b/lib/plaid/models/link_token_create_loan_filter.rb index 09a30f6ae..4c329a149 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/link_token_create_request.rb b/lib/plaid/models/link_token_create_request.rb index e51d1464a..0d772771a 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end 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 a288c7143..537849900 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/link_token_create_request_auth.rb b/lib/plaid/models/link_token_create_request_auth.rb index f2ea262af..cb0811a4f 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =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 6a7b5617a..bc7cc2a10 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =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 19695f8c6..3dcadbf7f 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =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 719ce619a..e9fd75db3 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =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 3e0994e74..571865626 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =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 a72cf309a..2dee9fd6d 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/link_token_create_request_transfer.rb b/lib/plaid/models/link_token_create_request_transfer.rb index b158e6be6..e3ce7df5e 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/link_token_create_request_update.rb b/lib/plaid/models/link_token_create_request_update.rb index 68c28e3b4..691e03886 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/link_token_create_request_user.rb b/lib/plaid/models/link_token_create_request_user.rb index 628713459..a64390834 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/link_token_create_response.rb b/lib/plaid/models/link_token_create_response.rb index 68f93d2da..870bc7938 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/link_token_eu_config.rb b/lib/plaid/models/link_token_eu_config.rb index 0d7ec2a58..730422737 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/link_token_get_metadata_response.rb b/lib/plaid/models/link_token_get_metadata_response.rb index 6dcc3f0a2..ed9e8ed75 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/link_token_get_request.rb b/lib/plaid/models/link_token_get_request.rb index ed96b874d..0ff00fd38 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/link_token_get_response.rb b/lib/plaid/models/link_token_get_response.rb index 185caaa44..cb5fc5902 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/loan_account_subtype.rb b/lib/plaid/models/loan_account_subtype.rb index 1eba658ca..d371110d1 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/loan_filter.rb b/lib/plaid/models/loan_filter.rb index 0dc31a525..cc10b79b7 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/location.rb b/lib/plaid/models/location.rb index 502e0ad6b..17b08c6c7 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/meta.rb b/lib/plaid/models/meta.rb index 66ca5d734..b0a6067aa 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/mfa.rb b/lib/plaid/models/mfa.rb index c11997c43..3501f500a 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/mortgage_interest_rate.rb b/lib/plaid/models/mortgage_interest_rate.rb index 5aea97e2c..f7eba711a 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/mortgage_liability.rb b/lib/plaid/models/mortgage_liability.rb index bb151e343..031c45cbe 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/mortgage_property_address.rb b/lib/plaid/models/mortgage_property_address.rb index 414cae4e1..d61aaaf25 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/net_pay.rb b/lib/plaid/models/net_pay.rb index 759fbaa4d..400da19a9 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/new_accounts_available_webhook.rb b/lib/plaid/models/new_accounts_available_webhook.rb index 497828d1f..892ab59ea 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/numbers.rb b/lib/plaid/models/numbers.rb index 586ddc412..ed38e436f 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/numbers_ach.rb b/lib/plaid/models/numbers_ach.rb index 95e4f248e..138a7cbb7 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/numbers_ach_nullable.rb b/lib/plaid/models/numbers_ach_nullable.rb index d1e9ae2ac..ecc1447e2 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/numbers_bacs.rb b/lib/plaid/models/numbers_bacs.rb index 736851ce3..8d32f7bb2 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/numbers_bacs_nullable.rb b/lib/plaid/models/numbers_bacs_nullable.rb index bb8374cd7..1171dc0da 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/numbers_eft.rb b/lib/plaid/models/numbers_eft.rb index 7d7013bb5..294fb0b0b 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/numbers_eft_nullable.rb b/lib/plaid/models/numbers_eft_nullable.rb index 2be78ac3d..bcd7973ab 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/numbers_international.rb b/lib/plaid/models/numbers_international.rb index b1e65ac22..e9f41f4bb 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/numbers_international_nullable.rb b/lib/plaid/models/numbers_international_nullable.rb index 8f03409f1..9210e75f1 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/override_account_type.rb b/lib/plaid/models/override_account_type.rb index d7751ad04..9f2482e90 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/override_accounts.rb b/lib/plaid/models/override_accounts.rb index 4f892903d..75ecd133b 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/owner.rb b/lib/plaid/models/owner.rb index 7ae73aed0..30b174f60 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/owner_override.rb b/lib/plaid/models/owner_override.rb index 7de9bf25b..d3dadeff0 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/pay.rb b/lib/plaid/models/pay.rb index 234e05883..3f85b6270 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/pay_frequency.rb b/lib/plaid/models/pay_frequency.rb index 3d3a458a4..f887438b8 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/pay_frequency_value.rb b/lib/plaid/models/pay_frequency_value.rb index b8b050cfc..c45aab5f4 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/pay_period_details.rb b/lib/plaid/models/pay_period_details.rb index a0c9096f5..91450167a 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/pay_stub.rb b/lib/plaid/models/pay_stub.rb new file mode 100644 index 000000000..69f18196e --- /dev/null +++ b/lib/plaid/models/pay_stub.rb @@ -0,0 +1,329 @@ +=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.94.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # An object representing an end user's pay stub. + class PayStub + attr_accessor :deductions + + # An identifier of the document referenced by the document metadata. + attr_accessor :document_id + + attr_accessor :document_metadata + + attr_accessor :earnings + + attr_accessor :employee + + attr_accessor :employer + + attr_accessor :net_pay + + attr_accessor :pay_period_details + + attr_accessor :verification + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'deductions' => :'deductions', + :'document_id' => :'document_id', + :'document_metadata' => :'document_metadata', + :'earnings' => :'earnings', + :'employee' => :'employee', + :'employer' => :'employer', + :'net_pay' => :'net_pay', + :'pay_period_details' => :'pay_period_details', + :'verification' => :'verification' + } + 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 + { + :'deductions' => :'PayStubDeductions', + :'document_id' => :'String', + :'document_metadata' => :'CreditDocumentMetadata', + :'earnings' => :'PayStubEarnings', + :'employee' => :'PayStubEmployee', + :'employer' => :'PayStubEmployer', + :'net_pay' => :'PayStubNetPay', + :'pay_period_details' => :'PayStubPayPeriodDetails', + :'verification' => :'PayStubVerification' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'document_id', + :'verification' + ]) + 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::PayStub` 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::PayStub`. 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?(:'deductions') + self.deductions = attributes[:'deductions'] + end + + if attributes.key?(:'document_id') + self.document_id = attributes[:'document_id'] + end + + if attributes.key?(:'document_metadata') + self.document_metadata = attributes[:'document_metadata'] + end + + if attributes.key?(:'earnings') + self.earnings = attributes[:'earnings'] + end + + if attributes.key?(:'employee') + self.employee = attributes[:'employee'] + end + + if attributes.key?(:'employer') + self.employer = attributes[:'employer'] + end + + if attributes.key?(:'net_pay') + self.net_pay = attributes[:'net_pay'] + end + + if attributes.key?(:'pay_period_details') + self.pay_period_details = attributes[:'pay_period_details'] + end + + if attributes.key?(:'verification') + self.verification = attributes[:'verification'] + 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 @deductions.nil? + invalid_properties.push('invalid value for "deductions", deductions cannot be nil.') + end + + if @document_metadata.nil? + invalid_properties.push('invalid value for "document_metadata", document_metadata cannot be nil.') + end + + if @earnings.nil? + invalid_properties.push('invalid value for "earnings", earnings cannot be nil.') + end + + if @employee.nil? + invalid_properties.push('invalid value for "employee", employee cannot be nil.') + end + + if @employer.nil? + invalid_properties.push('invalid value for "employer", employer cannot be nil.') + end + + if @net_pay.nil? + invalid_properties.push('invalid value for "net_pay", net_pay cannot be nil.') + end + + if @pay_period_details.nil? + invalid_properties.push('invalid value for "pay_period_details", pay_period_details 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 @deductions.nil? + return false if @document_metadata.nil? + return false if @earnings.nil? + return false if @employee.nil? + return false if @employer.nil? + return false if @net_pay.nil? + return false if @pay_period_details.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 && + deductions == o.deductions && + document_id == o.document_id && + document_metadata == o.document_metadata && + earnings == o.earnings && + employee == o.employee && + employer == o.employer && + net_pay == o.net_pay && + pay_period_details == o.pay_period_details && + verification == o.verification + 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 + [deductions, document_id, document_metadata, earnings, employee, employer, net_pay, pay_period_details, verification].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) + 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/pay_stub_address.rb b/lib/plaid/models/pay_stub_address.rb new file mode 100644 index 000000000..7d33ec07b --- /dev/null +++ b/lib/plaid/models/pay_stub_address.rb @@ -0,0 +1,265 @@ +=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.94.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # Address on the pay stub. + class PayStubAddress + # The full city name. + attr_accessor :city + + # The ISO 3166-1 alpha-2 country code. + attr_accessor :country + + # The postal code of the address. + attr_accessor :postal_code + + # The region or state. Example: `\"NC\"` + attr_accessor :region + + # The full street address. + attr_accessor :street + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'city' => :'city', + :'country' => :'country', + :'postal_code' => :'postal_code', + :'region' => :'region', + :'street' => :'street' + } + 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 + { + :'city' => :'String', + :'country' => :'String', + :'postal_code' => :'String', + :'region' => :'String', + :'street' => :'String' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'city', + :'country', + :'postal_code', + :'region', + :'street' + ]) + 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::PayStubAddress` 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::PayStubAddress`. 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?(:'city') + self.city = attributes[:'city'] + end + + if attributes.key?(:'country') + self.country = attributes[:'country'] + end + + if attributes.key?(:'postal_code') + self.postal_code = attributes[:'postal_code'] + end + + if attributes.key?(:'region') + self.region = attributes[:'region'] + end + + if attributes.key?(:'street') + self.street = attributes[:'street'] + 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 + 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? + 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 && + city == o.city && + country == o.country && + postal_code == o.postal_code && + region == o.region && + street == o.street + 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 + [city, country, postal_code, region, street].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) + 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/pay_stub_deductions.rb b/lib/plaid/models/pay_stub_deductions.rb new file mode 100644 index 000000000..c604f7e81 --- /dev/null +++ b/lib/plaid/models/pay_stub_deductions.rb @@ -0,0 +1,240 @@ +=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.94.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # An object with the deduction information found on a pay stub. + class PayStubDeductions + attr_accessor :breakdown + + attr_accessor :total + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'breakdown' => :'breakdown', + :'total' => :'total' + } + 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 + { + :'breakdown' => :'Array', + :'total' => :'PayStubDeductionsTotal' + } + 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::PayStubDeductions` 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::PayStubDeductions`. 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?(:'breakdown') + if (value = attributes[:'breakdown']).is_a?(Array) + self.breakdown = value + end + end + + if attributes.key?(:'total') + self.total = attributes[:'total'] + 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 @breakdown.nil? + invalid_properties.push('invalid value for "breakdown", breakdown cannot be nil.') + end + + if @total.nil? + invalid_properties.push('invalid value for "total", total 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 @breakdown.nil? + return false if @total.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 && + breakdown == o.breakdown && + total == o.total + 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 + [breakdown, total].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) + 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/pay_stub_deductions_breakdown.rb b/lib/plaid/models/pay_stub_deductions_breakdown.rb new file mode 100644 index 000000000..ba87190b0 --- /dev/null +++ b/lib/plaid/models/pay_stub_deductions_breakdown.rb @@ -0,0 +1,265 @@ +=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.94.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # An object representing the deduction line items for the pay period + class PayStubDeductionsBreakdown + # Raw amount of the deduction + attr_accessor :current_amount + + # Description of the deduction line item + attr_accessor :description + + # The ISO-4217 currency code of the line item. Always `null` if `unofficial_currency_code` is non-null. + attr_accessor :iso_currency_code + + # The unofficial currency code associated with the line item. 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 + + # The year-to-date amount of the deduction + attr_accessor :ytd_amount + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'current_amount' => :'current_amount', + :'description' => :'description', + :'iso_currency_code' => :'iso_currency_code', + :'unofficial_currency_code' => :'unofficial_currency_code', + :'ytd_amount' => :'ytd_amount' + } + 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 + { + :'current_amount' => :'Float', + :'description' => :'String', + :'iso_currency_code' => :'String', + :'unofficial_currency_code' => :'String', + :'ytd_amount' => :'Float' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'current_amount', + :'description', + :'iso_currency_code', + :'unofficial_currency_code', + :'ytd_amount' + ]) + 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::PayStubDeductionsBreakdown` 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::PayStubDeductionsBreakdown`. 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?(:'current_amount') + self.current_amount = attributes[:'current_amount'] + end + + if attributes.key?(:'description') + self.description = attributes[:'description'] + end + + if attributes.key?(:'iso_currency_code') + self.iso_currency_code = attributes[:'iso_currency_code'] + end + + if attributes.key?(:'unofficial_currency_code') + self.unofficial_currency_code = attributes[:'unofficial_currency_code'] + end + + if attributes.key?(:'ytd_amount') + self.ytd_amount = attributes[:'ytd_amount'] + 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 + 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? + 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 && + current_amount == o.current_amount && + description == o.description && + iso_currency_code == o.iso_currency_code && + unofficial_currency_code == o.unofficial_currency_code && + ytd_amount == o.ytd_amount + 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 + [current_amount, description, iso_currency_code, unofficial_currency_code, ytd_amount].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) + 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/pay_stub_deductions_total.rb b/lib/plaid/models/pay_stub_deductions_total.rb new file mode 100644 index 000000000..c29662f15 --- /dev/null +++ b/lib/plaid/models/pay_stub_deductions_total.rb @@ -0,0 +1,254 @@ +=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.94.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # An object representing the total deductions for the pay period + class PayStubDeductionsTotal + # Raw amount of the deduction + attr_accessor :current_amount + + # The ISO-4217 currency code of the line item. Always `null` if `unofficial_currency_code` is non-null. + attr_accessor :iso_currency_code + + # The unofficial currency code associated with the line item. 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 + + # The year-to-date total amount of the deductions + attr_accessor :ytd_amount + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'current_amount' => :'current_amount', + :'iso_currency_code' => :'iso_currency_code', + :'unofficial_currency_code' => :'unofficial_currency_code', + :'ytd_amount' => :'ytd_amount' + } + 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 + { + :'current_amount' => :'Float', + :'iso_currency_code' => :'String', + :'unofficial_currency_code' => :'String', + :'ytd_amount' => :'Float' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'current_amount', + :'iso_currency_code', + :'unofficial_currency_code', + :'ytd_amount' + ]) + 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::PayStubDeductionsTotal` 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::PayStubDeductionsTotal`. 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?(:'current_amount') + self.current_amount = attributes[:'current_amount'] + end + + if attributes.key?(:'iso_currency_code') + self.iso_currency_code = attributes[:'iso_currency_code'] + end + + if attributes.key?(:'unofficial_currency_code') + self.unofficial_currency_code = attributes[:'unofficial_currency_code'] + end + + if attributes.key?(:'ytd_amount') + self.ytd_amount = attributes[:'ytd_amount'] + 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 + 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? + 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 && + current_amount == o.current_amount && + iso_currency_code == o.iso_currency_code && + unofficial_currency_code == o.unofficial_currency_code && + ytd_amount == o.ytd_amount + 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 + [current_amount, iso_currency_code, unofficial_currency_code, ytd_amount].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) + 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/pay_stub_distribution_breakdown.rb b/lib/plaid/models/pay_stub_distribution_breakdown.rb new file mode 100644 index 000000000..33b7b2560 --- /dev/null +++ b/lib/plaid/models/pay_stub_distribution_breakdown.rb @@ -0,0 +1,287 @@ +=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.94.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # Information about the accounts that the payment was distributed to. + class PayStubDistributionBreakdown + # Name of the account for the given distribution. + attr_accessor :account_name + + # The name of the bank that the payment is being deposited to. + attr_accessor :bank_name + + # The amount distributed to this account. + attr_accessor :current_amount + + # The ISO-4217 currency code of the net pay. Always `null` if `unofficial_currency_code` is non-null. + attr_accessor :iso_currency_code + + # The last 2-4 alphanumeric characters of an account's official account number. + attr_accessor :mask + + # Type of the account that the paystub was sent to (e.g. 'checking'). + attr_accessor :type + + # 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 + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'account_name' => :'account_name', + :'bank_name' => :'bank_name', + :'current_amount' => :'current_amount', + :'iso_currency_code' => :'iso_currency_code', + :'mask' => :'mask', + :'type' => :'type', + :'unofficial_currency_code' => :'unofficial_currency_code' + } + 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 + { + :'account_name' => :'String', + :'bank_name' => :'String', + :'current_amount' => :'Float', + :'iso_currency_code' => :'String', + :'mask' => :'String', + :'type' => :'String', + :'unofficial_currency_code' => :'String' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'account_name', + :'bank_name', + :'current_amount', + :'iso_currency_code', + :'mask', + :'type', + :'unofficial_currency_code' + ]) + 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::PayStubDistributionBreakdown` 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::PayStubDistributionBreakdown`. 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?(:'account_name') + self.account_name = attributes[:'account_name'] + end + + if attributes.key?(:'bank_name') + self.bank_name = attributes[:'bank_name'] + end + + if attributes.key?(:'current_amount') + self.current_amount = attributes[:'current_amount'] + end + + if attributes.key?(:'iso_currency_code') + self.iso_currency_code = attributes[:'iso_currency_code'] + end + + if attributes.key?(:'mask') + self.mask = attributes[:'mask'] + end + + if attributes.key?(:'type') + self.type = attributes[:'type'] + end + + if attributes.key?(:'unofficial_currency_code') + self.unofficial_currency_code = attributes[:'unofficial_currency_code'] + 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 + 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? + 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 && + account_name == o.account_name && + bank_name == o.bank_name && + current_amount == o.current_amount && + iso_currency_code == o.iso_currency_code && + mask == o.mask && + type == o.type && + unofficial_currency_code == o.unofficial_currency_code + 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 + [account_name, bank_name, current_amount, iso_currency_code, mask, type, unofficial_currency_code].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) + 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/requested_scopes.rb b/lib/plaid/models/pay_stub_earnings.rb similarity index 81% rename from lib/plaid/models/requested_scopes.rb rename to lib/plaid/models/pay_stub_earnings.rb index a377739f9..dafbcd34d 100644 --- a/lib/plaid/models/requested_scopes.rb +++ b/lib/plaid/models/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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end @@ -14,17 +14,17 @@ require 'time' module Plaid - # Scope of required and optional account features or content from a ConnectedApplication. - class RequestedScopes - attr_accessor :account_filters + # An object representing both a breakdown of earnings on a pay stub and the total earnings. + class PayStubEarnings + attr_accessor :breakdown - attr_accessor :account_selection_cardinality + attr_accessor :total # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'account_filters' => :'account_filters', - :'account_selection_cardinality' => :'account_selection_cardinality' + :'breakdown' => :'breakdown', + :'total' => :'total' } end @@ -36,8 +36,8 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types { - :'account_filters' => :'AccountFilter', - :'account_selection_cardinality' => :'AccountSelectionCardinality' + :'breakdown' => :'Array', + :'total' => :'PayStubEarningsTotal' } end @@ -51,23 +51,25 @@ def self.openapi_nullable # @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::RequestedScopes` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Plaid::PayStubEarnings` 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::RequestedScopes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Plaid::PayStubEarnings`. 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?(:'account_filters') - self.account_filters = attributes[:'account_filters'] + if attributes.key?(:'breakdown') + if (value = attributes[:'breakdown']).is_a?(Array) + self.breakdown = value + end end - if attributes.key?(:'account_selection_cardinality') - self.account_selection_cardinality = attributes[:'account_selection_cardinality'] + if attributes.key?(:'total') + self.total = attributes[:'total'] end end @@ -75,8 +77,12 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @account_selection_cardinality.nil? - invalid_properties.push('invalid value for "account_selection_cardinality", account_selection_cardinality cannot be nil.') + if @breakdown.nil? + invalid_properties.push('invalid value for "breakdown", breakdown cannot be nil.') + end + + if @total.nil? + invalid_properties.push('invalid value for "total", total cannot be nil.') end invalid_properties @@ -85,7 +91,8 @@ def list_invalid_properties # 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 @account_selection_cardinality.nil? + return false if @breakdown.nil? + return false if @total.nil? true end @@ -94,8 +101,8 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - account_filters == o.account_filters && - account_selection_cardinality == o.account_selection_cardinality + breakdown == o.breakdown && + total == o.total end # @see the `==` method @@ -107,7 +114,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [account_filters, account_selection_cardinality].hash + [breakdown, total].hash end # Builds the object from hash diff --git a/lib/plaid/models/pay_stub_earnings_breakdown.rb b/lib/plaid/models/pay_stub_earnings_breakdown.rb new file mode 100644 index 000000000..d11662f22 --- /dev/null +++ b/lib/plaid/models/pay_stub_earnings_breakdown.rb @@ -0,0 +1,298 @@ +=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.94.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # An object representing the earnings line items for the pay period. + class PayStubEarningsBreakdown + # Commonly used term to describe the earning line item. + attr_accessor :canonical_description + + # Raw amount of the earning line item. + attr_accessor :current_amount + + # Description of the earning line item. + attr_accessor :description + + # Number of hours applicable for this earning. + attr_accessor :hours + + # The ISO-4217 currency code of the line item. Always `null` if `unofficial_currency_code` is non-null. + attr_accessor :iso_currency_code + + # Hourly rate applicable for this earning. + attr_accessor :rate + + # The unofficial currency code associated with the line item. 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 + + # The year-to-date amount of the deduction. + attr_accessor :ytd_amount + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'canonical_description' => :'canonical_description', + :'current_amount' => :'current_amount', + :'description' => :'description', + :'hours' => :'hours', + :'iso_currency_code' => :'iso_currency_code', + :'rate' => :'rate', + :'unofficial_currency_code' => :'unofficial_currency_code', + :'ytd_amount' => :'ytd_amount' + } + 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 + { + :'canonical_description' => :'String', + :'current_amount' => :'Float', + :'description' => :'String', + :'hours' => :'Float', + :'iso_currency_code' => :'String', + :'rate' => :'Float', + :'unofficial_currency_code' => :'String', + :'ytd_amount' => :'Float' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'canonical_description', + :'current_amount', + :'description', + :'hours', + :'iso_currency_code', + :'rate', + :'unofficial_currency_code', + :'ytd_amount' + ]) + 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::PayStubEarningsBreakdown` 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::PayStubEarningsBreakdown`. 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?(:'canonical_description') + self.canonical_description = attributes[:'canonical_description'] + end + + if attributes.key?(:'current_amount') + self.current_amount = attributes[:'current_amount'] + end + + if attributes.key?(:'description') + self.description = attributes[:'description'] + end + + if attributes.key?(:'hours') + self.hours = attributes[:'hours'] + end + + if attributes.key?(:'iso_currency_code') + self.iso_currency_code = attributes[:'iso_currency_code'] + end + + if attributes.key?(:'rate') + self.rate = attributes[:'rate'] + end + + if attributes.key?(:'unofficial_currency_code') + self.unofficial_currency_code = attributes[:'unofficial_currency_code'] + end + + if attributes.key?(:'ytd_amount') + self.ytd_amount = attributes[:'ytd_amount'] + 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 + 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? + 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 && + canonical_description == o.canonical_description && + current_amount == o.current_amount && + description == o.description && + hours == o.hours && + iso_currency_code == o.iso_currency_code && + rate == o.rate && + unofficial_currency_code == o.unofficial_currency_code && + ytd_amount == o.ytd_amount + 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 + [canonical_description, current_amount, description, hours, iso_currency_code, rate, unofficial_currency_code, ytd_amount].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) + 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/pay_stub_earnings_total.rb b/lib/plaid/models/pay_stub_earnings_total.rb new file mode 100644 index 000000000..39f6ef69c --- /dev/null +++ b/lib/plaid/models/pay_stub_earnings_total.rb @@ -0,0 +1,265 @@ +=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.94.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # An object representing both the current pay period and year to date amount for an earning category. + class PayStubEarningsTotal + # Total amount of the earnings for this pay period. + attr_accessor :current_amount + + # Total number of hours worked for this pay period. + attr_accessor :hours + + # The ISO-4217 currency code of the line item. Always `null` if `unofficial_currency_code` is non-null. + attr_accessor :iso_currency_code + + # The unofficial currency code associated with the security. 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 + + # The total year-to-date amount of the earnings. + attr_accessor :ytd_amount + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'current_amount' => :'current_amount', + :'hours' => :'hours', + :'iso_currency_code' => :'iso_currency_code', + :'unofficial_currency_code' => :'unofficial_currency_code', + :'ytd_amount' => :'ytd_amount' + } + 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 + { + :'current_amount' => :'Float', + :'hours' => :'Float', + :'iso_currency_code' => :'String', + :'unofficial_currency_code' => :'String', + :'ytd_amount' => :'Float' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'current_amount', + :'hours', + :'iso_currency_code', + :'unofficial_currency_code', + :'ytd_amount' + ]) + 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::PayStubEarningsTotal` 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::PayStubEarningsTotal`. 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?(:'current_amount') + self.current_amount = attributes[:'current_amount'] + end + + if attributes.key?(:'hours') + self.hours = attributes[:'hours'] + end + + if attributes.key?(:'iso_currency_code') + self.iso_currency_code = attributes[:'iso_currency_code'] + end + + if attributes.key?(:'unofficial_currency_code') + self.unofficial_currency_code = attributes[:'unofficial_currency_code'] + end + + if attributes.key?(:'ytd_amount') + self.ytd_amount = attributes[:'ytd_amount'] + 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 + 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? + 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 && + current_amount == o.current_amount && + hours == o.hours && + iso_currency_code == o.iso_currency_code && + unofficial_currency_code == o.unofficial_currency_code && + ytd_amount == o.ytd_amount + 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 + [current_amount, hours, iso_currency_code, unofficial_currency_code, ytd_amount].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) + 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/pay_stub_employee.rb b/lib/plaid/models/pay_stub_employee.rb new file mode 100644 index 000000000..61bc0ce86 --- /dev/null +++ b/lib/plaid/models/pay_stub_employee.rb @@ -0,0 +1,260 @@ +=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.94.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # Data about the employee. + class PayStubEmployee + attr_accessor :address + + # The name of the employee. + attr_accessor :name + + # Marital status of the employee - either `SINGLE` or `MARRIED`. + attr_accessor :marital_status + + attr_accessor :taxpayer_id + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'address' => :'address', + :'name' => :'name', + :'marital_status' => :'marital_status', + :'taxpayer_id' => :'taxpayer_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 + { + :'address' => :'PayStubAddress', + :'name' => :'String', + :'marital_status' => :'String', + :'taxpayer_id' => :'PayStubTaxpayerID' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'name', + :'marital_status', + ]) + 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::PayStubEmployee` 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::PayStubEmployee`. 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?(:'address') + self.address = attributes[:'address'] + end + + if attributes.key?(:'name') + self.name = attributes[:'name'] + end + + if attributes.key?(:'marital_status') + self.marital_status = attributes[:'marital_status'] + end + + if attributes.key?(:'taxpayer_id') + self.taxpayer_id = attributes[:'taxpayer_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 @address.nil? + invalid_properties.push('invalid value for "address", address cannot be nil.') + end + + if @taxpayer_id.nil? + invalid_properties.push('invalid value for "taxpayer_id", taxpayer_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 @address.nil? + return false if @taxpayer_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 && + address == o.address && + name == o.name && + marital_status == o.marital_status && + taxpayer_id == o.taxpayer_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 + [address, name, marital_status, taxpayer_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) + 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/pay_stub_employer.rb b/lib/plaid/models/pay_stub_employer.rb new file mode 100644 index 000000000..eaa5b5db4 --- /dev/null +++ b/lib/plaid/models/pay_stub_employer.rb @@ -0,0 +1,235 @@ +=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.94.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # Information about the employer on the pay stub. + class PayStubEmployer + attr_accessor :address + + # The name of the employer on the pay stub. + attr_accessor :name + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'address' => :'address', + :'name' => :'name' + } + 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 + { + :'address' => :'PayStubAddress', + :'name' => :'String' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'name' + ]) + 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::PayStubEmployer` 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::PayStubEmployer`. 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?(:'address') + self.address = attributes[:'address'] + end + + if attributes.key?(:'name') + self.name = attributes[:'name'] + 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 @address.nil? + invalid_properties.push('invalid value for "address", address 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 @address.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 && + address == o.address && + name == o.name + 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 + [address, name].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) + 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/pay_stub_net_pay.rb b/lib/plaid/models/pay_stub_net_pay.rb new file mode 100644 index 000000000..f95124244 --- /dev/null +++ b/lib/plaid/models/pay_stub_net_pay.rb @@ -0,0 +1,265 @@ +=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.94.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # An object representing information about the net pay amount on the pay stub. + class PayStubNetPay + # Raw amount of the net pay for the pay period. + attr_accessor :current_amount + + # Description of the net pay. + attr_accessor :description + + # The ISO-4217 currency code of the net pay. Always `null` if `unofficial_currency_code` is non-null. + attr_accessor :iso_currency_code + + # 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 + + # The year-to-date amount of the net pay. + attr_accessor :ytd_amount + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'current_amount' => :'current_amount', + :'description' => :'description', + :'iso_currency_code' => :'iso_currency_code', + :'unofficial_currency_code' => :'unofficial_currency_code', + :'ytd_amount' => :'ytd_amount' + } + 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 + { + :'current_amount' => :'Float', + :'description' => :'String', + :'iso_currency_code' => :'String', + :'unofficial_currency_code' => :'String', + :'ytd_amount' => :'Float' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'current_amount', + :'description', + :'iso_currency_code', + :'unofficial_currency_code', + :'ytd_amount' + ]) + 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::PayStubNetPay` 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::PayStubNetPay`. 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?(:'current_amount') + self.current_amount = attributes[:'current_amount'] + end + + if attributes.key?(:'description') + self.description = attributes[:'description'] + end + + if attributes.key?(:'iso_currency_code') + self.iso_currency_code = attributes[:'iso_currency_code'] + end + + if attributes.key?(:'unofficial_currency_code') + self.unofficial_currency_code = attributes[:'unofficial_currency_code'] + end + + if attributes.key?(:'ytd_amount') + self.ytd_amount = attributes[:'ytd_amount'] + 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 + 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? + 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 && + current_amount == o.current_amount && + description == o.description && + iso_currency_code == o.iso_currency_code && + unofficial_currency_code == o.unofficial_currency_code && + ytd_amount == o.ytd_amount + 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 + [current_amount, description, iso_currency_code, unofficial_currency_code, ytd_amount].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) + 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/pay_stub_pay_period_details.rb b/lib/plaid/models/pay_stub_pay_period_details.rb new file mode 100644 index 000000000..25e8ae3fb --- /dev/null +++ b/lib/plaid/models/pay_stub_pay_period_details.rb @@ -0,0 +1,314 @@ +=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.94.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # Details about the pay period. + class PayStubPayPeriodDetails + # The amount of the paycheck. + attr_accessor :pay_amount + + attr_accessor :distribution_breakdown + + # The date on which the pay period ended, in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format (\"yyyy-mm-dd\"). + attr_accessor :end_date + + # Total earnings before tax/deductions. + attr_accessor :gross_earnings + + # The ISO-4217 currency code of the net pay. Always `null` if `unofficial_currency_code` is non-null. + attr_accessor :iso_currency_code + + # The date on which the pay stub was issued, in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format (\"yyyy-mm-dd\"). + attr_accessor :pay_date + + # The frequency at which an individual is paid. + attr_accessor :pay_frequency + + # The date on which the pay period started, in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format (\"yyyy-mm-dd\"). + attr_accessor :start_date + + # 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 + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'pay_amount' => :'pay_amount', + :'distribution_breakdown' => :'distribution_breakdown', + :'end_date' => :'end_date', + :'gross_earnings' => :'gross_earnings', + :'iso_currency_code' => :'iso_currency_code', + :'pay_date' => :'pay_date', + :'pay_frequency' => :'pay_frequency', + :'start_date' => :'start_date', + :'unofficial_currency_code' => :'unofficial_currency_code' + } + 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 + { + :'pay_amount' => :'Float', + :'distribution_breakdown' => :'Array', + :'end_date' => :'Date', + :'gross_earnings' => :'Float', + :'iso_currency_code' => :'String', + :'pay_date' => :'Date', + :'pay_frequency' => :'String', + :'start_date' => :'Date', + :'unofficial_currency_code' => :'String' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'pay_amount', + :'end_date', + :'gross_earnings', + :'iso_currency_code', + :'pay_date', + :'pay_frequency', + :'start_date', + :'unofficial_currency_code' + ]) + 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::PayStubPayPeriodDetails` 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::PayStubPayPeriodDetails`. 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?(:'pay_amount') + self.pay_amount = attributes[:'pay_amount'] + end + + if attributes.key?(:'distribution_breakdown') + if (value = attributes[:'distribution_breakdown']).is_a?(Array) + self.distribution_breakdown = value + end + end + + if attributes.key?(:'end_date') + self.end_date = attributes[:'end_date'] + end + + if attributes.key?(:'gross_earnings') + self.gross_earnings = attributes[:'gross_earnings'] + end + + if attributes.key?(:'iso_currency_code') + self.iso_currency_code = attributes[:'iso_currency_code'] + end + + if attributes.key?(:'pay_date') + self.pay_date = attributes[:'pay_date'] + end + + if attributes.key?(:'pay_frequency') + self.pay_frequency = attributes[:'pay_frequency'] + end + + if attributes.key?(:'start_date') + self.start_date = attributes[:'start_date'] + end + + if attributes.key?(:'unofficial_currency_code') + self.unofficial_currency_code = attributes[:'unofficial_currency_code'] + 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 @distribution_breakdown.nil? + invalid_properties.push('invalid value for "distribution_breakdown", distribution_breakdown 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 @distribution_breakdown.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 && + pay_amount == o.pay_amount && + distribution_breakdown == o.distribution_breakdown && + end_date == o.end_date && + gross_earnings == o.gross_earnings && + iso_currency_code == o.iso_currency_code && + pay_date == o.pay_date && + pay_frequency == o.pay_frequency && + start_date == o.start_date && + unofficial_currency_code == o.unofficial_currency_code + 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 + [pay_amount, distribution_breakdown, end_date, gross_earnings, iso_currency_code, pay_date, pay_frequency, start_date, unofficial_currency_code].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) + 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/pay_stub_taxpayer_id.rb b/lib/plaid/models/pay_stub_taxpayer_id.rb new file mode 100644 index 000000000..a4066d7bd --- /dev/null +++ b/lib/plaid/models/pay_stub_taxpayer_id.rb @@ -0,0 +1,232 @@ +=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.94.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # Taxpayer ID of the individual receiving the paystub. + class PayStubTaxpayerID + # Type of ID, e.g. 'SSN'. + attr_accessor :id_type + + # ID mask; i.e. last 4 digits of the taxpayer ID. + attr_accessor :id_mask + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'id_type' => :'id_type', + :'id_mask' => :'id_mask' + } + 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 + { + :'id_type' => :'String', + :'id_mask' => :'String' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'id_type', + :'id_mask' + ]) + 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::PayStubTaxpayerID` 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::PayStubTaxpayerID`. 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?(:'id_type') + self.id_type = attributes[:'id_type'] + end + + if attributes.key?(:'id_mask') + self.id_mask = attributes[:'id_mask'] + 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 + 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? + 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 && + id_type == o.id_type && + id_mask == o.id_mask + 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 + [id_type, id_mask].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) + 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/pay_stub_verification.rb b/lib/plaid/models/pay_stub_verification.rb new file mode 100644 index 000000000..b5e065ff0 --- /dev/null +++ b/lib/plaid/models/pay_stub_verification.rb @@ -0,0 +1,237 @@ +=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.94.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # An object containing details on the paystub's verification status. This object will only be populated if the [`income_verification.access_tokens`](/docs/api/tokens/#link-token-create-request-income-verification-access-tokens) parameter was provided during the `/link/token/create` call or if a problem was detected with the information supplied by the user; otherwise it will be `null`. + class PayStubVerification + # Derived verification status. + attr_accessor :verification_status + + attr_accessor :verification_attributes + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'verification_status' => :'verification_status', + :'verification_attributes' => :'verification_attributes' + } + 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 + { + :'verification_status' => :'String', + :'verification_attributes' => :'Array' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'verification_status', + ]) + 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::PayStubVerification` 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::PayStubVerification`. 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?(:'verification_status') + self.verification_status = attributes[:'verification_status'] + end + + if attributes.key?(:'verification_attributes') + if (value = attributes[:'verification_attributes']).is_a?(Array) + self.verification_attributes = value + end + 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 @verification_attributes.nil? + invalid_properties.push('invalid value for "verification_attributes", verification_attributes 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 @verification_attributes.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 && + verification_status == o.verification_status && + verification_attributes == o.verification_attributes + 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 + [verification_status, verification_attributes].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) + 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/pay_stub_verification_attribute.rb b/lib/plaid/models/pay_stub_verification_attribute.rb new file mode 100644 index 000000000..48476ebf5 --- /dev/null +++ b/lib/plaid/models/pay_stub_verification_attribute.rb @@ -0,0 +1,221 @@ +=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.94.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # Details about a certain reason as to why a document could potentially be fraudulent. + class PayStubVerificationAttribute + # Message indicating the reason as to why the verification failed. + attr_accessor :type + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'type' => :'type' + } + 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 + { + :'type' => :'String' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'type' + ]) + 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::PayStubVerificationAttribute` 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::PayStubVerificationAttribute`. 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?(:'type') + self.type = attributes[:'type'] + 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 + 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? + 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 && + type == o.type + 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 + [type].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) + 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/payment_amount.rb b/lib/plaid/models/payment_amount.rb index 8717b8b20..4cb0a635d 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_amount_currency.rb b/lib/plaid/models/payment_amount_currency.rb index b3855f0d4..58e1b129f 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_channel.rb b/lib/plaid/models/payment_channel.rb index 1d14bce4d..a972031fc 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_consent_max_payment_amount.rb b/lib/plaid/models/payment_consent_max_payment_amount.rb index 7a2783c12..32b4cbd70 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_consent_periodic_alignment.rb b/lib/plaid/models/payment_consent_periodic_alignment.rb index 4d21e8ca3..a42dbc95b 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_consent_periodic_amount.rb b/lib/plaid/models/payment_consent_periodic_amount.rb index 118a56f02..cad16ddec 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_consent_periodic_amount_amount.rb b/lib/plaid/models/payment_consent_periodic_amount_amount.rb index 77a443908..3b86b6b64 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_consent_periodic_interval.rb b/lib/plaid/models/payment_consent_periodic_interval.rb index 857ace6d4..b44c65105 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_consent_valid_date_time.rb b/lib/plaid/models/payment_consent_valid_date_time.rb index 684c8a25e..edfea2e14 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end @@ -46,6 +46,8 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'from', + :'to' ]) end diff --git a/lib/plaid/models/payment_initiation_address.rb b/lib/plaid/models/payment_initiation_address.rb index d11d347df..4f47abf98 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_initiation_consent.rb b/lib/plaid/models/payment_initiation_consent.rb index 0667f8150..0341b1465 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_initiation_consent_constraints.rb b/lib/plaid/models/payment_initiation_consent_constraints.rb index df07fc58a..eb14b02ed 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end @@ -49,6 +49,7 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'valid_date_time', ]) end diff --git a/lib/plaid/models/payment_initiation_consent_create_request.rb b/lib/plaid/models/payment_initiation_consent_create_request.rb index 0ef01a9ee..a1ea0a24e 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_initiation_consent_create_response.rb b/lib/plaid/models/payment_initiation_consent_create_response.rb index ec3653eb4..1929703d0 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_initiation_consent_get_request.rb b/lib/plaid/models/payment_initiation_consent_get_request.rb index d2625324f..1fdca66a9 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_initiation_consent_get_response.rb b/lib/plaid/models/payment_initiation_consent_get_response.rb index 2e2d6c028..95aef7e9a 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end 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 d37acaebd..fb0c7c78f 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =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 4782af92b..9c714b40b 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_initiation_consent_revoke_request.rb b/lib/plaid/models/payment_initiation_consent_revoke_request.rb index 308104019..5ad3ab4ac 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_initiation_consent_revoke_response.rb b/lib/plaid/models/payment_initiation_consent_revoke_response.rb index f460ad2cb..04ae0312a 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_initiation_consent_scope.rb b/lib/plaid/models/payment_initiation_consent_scope.rb index 1c6edfd24..a21d2b40d 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_initiation_consent_status.rb b/lib/plaid/models/payment_initiation_consent_status.rb index 83b36b2fd..0acc1571b 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_initiation_metadata.rb b/lib/plaid/models/payment_initiation_metadata.rb index a6df0e8a9..72ba46099 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_initiation_optional_restriction_bacs.rb b/lib/plaid/models/payment_initiation_optional_restriction_bacs.rb index e9f043cdc..347aa26e8 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_initiation_payment.rb b/lib/plaid/models/payment_initiation_payment.rb index e1a596e9c..87bda08c1 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_initiation_payment_create_request.rb b/lib/plaid/models/payment_initiation_payment_create_request.rb index 28090fe3d..87e2839a8 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_initiation_payment_create_response.rb b/lib/plaid/models/payment_initiation_payment_create_response.rb index e1c13b404..a62751adf 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_initiation_payment_create_status.rb b/lib/plaid/models/payment_initiation_payment_create_status.rb index dbf1d89d0..fad38f3b2 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_initiation_payment_get_request.rb b/lib/plaid/models/payment_initiation_payment_get_request.rb index f8d7d1e22..885dd6ee2 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_initiation_payment_get_response.rb b/lib/plaid/models/payment_initiation_payment_get_response.rb index 83aeb97da..811f4fa6f 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_initiation_payment_list_request.rb b/lib/plaid/models/payment_initiation_payment_list_request.rb index 72a83ab6c..6ad3973c4 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_initiation_payment_list_response.rb b/lib/plaid/models/payment_initiation_payment_list_response.rb index f89221534..845c211c9 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_initiation_payment_reverse_request.rb b/lib/plaid/models/payment_initiation_payment_reverse_request.rb index 7ba9b744b..ae12969dd 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_initiation_payment_reverse_response.rb b/lib/plaid/models/payment_initiation_payment_reverse_response.rb index 59e97ab8f..785cd96c1 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_initiation_payment_status.rb b/lib/plaid/models/payment_initiation_payment_status.rb index 6ab1fb1f3..fbe5bdd18 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =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 2e7e850f3..35e49aa21 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =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 0821940af..e84f23371 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_initiation_recipient.rb b/lib/plaid/models/payment_initiation_recipient.rb index 7b1e6c59c..76046ee93 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_initiation_recipient_create_request.rb b/lib/plaid/models/payment_initiation_recipient_create_request.rb index 113c6f4c8..ee1618c60 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_initiation_recipient_create_response.rb b/lib/plaid/models/payment_initiation_recipient_create_response.rb index f79c4c268..7049f89f9 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_initiation_recipient_get_request.rb b/lib/plaid/models/payment_initiation_recipient_get_request.rb index 5ae183292..76e482cdc 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_initiation_recipient_get_response.rb b/lib/plaid/models/payment_initiation_recipient_get_response.rb index b4facb6a6..7e69271dc 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =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 69d271a7d..07f357ca8 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_initiation_recipient_list_request.rb b/lib/plaid/models/payment_initiation_recipient_list_request.rb index 112ea7a86..2fbebbca8 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_initiation_recipient_list_response.rb b/lib/plaid/models/payment_initiation_recipient_list_response.rb index 1972fcc24..574fe6eb2 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_initiation_refund.rb b/lib/plaid/models/payment_initiation_refund.rb index e89592445..2da3a2765 100644 --- a/lib/plaid/models/payment_initiation_refund.rb +++ b/lib/plaid/models/payment_initiation_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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_initiation_refund_status.rb b/lib/plaid/models/payment_initiation_refund_status.rb index ddc7e5e29..7cdaf1587 100644 --- a/lib/plaid/models/payment_initiation_refund_status.rb +++ b/lib/plaid/models/payment_initiation_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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_initiation_standing_order_metadata.rb b/lib/plaid/models/payment_initiation_standing_order_metadata.rb index 4639f1208..62499fba8 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_meta.rb b/lib/plaid/models/payment_meta.rb index 769ec885b..10f8a1774 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_schedule_interval.rb b/lib/plaid/models/payment_schedule_interval.rb index 701a04006..7714bd108 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_scheme.rb b/lib/plaid/models/payment_scheme.rb index 61d30fdc8..37fc4589b 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payment_status_update_webhook.rb b/lib/plaid/models/payment_status_update_webhook.rb index 89198ca50..c02cab294 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/payroll_income_object.rb b/lib/plaid/models/payroll_income_object.rb new file mode 100644 index 000000000..d590bded6 --- /dev/null +++ b/lib/plaid/models/payroll_income_object.rb @@ -0,0 +1,255 @@ +=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.94.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # An object representing payroll data. + class PayrollIncomeObject + # ID of the payroll provider account. + attr_accessor :account_id + + # Array of pay stubs for the user. + attr_accessor :pay_stubs + + # Array of tax form W-2s. + attr_accessor :w2s + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'account_id' => :'account_id', + :'pay_stubs' => :'pay_stubs', + :'w2s' => :'w2s' + } + 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 + { + :'account_id' => :'String', + :'pay_stubs' => :'Array', + :'w2s' => :'Array' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'account_id', + ]) + 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::PayrollIncomeObject` 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::PayrollIncomeObject`. 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?(:'account_id') + self.account_id = attributes[:'account_id'] + end + + if attributes.key?(:'pay_stubs') + if (value = attributes[:'pay_stubs']).is_a?(Array) + self.pay_stubs = value + end + end + + if attributes.key?(:'w2s') + if (value = attributes[:'w2s']).is_a?(Array) + self.w2s = value + end + 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 @pay_stubs.nil? + invalid_properties.push('invalid value for "pay_stubs", pay_stubs cannot be nil.') + end + + if @w2s.nil? + invalid_properties.push('invalid value for "w2s", w2s 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 @pay_stubs.nil? + return false if @w2s.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 && + account_id == o.account_id && + pay_stubs == o.pay_stubs && + w2s == o.w2s + 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 + [account_id, pay_stubs, w2s].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) + 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/payroll_item.rb b/lib/plaid/models/payroll_item.rb new file mode 100644 index 000000000..2d88cf750 --- /dev/null +++ b/lib/plaid/models/payroll_item.rb @@ -0,0 +1,241 @@ +=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.94.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # An object containing information about the payroll item. + class PayrollItem + # The `item_id` of the Item associated with this webhook, warning, or error + attr_accessor :item_id + + attr_accessor :payroll_income + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'item_id' => :'item_id', + :'payroll_income' => :'payroll_income' + } + 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 + { + :'item_id' => :'String', + :'payroll_income' => :'Array' + } + 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::PayrollItem` 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::PayrollItem`. 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?(:'item_id') + self.item_id = attributes[:'item_id'] + end + + if attributes.key?(:'payroll_income') + if (value = attributes[:'payroll_income']).is_a?(Array) + self.payroll_income = value + end + 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 @item_id.nil? + invalid_properties.push('invalid value for "item_id", item_id cannot be nil.') + end + + if @payroll_income.nil? + invalid_properties.push('invalid value for "payroll_income", payroll_income 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 @item_id.nil? + return false if @payroll_income.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 && + item_id == o.item_id && + payroll_income == o.payroll_income + 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 + [item_id, payroll_income].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) + 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/paystub.rb b/lib/plaid/models/paystub.rb index dd4b3d722..36afe837e 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/paystub_address.rb b/lib/plaid/models/paystub_address.rb index 870e66808..8d304a6df 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/paystub_deduction.rb b/lib/plaid/models/paystub_deduction.rb index cc9a570aa..bd994307e 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/paystub_details.rb b/lib/plaid/models/paystub_details.rb index fa41392b0..97a95fddc 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/paystub_employer.rb b/lib/plaid/models/paystub_employer.rb index 9f6f4180f..8d491d50b 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/paystub_override.rb b/lib/plaid/models/paystub_override.rb index dfd9f5e8b..a2ec7df19 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/paystub_override_employee.rb b/lib/plaid/models/paystub_override_employee.rb index 843249f19..835c955aa 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/paystub_override_employee_address.rb b/lib/plaid/models/paystub_override_employee_address.rb index 33a1ea2d7..901b4d385 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/paystub_override_employer.rb b/lib/plaid/models/paystub_override_employer.rb index 32fa3d896..69cc4f79b 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/paystub_pay_frequency.rb b/lib/plaid/models/paystub_pay_frequency.rb index 93e651804..647c50435 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/paystub_verification.rb b/lib/plaid/models/paystub_verification.rb index 06ac43e55..e661f97ce 100644 --- a/lib/plaid/models/paystub_verification.rb +++ b/lib/plaid/models/paystub_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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/paystub_verification_status.rb b/lib/plaid/models/paystub_verification_status.rb index 9d8c3dcdd..ffc880bc5 100644 --- a/lib/plaid/models/paystub_verification_status.rb +++ b/lib/plaid/models/paystub_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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/paystub_ytd_details.rb b/lib/plaid/models/paystub_ytd_details.rb index 4890cfb38..7f864b8a7 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/pending_expiration_webhook.rb b/lib/plaid/models/pending_expiration_webhook.rb index 790247862..0d03f15f6 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/personal_finance_category.rb b/lib/plaid/models/personal_finance_category.rb index 7fcf13a40..dbd6761e8 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/phone_number.rb b/lib/plaid/models/phone_number.rb index cc488cf02..1a642aa41 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/plaid_error.rb b/lib/plaid/models/plaid_error.rb index 2b298f406..904cb08ad 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/platform_ids.rb b/lib/plaid/models/platform_ids.rb index 1104dc4e5..0acf60d3d 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =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 9a14e1127..1bac603c6 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/processor_auth_get_request.rb b/lib/plaid/models/processor_auth_get_request.rb index 63df85767..6883d2797 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/processor_auth_get_response.rb b/lib/plaid/models/processor_auth_get_response.rb index 8ddccfc00..6a0a34cd9 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/processor_balance_get_request.rb b/lib/plaid/models/processor_balance_get_request.rb index 3a079e341..bc599366b 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/processor_balance_get_request_options.rb b/lib/plaid/models/processor_balance_get_request_options.rb index 15d575c4e..9cf7e2204 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/processor_balance_get_response.rb b/lib/plaid/models/processor_balance_get_response.rb index 22c594a5d..8f0c8d1e9 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/processor_bank_transfer_create_request.rb b/lib/plaid/models/processor_bank_transfer_create_request.rb index a659a3ede..f99df3a9d 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/processor_bank_transfer_create_response.rb b/lib/plaid/models/processor_bank_transfer_create_response.rb index d604c8275..ff4140c66 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/processor_identity_get_request.rb b/lib/plaid/models/processor_identity_get_request.rb index 754efbe97..57beae64a 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/processor_identity_get_response.rb b/lib/plaid/models/processor_identity_get_response.rb index 352c1a6dc..030dc52f6 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/processor_number.rb b/lib/plaid/models/processor_number.rb index 606095253..433810d05 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =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 df1e6a0e9..e3f67caa7 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =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 e23fb3666..0cb1a4201 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/processor_token_create_request.rb b/lib/plaid/models/processor_token_create_request.rb index 3a88268d8..2799c6093 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =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"]) + 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", "apex_clearing"]) 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"]) + 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", "apex_clearing"]) 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 f8a89e623..1f7a03724 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/product_access.rb b/lib/plaid/models/product_access.rb index c2f2bfecf..9fe89347e 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/product_status.rb b/lib/plaid/models/product_status.rb index 4c401fb31..81671a17e 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/product_status_breakdown.rb b/lib/plaid/models/product_status_breakdown.rb index 6e2c64bcb..4378adc82 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/products.rb b/lib/plaid/models/products.rb index 683598c33..0dfc1f8f0 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/projected_income_summary_field_number.rb b/lib/plaid/models/projected_income_summary_field_number.rb index f7d4ce281..d8da3bb7f 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/pslf_status.rb b/lib/plaid/models/pslf_status.rb index 62ee8a1cb..6fdd58895 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/recaptcha_required_error.rb b/lib/plaid/models/recaptcha_required_error.rb index 0ad0ae252..34962ddf6 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/recipient_bacs.rb b/lib/plaid/models/recipient_bacs.rb index 76a300058..a1188dca0 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end @@ -14,7 +14,7 @@ require 'time' module Plaid - # An object containing a BACS account number and sort code. If an IBAN is not provided or if this recipient needs to accept domestic GBP-denominated payments, BACS data is required. + # An object containing a BACS account number and sort code. If an IBAN is not provided or if you need to accept domestic GBP-denominated payments, BACS data is required. class RecipientBACS # The account number of the account. Maximum of 10 characters. attr_accessor :account diff --git a/lib/plaid/models/recipient_bacs_nullable.rb b/lib/plaid/models/recipient_bacs_nullable.rb index f82a871c7..bdafb29a7 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/recurring_transaction_frequency.rb b/lib/plaid/models/recurring_transaction_frequency.rb index 175af9546..7f3e3d116 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/relay_event.rb b/lib/plaid/models/relay_event.rb index 13970fa1a..8d5f5e676 100644 --- a/lib/plaid/models/relay_event.rb +++ b/lib/plaid/models/relay_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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/removed_transaction.rb b/lib/plaid/models/removed_transaction.rb index a882499d3..e0e1912e6 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end 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 58b495421..c32cbc95b 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =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 de27fc5d3..6d62e3a25 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/sandbox_bank_transfer_simulate_request.rb b/lib/plaid/models/sandbox_bank_transfer_simulate_request.rb index 8b855b0fc..40ae83c0e 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/sandbox_bank_transfer_simulate_response.rb b/lib/plaid/models/sandbox_bank_transfer_simulate_response.rb index fbcf56287..18c788791 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/sandbox_income_fire_webhook_request.rb b/lib/plaid/models/sandbox_income_fire_webhook_request.rb index b22c36122..c8b7c52b9 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/sandbox_income_fire_webhook_response.rb b/lib/plaid/models/sandbox_income_fire_webhook_response.rb index c8e26bfbe..c50e50a5f 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/sandbox_item_fire_webhook_request.rb b/lib/plaid/models/sandbox_item_fire_webhook_request.rb index 25327fbed..da3765c78 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end @@ -25,7 +25,9 @@ class SandboxItemFireWebhookRequest # The access token associated with the Item data is being requested for. attr_accessor :access_token - # The following values for `webhook_code` are supported: * `DEFAULT_UPDATE` * `NEW_ACCOUNTS_AVAILABLE` + attr_accessor :webhook_type + + # The following values for `webhook_code` are supported: * `DEFAULT_UPDATE` * `NEW_ACCOUNTS_AVAILABLE` * `AUTH_DATA_UPDATE` attr_accessor :webhook_code class EnumAttributeValidator @@ -56,6 +58,7 @@ def self.attribute_map :'client_id' => :'client_id', :'secret' => :'secret', :'access_token' => :'access_token', + :'webhook_type' => :'webhook_type', :'webhook_code' => :'webhook_code' } end @@ -71,6 +74,7 @@ def self.openapi_types :'client_id' => :'String', :'secret' => :'String', :'access_token' => :'String', + :'webhook_type' => :'WebhookType', :'webhook_code' => :'String' } end @@ -108,6 +112,10 @@ def initialize(attributes = {}) self.access_token = attributes[:'access_token'] end + if attributes.key?(:'webhook_type') + self.webhook_type = attributes[:'webhook_type'] + end + if attributes.key?(:'webhook_code') self.webhook_code = attributes[:'webhook_code'] end @@ -133,7 +141,7 @@ def list_invalid_properties def valid? return false if @access_token.nil? return false if @webhook_code.nil? - webhook_code_validator = EnumAttributeValidator.new('String', ["DEFAULT_UPDATE", "NEW_ACCOUNTS_AVAILABLE"]) + webhook_code_validator = EnumAttributeValidator.new('String', ["DEFAULT_UPDATE", "NEW_ACCOUNTS_AVAILABLE", "AUTH_DATA_UPDATE"]) return false unless webhook_code_validator.valid?(@webhook_code) true end @@ -141,7 +149,7 @@ def valid? # Custom attribute writer method checking allowed values (enum). # @param [Object] webhook_code Object to be assigned def webhook_code=(webhook_code) - validator = EnumAttributeValidator.new('String', ["DEFAULT_UPDATE", "NEW_ACCOUNTS_AVAILABLE"]) + validator = EnumAttributeValidator.new('String', ["DEFAULT_UPDATE", "NEW_ACCOUNTS_AVAILABLE", "AUTH_DATA_UPDATE"]) unless validator.valid?(webhook_code) fail ArgumentError, "invalid value for \"webhook_code\", must be one of #{validator.allowable_values}." end @@ -156,6 +164,7 @@ def ==(o) client_id == o.client_id && secret == o.secret && access_token == o.access_token && + webhook_type == o.webhook_type && webhook_code == o.webhook_code end @@ -168,7 +177,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [client_id, secret, access_token, webhook_code].hash + [client_id, secret, access_token, webhook_type, webhook_code].hash end # Builds the object from hash diff --git a/lib/plaid/models/sandbox_item_fire_webhook_response.rb b/lib/plaid/models/sandbox_item_fire_webhook_response.rb index 78a0d995c..ce71f1617 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/sandbox_item_reset_login_request.rb b/lib/plaid/models/sandbox_item_reset_login_request.rb index 221def8f7..4d1b67e2a 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/sandbox_item_reset_login_response.rb b/lib/plaid/models/sandbox_item_reset_login_response.rb index c2013f91e..4314f04c7 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =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 7f2b94eac..dc596a64d 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =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 81f81137d..a2b4f67a6 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/sandbox_oauth_select_accounts_request.rb b/lib/plaid/models/sandbox_oauth_select_accounts_request.rb index 09c073f7b..839afdeab 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/sandbox_processor_token_create_request.rb b/lib/plaid/models/sandbox_processor_token_create_request.rb index 214016069..ae2e9befa 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =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 1b8adea13..50b802f99 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/sandbox_processor_token_create_response.rb b/lib/plaid/models/sandbox_processor_token_create_response.rb index 1d231523f..5a8ee3375 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/sandbox_public_token_create_request.rb b/lib/plaid/models/sandbox_public_token_create_request.rb index b9b271c62..18ffb9d53 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =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 bc142d543..07accc351 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =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 b52d551db..1c37ba259 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/sandbox_public_token_create_response.rb b/lib/plaid/models/sandbox_public_token_create_response.rb index 6371538fd..fc22875a4 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/sandbox_transfer_fire_webhook_request.rb b/lib/plaid/models/sandbox_transfer_fire_webhook_request.rb new file mode 100644 index 000000000..932212ae0 --- /dev/null +++ b/lib/plaid/models/sandbox_transfer_fire_webhook_request.rb @@ -0,0 +1,245 @@ +=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.94.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # Defines the request schema for `/sandbox/transfer/fire_webhook` + class SandboxTransferFireWebhookRequest + # 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 URL to which the webhook should be sent. + attr_accessor :webhook + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'client_id' => :'client_id', + :'secret' => :'secret', + :'webhook' => :'webhook' + } + 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 + { + :'client_id' => :'String', + :'secret' => :'String', + :'webhook' => :'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::SandboxTransferFireWebhookRequest` 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::SandboxTransferFireWebhookRequest`. 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?(:'client_id') + self.client_id = attributes[:'client_id'] + end + + if attributes.key?(:'secret') + self.secret = attributes[:'secret'] + end + + if attributes.key?(:'webhook') + self.webhook = attributes[:'webhook'] + 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.nil? + invalid_properties.push('invalid value for "webhook", webhook 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.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 && + client_id == o.client_id && + secret == o.secret && + webhook == o.webhook + 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 + [client_id, secret, webhook].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) + 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/sandbox_transfer_fire_webhook_response.rb b/lib/plaid/models/sandbox_transfer_fire_webhook_response.rb new file mode 100644 index 000000000..c797e74f6 --- /dev/null +++ b/lib/plaid/models/sandbox_transfer_fire_webhook_response.rb @@ -0,0 +1,225 @@ +=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.94.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # Defines the response schema for `/sandbox/transfer/fire_webhook` + class SandboxTransferFireWebhookResponse + # 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::SandboxTransferFireWebhookResponse` 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::SandboxTransferFireWebhookResponse`. 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) + 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/sandbox_transfer_repayment_simulate_request.rb b/lib/plaid/models/sandbox_transfer_repayment_simulate_request.rb index 774eb6bf4..f261b300a 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/sandbox_transfer_repayment_simulate_response.rb b/lib/plaid/models/sandbox_transfer_repayment_simulate_response.rb index d4a137404..0bbd83a62 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/sandbox_transfer_simulate_request.rb b/lib/plaid/models/sandbox_transfer_simulate_request.rb index 41514afd6..4ec44d0d5 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/sandbox_transfer_simulate_response.rb b/lib/plaid/models/sandbox_transfer_simulate_response.rb index 986010c71..6ea4623b2 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/sandbox_transfer_sweep_simulate_request.rb b/lib/plaid/models/sandbox_transfer_sweep_simulate_request.rb index 3a86020ff..1613026ef 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/sandbox_transfer_sweep_simulate_response.rb b/lib/plaid/models/sandbox_transfer_sweep_simulate_response.rb index cd8b451df..01a391037 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/scopes.rb b/lib/plaid/models/scopes.rb index 3014a78e2..c7ac825f0 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/scopes_context.rb b/lib/plaid/models/scopes_context.rb index e0e0d1eed..b45d43949 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/scopes_nullable.rb b/lib/plaid/models/scopes_nullable.rb index fed177e34..a2553529b 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/security.rb b/lib/plaid/models/security.rb index 66d3f0d3f..5689ffca3 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/security_override.rb b/lib/plaid/models/security_override.rb index d2f84de13..8be98eeca 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/sender_bacs_nullable.rb b/lib/plaid/models/sender_bacs_nullable.rb index bc098db4c..fe679cb5d 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/servicer_address_data.rb b/lib/plaid/models/servicer_address_data.rb index 3995546a6..75a71fef3 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/signal_address_data.rb b/lib/plaid/models/signal_address_data.rb index df6d5c306..9fbd7c93b 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/signal_decision_report_request.rb b/lib/plaid/models/signal_decision_report_request.rb index 618c7cefa..1042d76fd 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/signal_decision_report_response.rb b/lib/plaid/models/signal_decision_report_response.rb index b8e317aff..ad3eaa698 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/signal_device.rb b/lib/plaid/models/signal_device.rb index bd8d19f70..f49befd8c 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/signal_evaluate_core_attributes.rb b/lib/plaid/models/signal_evaluate_core_attributes.rb index f5b48630a..1f33ed32e 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end @@ -121,6 +121,93 @@ class SignalEvaluateCoreAttributes # The number of times the account's addresses on file have changed over the past 90 days attr_accessor :address_change_count_90d + # The number of non-OAuth authentication attempts via Plaid for this bank account over the past 3 days + attr_accessor :plaid_non_oauth_authentication_attempts_count_3d + + # The number of non-OAuth authentication attempts via Plaid for this bank account over the past 7 days + attr_accessor :plaid_non_oauth_authentication_attempts_count_7d + + # The number of non-OAuth authentication attempts via Plaid for this bank account over the past 30 days + attr_accessor :plaid_non_oauth_authentication_attempts_count_30d + + # The number of failed non-OAuth authentication attempts via Plaid for this bank account over the past 3 days + attr_accessor :failed_plaid_non_oauth_authentication_attempts_count_3d + + # The number of failed non-OAuth authentication attempts via Plaid for this bank account over the past 7 days + attr_accessor :failed_plaid_non_oauth_authentication_attempts_count_7d + + # The number of failed non-OAuth authentication attempts via Plaid for this bank account over the past 30 days + attr_accessor :failed_plaid_non_oauth_authentication_attempts_count_30d + + # The total number of debit (outflow) transactions over the past 10 days from the account that will be debited + attr_accessor :debit_transactions_count_10d + + # The total number of credit (inflow) transactions over the past 10 days from the account that will be debited + attr_accessor :credit_transactions_count_10d + + # The total number of debit (outflow) transactions over the past 30 days from the account that will be debited + attr_accessor :debit_transactions_count_30d + + # The total number of credit (inflow) transactions over the past 30 days from the account that will be debited + attr_accessor :credit_transactions_count_30d + + # The total number of debit (outflow) transactions over the past 60 days from the account that will be debited + attr_accessor :debit_transactions_count_60d + + # The total number of credit (inflow) transactions over the past 60 days from the account that will be debited + attr_accessor :credit_transactions_count_60d + + # The total number of debit (outflow) transactions over the past 90 days from the account that will be debited + attr_accessor :debit_transactions_count_90d + + # The total number of credit (inflow) transactions over the past 90 days from the account that will be debited + attr_accessor :credit_transactions_count_90d + + # The total debit (outflow) transaction amount over the past 30 days from the account that will be debited + attr_accessor :total_debit_transactions_amount_30d + + # The total credit (inflow) transaction amount over the past 30 days from the account that will be debited + attr_accessor :total_credit_transactions_amount_30d + + # The total debit (outflow) transaction amount over the past 60 days from the account that will be debited + attr_accessor :total_debit_transactions_amount_60d + + # The total credit (inflow) transaction amount over the past 60 days from the account that will be debited + attr_accessor :total_credit_transactions_amount_60d + + # The total debit (outflow) transaction amount over the past 90 days from the account that will be debited + attr_accessor :total_debit_transactions_amount_90d + + # The total credit (inflow) transaction amount over the past 90 days from the account that will be debited + attr_accessor :total_credit_transactions_amount_90d + + # The 50th percentile of the end-of-day available balance over the past 30 days of the account that will be debited + attr_accessor :p50_eod_balance_30d + + # The 50th percentile of the end-of-day available balance over the past 60 days of the account that will be debited + attr_accessor :p50_eod_balance_60d + + # The 50th percentile of the end-of-day available balance over the past 90 days of the account that will be debited + attr_accessor :p50_eod_balance_90d + + # The 50th percentile of the end-of-day available balance between day 31 and day 60 over the past 60 days of the account that will be debited + attr_accessor :p50_eod_balance_31d_to_60d + + # The 50th percentile of the end-of-day available balance between day 61 and day 90 over the past 60 days of the account that will be debited + attr_accessor :p50_eod_balance_61d_to_90d + + # The 90th percentile of the end-of-day available balance between day 31 and day 60 over the past 60 days of the account that will be debited + attr_accessor :p90_eod_balance_31d_to_60d + + # The 90th percentile of the end-of-day available balance between day 61 and day 90 over the past 60 days of the account that will be debited + attr_accessor :p90_eod_balance_61d_to_90d + + # The 10th percentile of the end-of-day available balance between day 31 and day 60 over the past 60 days of the account that will be debited + attr_accessor :p10_eod_balance_31d_to_60d + + # The 10th percentile of the end-of-day available balance between day 61 and day 90 over the past 60 days of the account that will be debited + attr_accessor :p10_eod_balance_61d_to_90d + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -158,7 +245,36 @@ def self.attribute_map :'email_change_count_28d' => :'email_change_count_28d', :'email_change_count_90d' => :'email_change_count_90d', :'address_change_count_28d' => :'address_change_count_28d', - :'address_change_count_90d' => :'address_change_count_90d' + :'address_change_count_90d' => :'address_change_count_90d', + :'plaid_non_oauth_authentication_attempts_count_3d' => :'plaid_non_oauth_authentication_attempts_count_3d', + :'plaid_non_oauth_authentication_attempts_count_7d' => :'plaid_non_oauth_authentication_attempts_count_7d', + :'plaid_non_oauth_authentication_attempts_count_30d' => :'plaid_non_oauth_authentication_attempts_count_30d', + :'failed_plaid_non_oauth_authentication_attempts_count_3d' => :'failed_plaid_non_oauth_authentication_attempts_count_3d', + :'failed_plaid_non_oauth_authentication_attempts_count_7d' => :'failed_plaid_non_oauth_authentication_attempts_count_7d', + :'failed_plaid_non_oauth_authentication_attempts_count_30d' => :'failed_plaid_non_oauth_authentication_attempts_count_30d', + :'debit_transactions_count_10d' => :'debit_transactions_count_10d', + :'credit_transactions_count_10d' => :'credit_transactions_count_10d', + :'debit_transactions_count_30d' => :'debit_transactions_count_30d', + :'credit_transactions_count_30d' => :'credit_transactions_count_30d', + :'debit_transactions_count_60d' => :'debit_transactions_count_60d', + :'credit_transactions_count_60d' => :'credit_transactions_count_60d', + :'debit_transactions_count_90d' => :'debit_transactions_count_90d', + :'credit_transactions_count_90d' => :'credit_transactions_count_90d', + :'total_debit_transactions_amount_30d' => :'total_debit_transactions_amount_30d', + :'total_credit_transactions_amount_30d' => :'total_credit_transactions_amount_30d', + :'total_debit_transactions_amount_60d' => :'total_debit_transactions_amount_60d', + :'total_credit_transactions_amount_60d' => :'total_credit_transactions_amount_60d', + :'total_debit_transactions_amount_90d' => :'total_debit_transactions_amount_90d', + :'total_credit_transactions_amount_90d' => :'total_credit_transactions_amount_90d', + :'p50_eod_balance_30d' => :'p50_eod_balance_30d', + :'p50_eod_balance_60d' => :'p50_eod_balance_60d', + :'p50_eod_balance_90d' => :'p50_eod_balance_90d', + :'p50_eod_balance_31d_to_60d' => :'p50_eod_balance_31d_to_60d', + :'p50_eod_balance_61d_to_90d' => :'p50_eod_balance_61d_to_90d', + :'p90_eod_balance_31d_to_60d' => :'p90_eod_balance_31d_to_60d', + :'p90_eod_balance_61d_to_90d' => :'p90_eod_balance_61d_to_90d', + :'p10_eod_balance_31d_to_60d' => :'p10_eod_balance_31d_to_60d', + :'p10_eod_balance_61d_to_90d' => :'p10_eod_balance_61d_to_90d' } end @@ -204,7 +320,36 @@ def self.openapi_types :'email_change_count_28d' => :'Integer', :'email_change_count_90d' => :'Integer', :'address_change_count_28d' => :'Integer', - :'address_change_count_90d' => :'Integer' + :'address_change_count_90d' => :'Integer', + :'plaid_non_oauth_authentication_attempts_count_3d' => :'Integer', + :'plaid_non_oauth_authentication_attempts_count_7d' => :'Integer', + :'plaid_non_oauth_authentication_attempts_count_30d' => :'Integer', + :'failed_plaid_non_oauth_authentication_attempts_count_3d' => :'Integer', + :'failed_plaid_non_oauth_authentication_attempts_count_7d' => :'Integer', + :'failed_plaid_non_oauth_authentication_attempts_count_30d' => :'Integer', + :'debit_transactions_count_10d' => :'Integer', + :'credit_transactions_count_10d' => :'Integer', + :'debit_transactions_count_30d' => :'Integer', + :'credit_transactions_count_30d' => :'Integer', + :'debit_transactions_count_60d' => :'Integer', + :'credit_transactions_count_60d' => :'Integer', + :'debit_transactions_count_90d' => :'Integer', + :'credit_transactions_count_90d' => :'Integer', + :'total_debit_transactions_amount_30d' => :'Float', + :'total_credit_transactions_amount_30d' => :'Float', + :'total_debit_transactions_amount_60d' => :'Float', + :'total_credit_transactions_amount_60d' => :'Float', + :'total_debit_transactions_amount_90d' => :'Float', + :'total_credit_transactions_amount_90d' => :'Float', + :'p50_eod_balance_30d' => :'Float', + :'p50_eod_balance_60d' => :'Float', + :'p50_eod_balance_90d' => :'Float', + :'p50_eod_balance_31d_to_60d' => :'Float', + :'p50_eod_balance_61d_to_90d' => :'Float', + :'p90_eod_balance_31d_to_60d' => :'Float', + :'p90_eod_balance_61d_to_90d' => :'Float', + :'p10_eod_balance_31d_to_60d' => :'Float', + :'p10_eod_balance_61d_to_90d' => :'Float' } end @@ -234,7 +379,36 @@ def self.openapi_nullable :'email_change_count_28d', :'email_change_count_90d', :'address_change_count_28d', - :'address_change_count_90d' + :'address_change_count_90d', + :'plaid_non_oauth_authentication_attempts_count_3d', + :'plaid_non_oauth_authentication_attempts_count_7d', + :'plaid_non_oauth_authentication_attempts_count_30d', + :'failed_plaid_non_oauth_authentication_attempts_count_3d', + :'failed_plaid_non_oauth_authentication_attempts_count_7d', + :'failed_plaid_non_oauth_authentication_attempts_count_30d', + :'debit_transactions_count_10d', + :'credit_transactions_count_10d', + :'debit_transactions_count_30d', + :'credit_transactions_count_30d', + :'debit_transactions_count_60d', + :'credit_transactions_count_60d', + :'debit_transactions_count_90d', + :'credit_transactions_count_90d', + :'total_debit_transactions_amount_30d', + :'total_credit_transactions_amount_30d', + :'total_debit_transactions_amount_60d', + :'total_credit_transactions_amount_60d', + :'total_debit_transactions_amount_90d', + :'total_credit_transactions_amount_90d', + :'p50_eod_balance_30d', + :'p50_eod_balance_60d', + :'p50_eod_balance_90d', + :'p50_eod_balance_31d_to_60d', + :'p50_eod_balance_61d_to_90d', + :'p90_eod_balance_31d_to_60d', + :'p90_eod_balance_61d_to_90d', + :'p10_eod_balance_31d_to_60d', + :'p10_eod_balance_61d_to_90d' ]) end @@ -392,6 +566,122 @@ def initialize(attributes = {}) if attributes.key?(:'address_change_count_90d') self.address_change_count_90d = attributes[:'address_change_count_90d'] end + + if attributes.key?(:'plaid_non_oauth_authentication_attempts_count_3d') + self.plaid_non_oauth_authentication_attempts_count_3d = attributes[:'plaid_non_oauth_authentication_attempts_count_3d'] + end + + if attributes.key?(:'plaid_non_oauth_authentication_attempts_count_7d') + self.plaid_non_oauth_authentication_attempts_count_7d = attributes[:'plaid_non_oauth_authentication_attempts_count_7d'] + end + + if attributes.key?(:'plaid_non_oauth_authentication_attempts_count_30d') + self.plaid_non_oauth_authentication_attempts_count_30d = attributes[:'plaid_non_oauth_authentication_attempts_count_30d'] + end + + if attributes.key?(:'failed_plaid_non_oauth_authentication_attempts_count_3d') + self.failed_plaid_non_oauth_authentication_attempts_count_3d = attributes[:'failed_plaid_non_oauth_authentication_attempts_count_3d'] + end + + if attributes.key?(:'failed_plaid_non_oauth_authentication_attempts_count_7d') + self.failed_plaid_non_oauth_authentication_attempts_count_7d = attributes[:'failed_plaid_non_oauth_authentication_attempts_count_7d'] + end + + if attributes.key?(:'failed_plaid_non_oauth_authentication_attempts_count_30d') + self.failed_plaid_non_oauth_authentication_attempts_count_30d = attributes[:'failed_plaid_non_oauth_authentication_attempts_count_30d'] + end + + if attributes.key?(:'debit_transactions_count_10d') + self.debit_transactions_count_10d = attributes[:'debit_transactions_count_10d'] + end + + if attributes.key?(:'credit_transactions_count_10d') + self.credit_transactions_count_10d = attributes[:'credit_transactions_count_10d'] + end + + if attributes.key?(:'debit_transactions_count_30d') + self.debit_transactions_count_30d = attributes[:'debit_transactions_count_30d'] + end + + if attributes.key?(:'credit_transactions_count_30d') + self.credit_transactions_count_30d = attributes[:'credit_transactions_count_30d'] + end + + if attributes.key?(:'debit_transactions_count_60d') + self.debit_transactions_count_60d = attributes[:'debit_transactions_count_60d'] + end + + if attributes.key?(:'credit_transactions_count_60d') + self.credit_transactions_count_60d = attributes[:'credit_transactions_count_60d'] + end + + if attributes.key?(:'debit_transactions_count_90d') + self.debit_transactions_count_90d = attributes[:'debit_transactions_count_90d'] + end + + if attributes.key?(:'credit_transactions_count_90d') + self.credit_transactions_count_90d = attributes[:'credit_transactions_count_90d'] + end + + if attributes.key?(:'total_debit_transactions_amount_30d') + self.total_debit_transactions_amount_30d = attributes[:'total_debit_transactions_amount_30d'] + end + + if attributes.key?(:'total_credit_transactions_amount_30d') + self.total_credit_transactions_amount_30d = attributes[:'total_credit_transactions_amount_30d'] + end + + if attributes.key?(:'total_debit_transactions_amount_60d') + self.total_debit_transactions_amount_60d = attributes[:'total_debit_transactions_amount_60d'] + end + + if attributes.key?(:'total_credit_transactions_amount_60d') + self.total_credit_transactions_amount_60d = attributes[:'total_credit_transactions_amount_60d'] + end + + if attributes.key?(:'total_debit_transactions_amount_90d') + self.total_debit_transactions_amount_90d = attributes[:'total_debit_transactions_amount_90d'] + end + + if attributes.key?(:'total_credit_transactions_amount_90d') + self.total_credit_transactions_amount_90d = attributes[:'total_credit_transactions_amount_90d'] + end + + if attributes.key?(:'p50_eod_balance_30d') + self.p50_eod_balance_30d = attributes[:'p50_eod_balance_30d'] + end + + if attributes.key?(:'p50_eod_balance_60d') + self.p50_eod_balance_60d = attributes[:'p50_eod_balance_60d'] + end + + if attributes.key?(:'p50_eod_balance_90d') + self.p50_eod_balance_90d = attributes[:'p50_eod_balance_90d'] + end + + if attributes.key?(:'p50_eod_balance_31d_to_60d') + self.p50_eod_balance_31d_to_60d = attributes[:'p50_eod_balance_31d_to_60d'] + end + + if attributes.key?(:'p50_eod_balance_61d_to_90d') + self.p50_eod_balance_61d_to_90d = attributes[:'p50_eod_balance_61d_to_90d'] + end + + if attributes.key?(:'p90_eod_balance_31d_to_60d') + self.p90_eod_balance_31d_to_60d = attributes[:'p90_eod_balance_31d_to_60d'] + end + + if attributes.key?(:'p90_eod_balance_61d_to_90d') + self.p90_eod_balance_61d_to_90d = attributes[:'p90_eod_balance_61d_to_90d'] + end + + if attributes.key?(:'p10_eod_balance_31d_to_60d') + self.p10_eod_balance_31d_to_60d = attributes[:'p10_eod_balance_31d_to_60d'] + end + + if attributes.key?(:'p10_eod_balance_61d_to_90d') + self.p10_eod_balance_61d_to_90d = attributes[:'p10_eod_balance_61d_to_90d'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -446,7 +736,36 @@ def ==(o) email_change_count_28d == o.email_change_count_28d && email_change_count_90d == o.email_change_count_90d && address_change_count_28d == o.address_change_count_28d && - address_change_count_90d == o.address_change_count_90d + address_change_count_90d == o.address_change_count_90d && + plaid_non_oauth_authentication_attempts_count_3d == o.plaid_non_oauth_authentication_attempts_count_3d && + plaid_non_oauth_authentication_attempts_count_7d == o.plaid_non_oauth_authentication_attempts_count_7d && + plaid_non_oauth_authentication_attempts_count_30d == o.plaid_non_oauth_authentication_attempts_count_30d && + failed_plaid_non_oauth_authentication_attempts_count_3d == o.failed_plaid_non_oauth_authentication_attempts_count_3d && + failed_plaid_non_oauth_authentication_attempts_count_7d == o.failed_plaid_non_oauth_authentication_attempts_count_7d && + failed_plaid_non_oauth_authentication_attempts_count_30d == o.failed_plaid_non_oauth_authentication_attempts_count_30d && + debit_transactions_count_10d == o.debit_transactions_count_10d && + credit_transactions_count_10d == o.credit_transactions_count_10d && + debit_transactions_count_30d == o.debit_transactions_count_30d && + credit_transactions_count_30d == o.credit_transactions_count_30d && + debit_transactions_count_60d == o.debit_transactions_count_60d && + credit_transactions_count_60d == o.credit_transactions_count_60d && + debit_transactions_count_90d == o.debit_transactions_count_90d && + credit_transactions_count_90d == o.credit_transactions_count_90d && + total_debit_transactions_amount_30d == o.total_debit_transactions_amount_30d && + total_credit_transactions_amount_30d == o.total_credit_transactions_amount_30d && + total_debit_transactions_amount_60d == o.total_debit_transactions_amount_60d && + total_credit_transactions_amount_60d == o.total_credit_transactions_amount_60d && + total_debit_transactions_amount_90d == o.total_debit_transactions_amount_90d && + total_credit_transactions_amount_90d == o.total_credit_transactions_amount_90d && + p50_eod_balance_30d == o.p50_eod_balance_30d && + p50_eod_balance_60d == o.p50_eod_balance_60d && + p50_eod_balance_90d == o.p50_eod_balance_90d && + p50_eod_balance_31d_to_60d == o.p50_eod_balance_31d_to_60d && + p50_eod_balance_61d_to_90d == o.p50_eod_balance_61d_to_90d && + p90_eod_balance_31d_to_60d == o.p90_eod_balance_31d_to_60d && + p90_eod_balance_61d_to_90d == o.p90_eod_balance_61d_to_90d && + p10_eod_balance_31d_to_60d == o.p10_eod_balance_31d_to_60d && + p10_eod_balance_61d_to_90d == o.p10_eod_balance_61d_to_90d end # @see the `==` method @@ -458,7 +777,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [unauthorized_transactions_count_7d, unauthorized_transactions_count_30d, unauthorized_transactions_count_60d, unauthorized_transactions_count_90d, nsf_overdraft_transactions_count_7d, nsf_overdraft_transactions_count_30d, nsf_overdraft_transactions_count_60d, nsf_overdraft_transactions_count_90d, days_since_first_plaid_connection, plaid_connections_count_7d, plaid_connections_count_30d, total_plaid_connections_count, is_savings_or_money_market_account, total_credit_transactions_amount_10d, total_debit_transactions_amount_10d, p50_credit_transactions_amount_28d, p50_debit_transactions_amount_28d, p95_credit_transactions_amount_28d, p95_debit_transactions_amount_28d, days_with_negative_balance_count_90d, p90_eod_balance_30d, p90_eod_balance_60d, p90_eod_balance_90d, p10_eod_balance_30d, p10_eod_balance_60d, p10_eod_balance_90d, available_balance, current_balance, balance_last_updated, phone_change_count_28d, phone_change_count_90d, email_change_count_28d, email_change_count_90d, address_change_count_28d, address_change_count_90d].hash + [unauthorized_transactions_count_7d, unauthorized_transactions_count_30d, unauthorized_transactions_count_60d, unauthorized_transactions_count_90d, nsf_overdraft_transactions_count_7d, nsf_overdraft_transactions_count_30d, nsf_overdraft_transactions_count_60d, nsf_overdraft_transactions_count_90d, days_since_first_plaid_connection, plaid_connections_count_7d, plaid_connections_count_30d, total_plaid_connections_count, is_savings_or_money_market_account, total_credit_transactions_amount_10d, total_debit_transactions_amount_10d, p50_credit_transactions_amount_28d, p50_debit_transactions_amount_28d, p95_credit_transactions_amount_28d, p95_debit_transactions_amount_28d, days_with_negative_balance_count_90d, p90_eod_balance_30d, p90_eod_balance_60d, p90_eod_balance_90d, p10_eod_balance_30d, p10_eod_balance_60d, p10_eod_balance_90d, available_balance, current_balance, balance_last_updated, phone_change_count_28d, phone_change_count_90d, email_change_count_28d, email_change_count_90d, address_change_count_28d, address_change_count_90d, plaid_non_oauth_authentication_attempts_count_3d, plaid_non_oauth_authentication_attempts_count_7d, plaid_non_oauth_authentication_attempts_count_30d, failed_plaid_non_oauth_authentication_attempts_count_3d, failed_plaid_non_oauth_authentication_attempts_count_7d, failed_plaid_non_oauth_authentication_attempts_count_30d, debit_transactions_count_10d, credit_transactions_count_10d, debit_transactions_count_30d, credit_transactions_count_30d, debit_transactions_count_60d, credit_transactions_count_60d, debit_transactions_count_90d, credit_transactions_count_90d, total_debit_transactions_amount_30d, total_credit_transactions_amount_30d, total_debit_transactions_amount_60d, total_credit_transactions_amount_60d, total_debit_transactions_amount_90d, total_credit_transactions_amount_90d, p50_eod_balance_30d, p50_eod_balance_60d, p50_eod_balance_90d, p50_eod_balance_31d_to_60d, p50_eod_balance_61d_to_90d, p90_eod_balance_31d_to_60d, p90_eod_balance_61d_to_90d, p10_eod_balance_31d_to_60d, p10_eod_balance_61d_to_90d].hash end # Builds the object from hash diff --git a/lib/plaid/models/signal_evaluate_request.rb b/lib/plaid/models/signal_evaluate_request.rb index 61d40676a..c6571877e 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/signal_evaluate_response.rb b/lib/plaid/models/signal_evaluate_response.rb index 6eafc481c..3eacbc274 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/signal_person_name.rb b/lib/plaid/models/signal_person_name.rb index 28d7190ed..a466b28cf 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/signal_return_report_request.rb b/lib/plaid/models/signal_return_report_request.rb index fed25befd..e302a56fe 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/signal_return_report_response.rb b/lib/plaid/models/signal_return_report_response.rb index 7b40edbe4..1a5d1db7b 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/signal_scores.rb b/lib/plaid/models/signal_scores.rb index 9a61b7e88..e9651734e 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/signal_user.rb b/lib/plaid/models/signal_user.rb index 8c93c976d..d9e8d542e 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/simulated_transfer_sweep.rb b/lib/plaid/models/simulated_transfer_sweep.rb index 1c36fd99d..0a64ff9d1 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/standalone_account_type.rb b/lib/plaid/models/standalone_account_type.rb index e897ef480..1a3fa0b53 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/standalone_currency_code_list.rb b/lib/plaid/models/standalone_currency_code_list.rb index c688eab7a..c1b89235a 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/standalone_investment_transaction_type.rb b/lib/plaid/models/standalone_investment_transaction_type.rb index c0bbbd2ab..e69f2e6fa 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/student_loan.rb b/lib/plaid/models/student_loan.rb index 0bf13f1c0..8e2c40dd7 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/student_loan_repayment_model.rb b/lib/plaid/models/student_loan_repayment_model.rb index cd4f8b4dc..a7095ff38 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/student_loan_status.rb b/lib/plaid/models/student_loan_status.rb index aac4f5f4f..c4761027a 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/student_repayment_plan.rb b/lib/plaid/models/student_repayment_plan.rb index 212c87b0e..7550c7267 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/taxform.rb b/lib/plaid/models/taxform.rb index cd7b3f621..0e32703b7 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/taxpayer_id.rb b/lib/plaid/models/taxpayer_id.rb index 85ac3f96d..7ed1fc07b 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/total.rb b/lib/plaid/models/total.rb index e59b5f832..6e0f8b244 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/total_canonical_description.rb b/lib/plaid/models/total_canonical_description.rb index e80fc2d88..bc094004d 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transaction.rb b/lib/plaid/models/transaction.rb index bb2cfef05..b6a15ddfa 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transaction_all_of.rb b/lib/plaid/models/transaction_all_of.rb index 40ed24c99..4f97135cf 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transaction_base.rb b/lib/plaid/models/transaction_base.rb index 22db5250e..dbaacb0ba 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transaction_code.rb b/lib/plaid/models/transaction_code.rb index 5a2e8ebd4..e8707440a 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transaction_data.rb b/lib/plaid/models/transaction_data.rb index b431ffcd2..4e5b17d2c 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transaction_override.rb b/lib/plaid/models/transaction_override.rb index 9aa4d1bfd..d13cd44c4 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transaction_stream.rb b/lib/plaid/models/transaction_stream.rb index a43844bf5..5f2f8ec4f 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transaction_stream_amount.rb b/lib/plaid/models/transaction_stream_amount.rb index 6cb3c616a..b251647dc 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transaction_stream_status.rb b/lib/plaid/models/transaction_stream_status.rb index ffb8e51f9..69dc2a2b2 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transactions_category_rule.rb b/lib/plaid/models/transactions_category_rule.rb index 1cdd43f02..b1e3d6374 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transactions_enhance_get_request.rb b/lib/plaid/models/transactions_enhance_get_request.rb index cd9cffd36..5a054411d 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transactions_enhance_get_response.rb b/lib/plaid/models/transactions_enhance_get_response.rb index 7452fd1db..34ee6d345 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transactions_get_request.rb b/lib/plaid/models/transactions_get_request.rb index d5bf3d1ed..8d40d1051 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transactions_get_request_options.rb b/lib/plaid/models/transactions_get_request_options.rb index 7d8c50e9c..d342ad5e5 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end @@ -28,10 +28,10 @@ class TransactionsGetRequestOptions # Include the raw unparsed transaction description from the financial institution. This field is disabled by default. If you need this information in addition to the parsed data provided, contact your Plaid Account Manager. attr_accessor :include_original_description - # Please use [`include_personal_finance_category`](https://plaid.com/docs/api/products/#transactions-get-request-options-include-personal-finance-category) instead. + # Please use [`include_personal_finance_category`](https://plaid.com/docs/api/products/transactions/#transactions-get-request-options-include-personal-finance-category) instead. attr_accessor :include_personal_finance_category_beta - # Include the [`personal_finance_category`](https://plaid.com/docs/api/products/#transactions-get-response-transactions-personal-finance-category) object in the response. See the [`taxonomy csv file`](https://plaid.com/documents/transactions-personal-finance-category-taxonomy.csv) for a full list of personal finance categories. + # Include the [`personal_finance_category`](https://plaid.com/docs/api/products/transactions/#transactions-get-response-transactions-personal-finance-category) object in the response. See the [`taxonomy csv file`](https://plaid.com/documents/transactions-personal-finance-category-taxonomy.csv) for a full list of personal finance categories. attr_accessor :include_personal_finance_category # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/plaid/models/transactions_get_response.rb b/lib/plaid/models/transactions_get_response.rb index b616e2ff4..beb09715d 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transactions_recurring_get_request.rb b/lib/plaid/models/transactions_recurring_get_request.rb index decade680..127f0c367 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transactions_recurring_get_response.rb b/lib/plaid/models/transactions_recurring_get_response.rb index bd085e020..5985d6faa 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transactions_refresh_request.rb b/lib/plaid/models/transactions_refresh_request.rb index 7a65fd3f9..a05df8ef9 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transactions_refresh_response.rb b/lib/plaid/models/transactions_refresh_response.rb index 0fe84e728..6202d7198 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transactions_removed_webhook.rb b/lib/plaid/models/transactions_removed_webhook.rb index 0c8fd6955..4e71f8b1a 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transactions_rule_details.rb b/lib/plaid/models/transactions_rule_details.rb index 56ee7c053..660395e5c 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transactions_rule_field.rb b/lib/plaid/models/transactions_rule_field.rb index 3132eca51..364306a96 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transactions_rule_type.rb b/lib/plaid/models/transactions_rule_type.rb index a2cfd3bac..2cc85327f 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transactions_rules_create_request.rb b/lib/plaid/models/transactions_rules_create_request.rb index c982c1d09..51d0a2976 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transactions_rules_create_response.rb b/lib/plaid/models/transactions_rules_create_response.rb index 1fb777326..3db79cb70 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transactions_rules_list_request.rb b/lib/plaid/models/transactions_rules_list_request.rb index 2aa361b0e..06fa3f42d 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transactions_rules_list_response.rb b/lib/plaid/models/transactions_rules_list_response.rb index cf6d0ce91..538fa7571 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transactions_rules_remove_request.rb b/lib/plaid/models/transactions_rules_remove_request.rb index 560ba79b0..0a83ea864 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transactions_rules_remove_response.rb b/lib/plaid/models/transactions_rules_remove_response.rb index f43dcf336..bcd5ef417 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transactions_sync_request.rb b/lib/plaid/models/transactions_sync_request.rb index f3812c491..6578326d2 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transactions_sync_response.rb b/lib/plaid/models/transactions_sync_response.rb index c0264042b..78f4adb0e 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer.rb b/lib/plaid/models/transfer.rb index 3f98a4e18..7aecaa410 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_authorization.rb b/lib/plaid/models/transfer_authorization.rb index cead19b4e..a0be53987 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_authorization_create_request.rb b/lib/plaid/models/transfer_authorization_create_request.rb index 6a5c2c280..004923b58 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_authorization_create_response.rb b/lib/plaid/models/transfer_authorization_create_response.rb index adfd93f63..31159573a 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_authorization_decision.rb b/lib/plaid/models/transfer_authorization_decision.rb index 57146a8fe..cf1b794c2 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_authorization_decision_rationale.rb b/lib/plaid/models/transfer_authorization_decision_rationale.rb index edd9917b9..ae8591d7e 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_authorization_decision_rationale_code.rb b/lib/plaid/models/transfer_authorization_decision_rationale_code.rb index 32916f131..78b674f07 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_authorization_device.rb b/lib/plaid/models/transfer_authorization_device.rb index e14358463..38945d5d6 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_authorization_guarantee_decision.rb b/lib/plaid/models/transfer_authorization_guarantee_decision.rb index c3657370e..0daefa061 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_authorization_guarantee_decision_rationale.rb b/lib/plaid/models/transfer_authorization_guarantee_decision_rationale.rb index aacbfca80..39e80ee2b 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end 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 8eb293e5f..65b92e608 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_authorization_proposed_transfer.rb b/lib/plaid/models/transfer_authorization_proposed_transfer.rb index 8f1656cdd..07094c66d 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_cancel_request.rb b/lib/plaid/models/transfer_cancel_request.rb index 127d377e3..6e09fe583 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_cancel_response.rb b/lib/plaid/models/transfer_cancel_response.rb index 9b8cca614..8106853b7 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_create_request.rb b/lib/plaid/models/transfer_create_request.rb index 9578a066f..19ca3598c 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_create_response.rb b/lib/plaid/models/transfer_create_response.rb index 54d481c9b..562346f9e 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_event.rb b/lib/plaid/models/transfer_event.rb index eac7cb7f2..1e9237e9e 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_event_list_request.rb b/lib/plaid/models/transfer_event_list_request.rb index 06b7cedac..3170a2ce2 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_event_list_response.rb b/lib/plaid/models/transfer_event_list_response.rb index f493770b3..7fd182713 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_event_list_transfer_type.rb b/lib/plaid/models/transfer_event_list_transfer_type.rb index ef3e07f62..5967ff4ce 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_event_sync_request.rb b/lib/plaid/models/transfer_event_sync_request.rb index e46c0c6e0..1ccbbf3d8 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_event_sync_response.rb b/lib/plaid/models/transfer_event_sync_response.rb index dbc37d085..728730cd0 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_event_type.rb b/lib/plaid/models/transfer_event_type.rb index 391bb4e79..79ae02969 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_failure.rb b/lib/plaid/models/transfer_failure.rb index 0cbe64f6f..00d535508 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_get_request.rb b/lib/plaid/models/transfer_get_request.rb index a2e327d9e..4ffca246d 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_get_response.rb b/lib/plaid/models/transfer_get_response.rb index 9423e1ae8..cc1580b44 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_intent_authorization_decision.rb b/lib/plaid/models/transfer_intent_authorization_decision.rb index e7eb8f2e0..68715b87e 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_intent_create.rb b/lib/plaid/models/transfer_intent_create.rb index 2079123a4..36f1c23d9 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_intent_create_mode.rb b/lib/plaid/models/transfer_intent_create_mode.rb index 781abc96a..8a6522492 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_intent_create_request.rb b/lib/plaid/models/transfer_intent_create_request.rb index a5626e22e..36a4351d0 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end @@ -184,6 +184,10 @@ def list_invalid_properties invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 8.') end + if @description.to_s.length < 1 + invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.') + end + if @ach_class.nil? invalid_properties.push('invalid value for "ach_class", ach_class cannot be nil.') @@ -206,6 +210,7 @@ def valid? return false if @amount.nil? return false if @description.nil? return false if @description.to_s.length > 8 + return false if @description.to_s.length < 1 return false if @ach_class.nil? return false if @user.nil? return false if !@metadata.nil? && @metadata.length > 50 @@ -223,6 +228,10 @@ def description=(description) fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 8.' end + if description.to_s.length < 1 + fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.' + end + @description = description end diff --git a/lib/plaid/models/transfer_intent_create_response.rb b/lib/plaid/models/transfer_intent_create_response.rb index 603ffe487..f4720442a 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_intent_get.rb b/lib/plaid/models/transfer_intent_get.rb index 65746670b..82bbe477e 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_intent_get_failure_reason.rb b/lib/plaid/models/transfer_intent_get_failure_reason.rb index 902653c5e..f353b777a 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_intent_get_request.rb b/lib/plaid/models/transfer_intent_get_request.rb index f251e8fef..34718ba41 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_intent_get_response.rb b/lib/plaid/models/transfer_intent_get_response.rb index a4df42d71..ea26654ee 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_intent_status.rb b/lib/plaid/models/transfer_intent_status.rb index 1a0e14791..c9bb861e8 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_list_request.rb b/lib/plaid/models/transfer_list_request.rb index 51f8f8651..e517014d9 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_list_response.rb b/lib/plaid/models/transfer_list_response.rb index c7b4faeb3..6ea4b7b3f 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_migrate_account_request.rb b/lib/plaid/models/transfer_migrate_account_request.rb new file mode 100644 index 000000000..157cb7837 --- /dev/null +++ b/lib/plaid/models/transfer_migrate_account_request.rb @@ -0,0 +1,285 @@ +=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.94.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # Defines the request schema for `/transfer/migrate_account` + class TransferMigrateAccountRequest + # 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 user's account number. + attr_accessor :account_number + + # The user's routing number. + attr_accessor :routing_number + + # The user's wire transfer routing number. This is the ABA number; for some institutions, this may differ from the ACH number used in `routing_number`. + attr_accessor :wire_routing_number + + # The type of the bank account (`checking` or `savings`). + attr_accessor :account_type + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'client_id' => :'client_id', + :'secret' => :'secret', + :'account_number' => :'account_number', + :'routing_number' => :'routing_number', + :'wire_routing_number' => :'wire_routing_number', + :'account_type' => :'account_type' + } + 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 + { + :'client_id' => :'String', + :'secret' => :'String', + :'account_number' => :'String', + :'routing_number' => :'String', + :'wire_routing_number' => :'String', + :'account_type' => :'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::TransferMigrateAccountRequest` 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::TransferMigrateAccountRequest`. 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?(:'client_id') + self.client_id = attributes[:'client_id'] + end + + if attributes.key?(:'secret') + self.secret = attributes[:'secret'] + end + + if attributes.key?(:'account_number') + self.account_number = attributes[:'account_number'] + end + + if attributes.key?(:'routing_number') + self.routing_number = attributes[:'routing_number'] + end + + if attributes.key?(:'wire_routing_number') + self.wire_routing_number = attributes[:'wire_routing_number'] + end + + if attributes.key?(:'account_type') + self.account_type = attributes[:'account_type'] + 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 @account_number.nil? + invalid_properties.push('invalid value for "account_number", account_number cannot be nil.') + end + + if @routing_number.nil? + invalid_properties.push('invalid value for "routing_number", routing_number cannot be nil.') + end + + if @account_type.nil? + invalid_properties.push('invalid value for "account_type", account_type 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 @account_number.nil? + return false if @routing_number.nil? + return false if @account_type.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 && + client_id == o.client_id && + secret == o.secret && + account_number == o.account_number && + routing_number == o.routing_number && + wire_routing_number == o.wire_routing_number && + account_type == o.account_type + 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 + [client_id, secret, account_number, routing_number, wire_routing_number, account_type].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) + 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/transfer_migrate_account_response.rb b/lib/plaid/models/transfer_migrate_account_response.rb new file mode 100644 index 000000000..b5ffeea53 --- /dev/null +++ b/lib/plaid/models/transfer_migrate_account_response.rb @@ -0,0 +1,255 @@ +=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.94.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # Defines the response schema for `/transfer/migrate_account` + class TransferMigrateAccountResponse + # The Plaid `access_token` for the newly created Item. + attr_accessor :access_token + + # The Plaid `account_id` for the newly created Item. + attr_accessor :account_id + + # 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 + { + :'access_token' => :'access_token', + :'account_id' => :'account_id', + :'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 + { + :'access_token' => :'String', + :'account_id' => :'String', + :'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::TransferMigrateAccountResponse` 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::TransferMigrateAccountResponse`. 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?(:'account_id') + self.account_id = attributes[:'account_id'] + end + + 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 @access_token.nil? + invalid_properties.push('invalid value for "access_token", access_token cannot be nil.') + end + + if @account_id.nil? + invalid_properties.push('invalid value for "account_id", account_id cannot be nil.') + end + + 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 @access_token.nil? + return false if @account_id.nil? + 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 && + access_token == o.access_token && + account_id == o.account_id && + 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 + [access_token, account_id, 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) + 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/transfer_network.rb b/lib/plaid/models/transfer_network.rb index 89455b47f..eb270fddd 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_repayment.rb b/lib/plaid/models/transfer_repayment.rb index 354dc18a0..4adb48ca1 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_repayment_list_request.rb b/lib/plaid/models/transfer_repayment_list_request.rb index 3e7a565ac..68d70e513 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_repayment_list_response.rb b/lib/plaid/models/transfer_repayment_list_response.rb index bcb39b17a..4b7c565bf 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_repayment_return.rb b/lib/plaid/models/transfer_repayment_return.rb index 4ceb84c6e..64d0e80d0 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_repayment_return_list_request.rb b/lib/plaid/models/transfer_repayment_return_list_request.rb index df9c3a290..a315878cf 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_repayment_return_list_response.rb b/lib/plaid/models/transfer_repayment_return_list_response.rb index 09122b26c..cc2ca5a76 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_status.rb b/lib/plaid/models/transfer_status.rb index 22df65126..f74ef0977 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_sweep.rb b/lib/plaid/models/transfer_sweep.rb index 926176d9f..834be60e3 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_sweep_get_request.rb b/lib/plaid/models/transfer_sweep_get_request.rb index 4ff6d8926..0affec2ff 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_sweep_get_response.rb b/lib/plaid/models/transfer_sweep_get_response.rb index c944d2722..0664523e6 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_sweep_list_request.rb b/lib/plaid/models/transfer_sweep_list_request.rb index 56ec9a741..a6b686aaa 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_sweep_list_response.rb b/lib/plaid/models/transfer_sweep_list_response.rb index baec03d9e..cec90238c 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_sweep_status.rb b/lib/plaid/models/transfer_sweep_status.rb index 83f4040b8..3264aafaa 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_type.rb b/lib/plaid/models/transfer_type.rb index d546b8ef7..faf939e17 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_user_address_in_request.rb b/lib/plaid/models/transfer_user_address_in_request.rb index b46063672..e0f22fc9c 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_user_address_in_response.rb b/lib/plaid/models/transfer_user_address_in_response.rb index d23176c24..c75fdb82c 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_user_in_request.rb b/lib/plaid/models/transfer_user_in_request.rb index 135b6b2f3..39305d2b9 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/transfer_user_in_response.rb b/lib/plaid/models/transfer_user_in_response.rb index 31bf6deed..ccc729e52 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/user_create_request.rb b/lib/plaid/models/user_create_request.rb index f583e829e..ff2de446d 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/user_create_response.rb b/lib/plaid/models/user_create_response.rb index 4cc7f28c5..7ccddc890 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/user_custom_password.rb b/lib/plaid/models/user_custom_password.rb index 1f34e738a..869a0a410 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/user_permission_revoked_webhook.rb b/lib/plaid/models/user_permission_revoked_webhook.rb index baece10f7..c84ad737e 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/verification_attribute.rb b/lib/plaid/models/verification_attribute.rb index 6098be9ef..e678deebb 100644 --- a/lib/plaid/models/verification_attribute.rb +++ b/lib/plaid/models/verification_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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/verification_expired_webhook.rb b/lib/plaid/models/verification_expired_webhook.rb index 340c20c72..06cce81b7 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/verification_refresh_status.rb b/lib/plaid/models/verification_refresh_status.rb index 927465d83..1a68bc71b 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/verification_status.rb b/lib/plaid/models/verification_status.rb index 81b56a194..a379caa72 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/w2.rb b/lib/plaid/models/w2.rb index c383ea1bd..5691d97e0 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/w2_box12.rb b/lib/plaid/models/w2_box12.rb index 7aefe2496..3d75ce51d 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/w2_state_and_local_wages.rb b/lib/plaid/models/w2_state_and_local_wages.rb index 6aa17bbcf..eac23667c 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/wallet_balance.rb b/lib/plaid/models/wallet_balance.rb index 2b7014e62..cb18d12cc 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/wallet_get_request.rb b/lib/plaid/models/wallet_get_request.rb index f8acefa39..c44fc2190 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/wallet_get_response.rb b/lib/plaid/models/wallet_get_response.rb index d858cfee6..a885baff5 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end @@ -24,12 +24,15 @@ 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 + attr_accessor :numbers + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'wallet_id' => :'wallet_id', :'balance' => :'balance', - :'request_id' => :'request_id' + :'request_id' => :'request_id', + :'numbers' => :'numbers' } end @@ -43,7 +46,8 @@ def self.openapi_types { :'wallet_id' => :'String', :'balance' => :'WalletBalance', - :'request_id' => :'String' + :'request_id' => :'String', + :'numbers' => :'WalletNumbers' } end @@ -80,6 +84,10 @@ def initialize(attributes = {}) if attributes.key?(:'request_id') self.request_id = attributes[:'request_id'] end + + if attributes.key?(:'numbers') + self.numbers = attributes[:'numbers'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -112,7 +120,8 @@ def ==(o) self.class == o.class && wallet_id == o.wallet_id && balance == o.balance && - request_id == o.request_id + request_id == o.request_id && + numbers == o.numbers end # @see the `==` method @@ -124,7 +133,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [wallet_id, balance, request_id].hash + [wallet_id, balance, request_id, numbers].hash end # Builds the object from hash diff --git a/lib/plaid/models/wallet_numbers.rb b/lib/plaid/models/wallet_numbers.rb new file mode 100644 index 000000000..974c08542 --- /dev/null +++ b/lib/plaid/models/wallet_numbers.rb @@ -0,0 +1,220 @@ +=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.94.0 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # An object representing the e-wallet account numbers + class WalletNumbers + attr_accessor :bacs + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'bacs' => :'bacs' + } + 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 + { + :'bacs' => :'RecipientBACS' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'bacs' + ]) + 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::WalletNumbers` 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::WalletNumbers`. 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?(:'bacs') + self.bacs = attributes[:'bacs'] + 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 + 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? + 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 && + bacs == o.bacs + 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 + [bacs].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) + 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/wallet_transaction.rb b/lib/plaid/models/wallet_transaction.rb index 821c64602..e834702d8 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/wallet_transaction_amount.rb b/lib/plaid/models/wallet_transaction_amount.rb index 00fd51e9e..19fc4230e 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/wallet_transaction_counterparty.rb b/lib/plaid/models/wallet_transaction_counterparty.rb index c4af5cb78..1fe35de86 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/wallet_transaction_counterparty_bacs.rb b/lib/plaid/models/wallet_transaction_counterparty_bacs.rb index 8e8327c01..1aff52587 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/wallet_transaction_counterparty_numbers.rb b/lib/plaid/models/wallet_transaction_counterparty_numbers.rb index bae0e8608..4b980d150 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/wallet_transaction_execute_request.rb b/lib/plaid/models/wallet_transaction_execute_request.rb index beab3db9c..b70b85fc4 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/wallet_transaction_execute_response.rb b/lib/plaid/models/wallet_transaction_execute_response.rb index f382dc7c8..df599d033 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/wallet_transaction_status.rb b/lib/plaid/models/wallet_transaction_status.rb index fb28fef3b..5f501b72a 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/wallet_transactions_list_request.rb b/lib/plaid/models/wallet_transactions_list_request.rb index 5b41db3f5..efc0a4385 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/wallet_transactions_list_response.rb b/lib/plaid/models/wallet_transactions_list_response.rb index 5637d59c5..c48a032b0 100644 --- a/lib/plaid/models/wallet_transactions_list_response.rb +++ b/lib/plaid/models/wallet_transactions_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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/warning.rb b/lib/plaid/models/warning.rb index 229a37cd1..ea2272dc0 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/connected_application_status.rb b/lib/plaid/models/webhook_type.rb similarity index 70% rename from lib/plaid/models/connected_application_status.rb rename to lib/plaid/models/webhook_type.rb index b9d8eea8b..5e84b6928 100644 --- a/lib/plaid/models/connected_application_status.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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end @@ -14,9 +14,13 @@ require 'time' module Plaid - class ConnectedApplicationStatus - ACTIVE = "ACTIVE".freeze - INACTIVE = "INACTIVE".freeze + class WebhookType + AUTH = "AUTH".freeze + HOLDINGS = "HOLDINGS".freeze + INVESTMENTS_TRANSACTIONS = "INVESTMENTS_TRANSACTIONS".freeze + ITEM = "ITEM".freeze + LIABILITIES = "LIABILITIES".freeze + TRANSACTIONS = "TRANSACTIONS".freeze # Builds the enum from string # @param [String] The enum value in the form of the string diff --git a/lib/plaid/models/webhook_update_acknowledged_webhook.rb b/lib/plaid/models/webhook_update_acknowledged_webhook.rb index 68819b072..7b9c40b1b 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/webhook_verification_key_get_request.rb b/lib/plaid/models/webhook_verification_key_get_request.rb index 6e7f8fc37..597a6e39e 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/models/webhook_verification_key_get_response.rb b/lib/plaid/models/webhook_verification_key_get_response.rb index 17494439c..5deecfcf3 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =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 a9cc11cfa..54a7bd2db 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end 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 9877b362f..4332ea5b5 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/lib/plaid/version.rb b/lib/plaid/version.rb index 35221a8bb..36e25567b 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end module Plaid - VERSION = '15.1.0' + VERSION = '15.2.0' end diff --git a/plaid.gemspec b/plaid.gemspec index b364cf086..784937256 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.84.5 +The version of the OpenAPI document: 2020-09-14_1.94.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0 +OpenAPI Generator version: 5.1.1 =end diff --git a/test/test_income_verifications.rb b/test/test_income_verifications.rb deleted file mode 100644 index e2243ea3c..000000000 --- a/test/test_income_verifications.rb +++ /dev/null @@ -1,76 +0,0 @@ -require_relative "test_helper" - -# Internal: The test for Plaid::IncomeVerification. -class PlaidIncomeVerificationTest < PlaidTest - def test_income_apis - # Create an item with the "income" product. - create_item initial_products: [:income] - - user = { - first_name: "Jane", - last_name: "Doe", - email_address: "janedoe@gmail.com", - home_address: { - street: "234 First St.", - city: "Anytown", - region: "CA", - postal_code: "12345", - country: "US", - }, - } - employer = { - name: "Plaid Inc.", - tax_id: "123-45-6709", - address: { - street: "234 Work St.", - city: "Anytown", - region: "CA", - postal_code: "12345", - country: "US", - }, - url: "http://www.employer.com" - } - - request = Plaid::IncomeVerificationPrecheckRequest.new - request.user = user - request.employer = employer - - response = client.income_verification_precheck(request) - - assert_kind_of(Plaid::IncomeVerificationPrecheckResponse, response) - - - income_verification_create_request = Plaid::IncomeVerificationCreateRequest.new - income_verification_create_request.webhook = "YOUR WEB HOOK" - - response = client.income_verification_create(income_verification_create_request) - refute_empty(response.income_verification_id) - - assert_kind_of(Plaid::IncomeVerificationCreateResponse, response) - verification_id = response.income_verification_id - - request = Plaid::IncomeVerificationPaystubsGetRequest.new - request.income_verification_id = verification_id - response = client.income_verification_paystubs_get(request) - assert_kind_of(Plaid::IncomeVerificationPaystubsGetResponse, response) - - request = Plaid::IncomeVerificationDocumentsDownloadRequest.new - request.income_verification_id = verification_id - request.access_token = access_token - response = client.income_verification_documents_download(request) - assert_equal(false, response.inspect.empty?) - - request = Plaid::IncomeVerificationTaxformsGetRequest.new - request.income_verification_id = verification_id - response = client.income_verification_taxforms_get(request) - assert_kind_of(Plaid::IncomeVerificationTaxformsGetResponse, response) - -# TODO: Need to re-enable this once /sandbox/public_token_create supports employment -# request = Plaid::EmploymentVerificationGetRequest.new -# request.access_token = access_token -# response = client.employment_verification_get(request) -# assert_kind_of(Plaid::EmploymentVerificationGetResponse, response) - - end -end -