From e2c9a2e3571c84508fcd16bce72c9f65f829f6c1 Mon Sep 17 00:00:00 2001 From: jking-plaid <117383435+jking-plaid@users.noreply.github.com> Date: Thu, 17 Nov 2022 11:06:13 -0800 Subject: [PATCH] OpenAPI generated code at 2022-11-17T18:29:43Z (#450) --- .openapi-generator/FILES | 124 +- CHANGELOG.md | 96 + Makefile | 2 +- lib/plaid.rb | 64 +- lib/plaid/api/plaid_api.rb | 1648 ++++++++++++++--- lib/plaid/api_client.rb | 4 +- lib/plaid/api_error.rb | 2 +- lib/plaid/configuration.rb | 2 +- lib/plaid/models/account_access.rb | 2 +- lib/plaid/models/account_assets.rb | 2 +- lib/plaid/models/account_assets_all_of.rb | 2 +- lib/plaid/models/account_balance.rb | 2 +- lib/plaid/models/account_base.rb | 2 +- lib/plaid/models/account_filter.rb | 2 +- lib/plaid/models/account_filters_response.rb | 2 +- lib/plaid/models/account_identity.rb | 2 +- lib/plaid/models/account_identity_all_of.rb | 2 +- .../models/account_identity_match_score.rb | 2 +- .../account_identity_match_score_all_of.rb | 2 +- lib/plaid/models/account_product_access.rb | 2 +- .../models/account_product_access_nullable.rb | 2 +- .../models/account_selection_cardinality.rb | 2 +- lib/plaid/models/account_subtype.rb | 2 +- lib/plaid/models/account_type.rb | 2 +- .../models/accounts_balance_get_request.rb | 2 +- .../accounts_balance_get_request_options.rb | 2 +- lib/plaid/models/accounts_get_request.rb | 2 +- .../models/accounts_get_request_options.rb | 2 +- lib/plaid/models/accounts_get_response.rb | 2 +- lib/plaid/models/ach_class.rb | 2 +- lib/plaid/models/address.rb | 2 +- lib/plaid/models/address_data.rb | 2 +- lib/plaid/models/address_data_nullable.rb | 2 +- lib/plaid/models/address_match_score.rb | 2 +- lib/plaid/models/address_nullable.rb | 2 +- lib/plaid/models/address_purpose_label.rb | 2 +- lib/plaid/models/application.rb | 2 +- lib/plaid/models/application_get_request.rb | 2 +- lib/plaid/models/application_get_response.rb | 2 +- lib/plaid/models/apr.rb | 2 +- lib/plaid/models/asset.rb | 2 +- lib/plaid/models/asset_detail.rb | 2 +- lib/plaid/models/asset_holder.rb | 2 +- lib/plaid/models/asset_holder_name.rb | 2 +- lib/plaid/models/asset_owner.rb | 2 +- lib/plaid/models/asset_owners.rb | 2 +- lib/plaid/models/asset_report.rb | 2 +- .../asset_report_audit_copy_create_request.rb | 2 +- ...asset_report_audit_copy_create_response.rb | 2 +- .../asset_report_audit_copy_get_request.rb | 2 +- .../asset_report_audit_copy_remove_request.rb | 2 +- ...asset_report_audit_copy_remove_response.rb | 2 +- .../models/asset_report_create_request.rb | 2 +- .../asset_report_create_request_options.rb | 2 +- .../models/asset_report_create_response.rb | 2 +- .../models/asset_report_filter_request.rb | 2 +- .../models/asset_report_filter_response.rb | 2 +- lib/plaid/models/asset_report_freddie.rb | 2 +- .../asset_report_freddie_get_request.rb | 2 +- .../asset_report_freddie_get_response.rb | 2 +- lib/plaid/models/asset_report_get_request.rb | 2 +- .../asset_report_get_request_options.rb | 2 +- lib/plaid/models/asset_report_get_response.rb | 2 +- lib/plaid/models/asset_report_item.rb | 2 +- .../models/asset_report_pdf_get_request.rb | 2 +- .../asset_report_pdf_get_request_options.rb | 2 +- .../models/asset_report_refresh_request.rb | 2 +- .../asset_report_refresh_request_options.rb | 2 +- .../models/asset_report_refresh_response.rb | 2 +- .../models/asset_report_remove_request.rb | 2 +- .../models/asset_report_remove_response.rb | 2 +- lib/plaid/models/asset_report_transaction.rb | 2 +- .../models/asset_report_transaction_all_of.rb | 2 +- lib/plaid/models/asset_report_user.rb | 2 +- lib/plaid/models/asset_transaction.rb | 2 +- .../models/asset_transaction_category_type.rb | 2 +- .../models/asset_transaction_description.rb | 2 +- lib/plaid/models/asset_transaction_detail.rb | 2 +- lib/plaid/models/asset_transaction_type.rb | 2 +- lib/plaid/models/asset_transactions.rb | 2 +- lib/plaid/models/asset_type.rb | 2 +- lib/plaid/models/assets.rb | 2 +- lib/plaid/models/assets_error_webhook.rb | 2 +- .../models/assets_product_ready_webhook.rb | 2 +- lib/plaid/models/auth_get_numbers.rb | 2 +- lib/plaid/models/auth_get_request.rb | 2 +- lib/plaid/models/auth_get_request_options.rb | 2 +- lib/plaid/models/auth_get_response.rb | 2 +- lib/plaid/models/auth_metadata.rb | 2 +- lib/plaid/models/auth_supported_methods.rb | 2 +- .../models/automatically_verified_webhook.rb | 2 +- .../models/bank_initiated_return_risk.rb | 2 +- lib/plaid/models/bank_transfer.rb | 2 +- lib/plaid/models/bank_transfer_balance.rb | 2 +- .../bank_transfer_balance_get_request.rb | 2 +- .../bank_transfer_balance_get_response.rb | 2 +- .../models/bank_transfer_cancel_request.rb | 2 +- .../models/bank_transfer_cancel_response.rb | 2 +- .../models/bank_transfer_create_request.rb | 2 +- .../models/bank_transfer_create_response.rb | 2 +- lib/plaid/models/bank_transfer_direction.rb | 2 +- lib/plaid/models/bank_transfer_event.rb | 2 +- ..._transfer_event_list_bank_transfer_type.rb | 2 +- .../bank_transfer_event_list_direction.rb | 2 +- .../bank_transfer_event_list_request.rb | 2 +- .../bank_transfer_event_list_response.rb | 2 +- .../bank_transfer_event_sync_request.rb | 2 +- .../bank_transfer_event_sync_response.rb | 2 +- lib/plaid/models/bank_transfer_event_type.rb | 2 +- lib/plaid/models/bank_transfer_failure.rb | 2 +- lib/plaid/models/bank_transfer_get_request.rb | 2 +- .../models/bank_transfer_get_response.rb | 2 +- .../models/bank_transfer_list_request.rb | 2 +- .../models/bank_transfer_list_response.rb | 2 +- .../bank_transfer_migrate_account_request.rb | 2 +- .../bank_transfer_migrate_account_response.rb | 2 +- lib/plaid/models/bank_transfer_network.rb | 2 +- lib/plaid/models/bank_transfer_status.rb | 2 +- lib/plaid/models/bank_transfer_sweep.rb | 2 +- .../models/bank_transfer_sweep_get_request.rb | 2 +- .../bank_transfer_sweep_get_response.rb | 2 +- .../bank_transfer_sweep_list_request.rb | 2 +- .../bank_transfer_sweep_list_response.rb | 2 +- lib/plaid/models/bank_transfer_type.rb | 2 +- lib/plaid/models/bank_transfer_user.rb | 2 +- .../bank_transfers_events_update_webhook.rb | 2 +- lib/plaid/models/categories_get_response.rb | 2 +- lib/plaid/models/category.rb | 2 +- lib/plaid/models/cause.rb | 2 +- lib/plaid/models/cause_all_of.rb | 2 +- .../client_provided_enhanced_transaction.rb | 2 +- .../client_provided_enriched_transaction.rb | 293 +++ .../models/client_provided_raw_transaction.rb | 8 +- .../models/client_provided_transaction.rb | 279 +++ lib/plaid/models/connected_application.rb | 2 +- lib/plaid/models/counterparty.rb | 2 +- lib/plaid/models/counterparty_type.rb | 2 +- lib/plaid/models/country_code.rb | 2 +- lib/plaid/models/credit1099.rb | 2 +- lib/plaid/models/credit1099_filer.rb | 2 +- lib/plaid/models/credit1099_payer.rb | 2 +- lib/plaid/models/credit1099_recipient.rb | 2 +- lib/plaid/models/credit_account_subtype.rb | 2 +- .../credit_audit_copy_token_create_request.rb | 2 +- ...credit_audit_copy_token_create_response.rb | 2 +- .../credit_audit_copy_token_remove_request.rb | 2 +- ...credit_audit_copy_token_remove_response.rb | 2 +- lib/plaid/models/credit_bank_income.rb | 2 +- .../models/credit_bank_income_account.rb | 2 +- .../models/credit_bank_income_account_type.rb | 2 +- .../models/credit_bank_income_category.rb | 2 +- lib/plaid/models/credit_bank_income_cause.rb | 2 +- .../models/credit_bank_income_error_type.rb | 2 +- .../models/credit_bank_income_get_request.rb | 2 +- .../credit_bank_income_get_request_options.rb | 2 +- .../models/credit_bank_income_get_response.rb | 2 +- .../credit_bank_income_historical_summary.rb | 2 +- lib/plaid/models/credit_bank_income_item.rb | 2 +- .../credit_bank_income_pay_frequency.rb | 2 +- .../credit_bank_income_pdf_get_request.rb | 2 +- .../credit_bank_income_refresh_request.rb | 2 +- ...dit_bank_income_refresh_request_options.rb | 2 +- .../credit_bank_income_refresh_response.rb | 2 +- lib/plaid/models/credit_bank_income_source.rb | 2 +- .../models/credit_bank_income_summary.rb | 2 +- .../models/credit_bank_income_transaction.rb | 2 +- .../models/credit_bank_income_warning.rb | 2 +- .../models/credit_bank_income_warning_code.rb | 2 +- .../models/credit_bank_income_warning_type.rb | 2 +- lib/plaid/models/credit_card_liability.rb | 2 +- lib/plaid/models/credit_category.rb | 2 +- lib/plaid/models/credit_document_metadata.rb | 2 +- .../models/credit_employer_verification.rb | 2 +- .../models/credit_employment_get_request.rb | 2 +- .../models/credit_employment_get_response.rb | 2 +- lib/plaid/models/credit_employment_item.rb | 2 +- .../models/credit_employment_verification.rb | 2 +- lib/plaid/models/credit_filter.rb | 2 +- lib/plaid/models/credit_pay_stub.rb | 2 +- lib/plaid/models/credit_pay_stub_address.rb | 2 +- .../models/credit_pay_stub_deductions.rb | 2 +- lib/plaid/models/credit_pay_stub_earnings.rb | 2 +- lib/plaid/models/credit_pay_stub_employee.rb | 2 +- lib/plaid/models/credit_pay_stub_employer.rb | 2 +- lib/plaid/models/credit_pay_stub_net_pay.rb | 2 +- .../credit_payroll_income_get_request.rb | 2 +- .../credit_payroll_income_get_response.rb | 2 +- .../credit_payroll_income_precheck_request.rb | 2 +- ...credit_payroll_income_precheck_response.rb | 2 +- .../credit_payroll_income_refresh_request.rb | 2 +- .../credit_payroll_income_refresh_response.rb | 2 +- ...payroll_income_risk_signals_get_request.rb | 2 +- ...ayroll_income_risk_signals_get_response.rb | 2 +- lib/plaid/models/credit_platform_ids.rb | 2 +- .../models/credit_relay_create_request.rb | 2 +- .../models/credit_relay_create_response.rb | 2 +- lib/plaid/models/credit_relay_get_request.rb | 2 +- .../models/credit_relay_refresh_request.rb | 2 +- .../models/credit_relay_refresh_response.rb | 2 +- .../models/credit_relay_remove_request.rb | 2 +- .../models/credit_relay_remove_response.rb | 2 +- lib/plaid/models/credit_session.rb | 2 +- .../credit_session_bank_income_result.rb | 2 +- .../credit_session_bank_income_status.rb | 2 +- .../credit_session_document_income_result.rb | 2 +- lib/plaid/models/credit_session_error.rb | 2 +- .../models/credit_session_item_add_result.rb | 2 +- .../credit_session_payroll_income_result.rb | 2 +- lib/plaid/models/credit_session_results.rb | 2 +- .../models/credit_sessions_get_request.rb | 2 +- .../models/credit_sessions_get_response.rb | 2 +- lib/plaid/models/credit_w2.rb | 2 +- .../models/customer_initiated_return_risk.rb | 2 +- lib/plaid/models/dashboard_user.rb | 2 +- .../models/dashboard_user_get_request.rb | 2 +- .../models/dashboard_user_get_response.rb | 2 +- .../models/dashboard_user_list_request.rb | 2 +- .../models/dashboard_user_list_response.rb | 2 +- lib/plaid/models/dashboard_user_status.rb | 2 +- lib/plaid/models/date_range.rb | 2 +- lib/plaid/models/deductions.rb | 2 +- lib/plaid/models/deductions_breakdown.rb | 2 +- lib/plaid/models/deductions_total.rb | 2 +- lib/plaid/models/default_update_webhook.rb | 2 +- .../models/deposit_switch_address_data.rb | 2 +- .../deposit_switch_alt_create_request.rb | 2 +- .../deposit_switch_alt_create_response.rb | 2 +- .../models/deposit_switch_create_request.rb | 2 +- .../deposit_switch_create_request_options.rb | 2 +- .../models/deposit_switch_create_response.rb | 2 +- .../models/deposit_switch_get_request.rb | 2 +- .../models/deposit_switch_get_response.rb | 2 +- .../deposit_switch_state_update_webhook.rb | 2 +- .../models/deposit_switch_target_account.rb | 2 +- .../models/deposit_switch_target_user.rb | 2 +- .../deposit_switch_token_create_request.rb | 2 +- .../deposit_switch_token_create_response.rb | 2 +- .../models/depository_account_subtype.rb | 2 +- lib/plaid/models/depository_filter.rb | 2 +- lib/plaid/models/disbursement_limits.rb | 255 +++ lib/plaid/models/distribution_breakdown.rb | 2 +- lib/plaid/models/doc_type.rb | 2 +- lib/plaid/models/document_analysis.rb | 2 +- .../document_authenticity_match_code.rb | 2 +- .../document_date_of_birth_match_code.rb | 2 +- lib/plaid/models/document_metadata.rb | 2 +- lib/plaid/models/document_name_match_code.rb | 2 +- lib/plaid/models/document_risk_signal.rb | 23 +- ...cument_risk_signal_institution_metadata.rb | 2 +- .../models/document_risk_signals_object.rb | 2 +- lib/plaid/models/document_risk_summary.rb | 221 +++ lib/plaid/models/document_status.rb | 2 +- lib/plaid/models/documentary_verification.rb | 2 +- .../documentary_verification_document.rb | 2 +- lib/plaid/models/earnings.rb | 2 +- lib/plaid/models/earnings_breakdown.rb | 2 +- ...arnings_breakdown_canonical_description.rb | 2 +- lib/plaid/models/earnings_total.rb | 2 +- lib/plaid/models/email.rb | 2 +- lib/plaid/models/email_address_match_score.rb | 18 +- lib/plaid/models/employee.rb | 2 +- .../employee_income_summary_field_string.rb | 2 +- lib/plaid/models/employer.rb | 2 +- .../employer_income_summary_field_string.rb | 2 +- lib/plaid/models/employer_verification.rb | 2 +- lib/plaid/models/employers_search_request.rb | 2 +- lib/plaid/models/employers_search_response.rb | 2 +- lib/plaid/models/employment_details.rb | 2 +- lib/plaid/models/employment_verification.rb | 2 +- .../employment_verification_get_request.rb | 2 +- .../employment_verification_get_response.rb | 2 +- .../models/employment_verification_status.rb | 2 +- lib/plaid/models/enhancements.rb | 2 +- .../models/enrich_transaction_direction.rb | 39 + lib/plaid/models/enrichments.rb | 342 ++++ lib/plaid/models/entity_document.rb | 2 +- lib/plaid/models/entity_document_type.rb | 2 +- .../models/entity_screening_hit_analysis.rb | 2 +- lib/plaid/models/entity_screening_hit_data.rb | 2 +- .../entity_screening_hit_documents_items.rb | 2 +- .../models/entity_screening_hit_emails.rb | 2 +- .../entity_screening_hit_emails_items.rb | 2 +- .../models/entity_screening_hit_names.rb | 2 +- .../entity_screening_hit_names_items.rb | 2 +- .../entity_screening_hit_phone_numbers.rb | 2 +- lib/plaid/models/entity_screening_hit_urls.rb | 2 +- .../models/entity_screening_hit_urls_items.rb | 2 +- ...ntity_screening_hits_phone_number_items.rb | 2 +- ...entity_screening_status_updated_webhook.rb | 2 +- lib/plaid/models/entity_watchlist_code.rb | 2 +- lib/plaid/models/entity_watchlist_program.rb | 2 +- .../models/entity_watchlist_screening.rb | 2 +- .../models/entity_watchlist_screening_hit.rb | 2 +- .../entity_watchlist_screening_review.rb | 2 +- ...entity_watchlist_screening_search_terms.rb | 2 +- .../models/entity_watchlist_search_terms.rb | 2 +- lib/plaid/models/expiration_date.rb | 2 +- ...rnal_payment_initiation_consent_options.rb | 2 +- lib/plaid/models/external_payment_options.rb | 2 +- .../models/external_payment_refund_details.rb | 2 +- .../models/external_payment_schedule_base.rb | 2 +- .../models/external_payment_schedule_get.rb | 2 +- .../external_payment_schedule_request.rb | 2 +- lib/plaid/models/fdx_content_types.rb | 2 +- lib/plaid/models/fdx_hateoas_link.rb | 2 +- lib/plaid/models/fdx_hateoas_link_action.rb | 2 +- lib/plaid/models/fdx_notification.rb | 2 +- lib/plaid/models/fdx_notification_category.rb | 2 +- lib/plaid/models/fdx_notification_payload.rb | 2 +- .../fdx_notification_payload_id_type.rb | 2 +- lib/plaid/models/fdx_notification_priority.rb | 2 +- lib/plaid/models/fdx_notification_severity.rb | 2 +- lib/plaid/models/fdx_notification_type.rb | 2 +- lib/plaid/models/fdx_party.rb | 2 +- lib/plaid/models/fdx_party_registry.rb | 2 +- lib/plaid/models/fdx_party_type.rb | 2 +- lib/plaid/models/fdxfi_attribute.rb | 2 +- lib/plaid/models/form1099_type.rb | 2 +- .../generic_screening_hit_location_items.rb | 2 +- lib/plaid/models/health_incident.rb | 2 +- lib/plaid/models/historical_balance.rb | 2 +- lib/plaid/models/historical_update_webhook.rb | 2 +- lib/plaid/models/holding.rb | 2 +- .../models/holdings_default_update_webhook.rb | 2 +- lib/plaid/models/holdings_override.rb | 2 +- lib/plaid/models/id_number_type.rb | 2 +- .../models/identity_default_update_webhook.rb | 2 +- lib/plaid/models/identity_get_request.rb | 2 +- .../models/identity_get_request_options.rb | 2 +- lib/plaid/models/identity_get_response.rb | 2 +- lib/plaid/models/identity_match_request.rb | 2 +- .../models/identity_match_request_options.rb | 2 +- lib/plaid/models/identity_match_response.rb | 2 +- lib/plaid/models/identity_match_user.rb | 2 +- lib/plaid/models/identity_update_types.rb | 2 +- lib/plaid/models/identity_verification.rb | 2 +- .../identity_verification_create_request.rb | 2 +- .../identity_verification_create_response.rb | 2 +- .../identity_verification_get_request.rb | 2 +- .../identity_verification_get_response.rb | 2 +- .../identity_verification_list_request.rb | 2 +- .../identity_verification_list_response.rb | 2 +- .../identity_verification_request_user.rb | 2 +- .../identity_verification_retried_webhook.rb | 2 +- .../identity_verification_retry_request.rb | 2 +- ...verification_retry_request_steps_object.rb | 2 +- .../identity_verification_retry_response.rb | 2 +- .../models/identity_verification_status.rb | 2 +- ...ity_verification_status_updated_webhook.rb | 2 +- .../identity_verification_step_status.rb | 2 +- .../identity_verification_step_summary.rb | 2 +- ...ntity_verification_step_updated_webhook.rb | 2 +- ...dentity_verification_template_reference.rb | 2 +- .../identity_verification_user_address.rb | 2 +- .../models/identity_verification_user_data.rb | 2 +- lib/plaid/models/image_quality.rb | 2 +- lib/plaid/models/incident_update.rb | 2 +- lib/plaid/models/income_breakdown.rb | 2 +- lib/plaid/models/income_breakdown_type.rb | 2 +- lib/plaid/models/income_override.rb | 2 +- lib/plaid/models/income_summary.rb | 2 +- .../models/income_summary_field_number.rb | 2 +- .../models/income_summary_field_string.rb | 2 +- .../income_verification_create_request.rb | 2 +- ...ome_verification_create_request_options.rb | 2 +- .../income_verification_create_response.rb | 2 +- ...verification_documents_download_request.rb | 2 +- .../income_verification_payroll_flow_type.rb | 2 +- ...ncome_verification_paystubs_get_request.rb | 2 +- ...come_verification_paystubs_get_response.rb | 2 +- ...income_verification_precheck_confidence.rb | 2 +- .../income_verification_precheck_employer.rb | 2 +- ..._verification_precheck_employer_address.rb | 2 +- ...fication_precheck_employer_address_data.rb | 2 +- ...ome_verification_precheck_military_info.rb | 2 +- ...rification_precheck_payroll_institution.rb | 2 +- .../income_verification_precheck_request.rb | 2 +- .../income_verification_precheck_response.rb | 2 +- .../income_verification_precheck_user.rb | 2 +- .../models/income_verification_source_type.rb | 2 +- .../income_verification_status_webhook.rb | 2 +- ...ncome_verification_taxforms_get_request.rb | 2 +- ...come_verification_taxforms_get_response.rb | 2 +- .../income_verification_webhook_status.rb | 2 +- lib/plaid/models/individual_name.rb | 2 +- .../models/individual_screening_hit_names.rb | 2 +- lib/plaid/models/individual_watchlist_code.rb | 2 +- .../models/individual_watchlist_program.rb | 2 +- lib/plaid/models/inflow_model.rb | 2 +- lib/plaid/models/initial_update_webhook.rb | 2 +- lib/plaid/models/institution.rb | 2 +- lib/plaid/models/institution_status.rb | 10 +- .../models/institutions_get_by_id_request.rb | 2 +- .../institutions_get_by_id_request_options.rb | 2 +- .../models/institutions_get_by_id_response.rb | 2 +- lib/plaid/models/institutions_get_request.rb | 2 +- .../institutions_get_request_options.rb | 2 +- lib/plaid/models/institutions_get_response.rb | 2 +- .../institutions_search_account_filter.rb | 2 +- ...tions_search_payment_initiation_options.rb | 2 +- .../models/institutions_search_request.rb | 2 +- .../institutions_search_request_options.rb | 2 +- .../models/institutions_search_response.rb | 2 +- .../models/investment_account_subtype.rb | 2 +- lib/plaid/models/investment_filter.rb | 2 +- ...investment_holdings_get_request_options.rb | 2 +- lib/plaid/models/investment_transaction.rb | 2 +- .../models/investment_transaction_subtype.rb | 2 +- .../models/investment_transaction_type.rb | 2 +- .../investments_default_update_webhook.rb | 2 +- .../investments_holdings_get_request.rb | 2 +- .../investments_holdings_get_response.rb | 2 +- .../investments_transactions_get_request.rb | 2 +- ...tments_transactions_get_request_options.rb | 2 +- .../investments_transactions_get_response.rb | 2 +- .../investments_transactions_override.rb | 2 +- lib/plaid/models/issuing_country.rb | 2 +- lib/plaid/models/item.rb | 2 +- .../item_access_token_invalidate_request.rb | 2 +- .../item_access_token_invalidate_response.rb | 2 +- .../models/item_application_list_request.rb | 2 +- .../models/item_application_list_response.rb | 2 +- .../models/item_application_list_user_auth.rb | 2 +- .../item_application_scopes_update_request.rb | 2 +- ...item_application_scopes_update_response.rb | 2 +- lib/plaid/models/item_error_webhook.rb | 2 +- lib/plaid/models/item_get_request.rb | 2 +- lib/plaid/models/item_get_response.rb | 2 +- lib/plaid/models/item_import_request.rb | 2 +- .../models/item_import_request_options.rb | 2 +- .../models/item_import_request_user_auth.rb | 2 +- lib/plaid/models/item_import_response.rb | 2 +- .../models/item_product_ready_webhook.rb | 2 +- .../item_public_token_create_request.rb | 2 +- .../item_public_token_create_response.rb | 2 +- .../item_public_token_exchange_request.rb | 2 +- .../item_public_token_exchange_response.rb | 2 +- lib/plaid/models/item_remove_request.rb | 2 +- lib/plaid/models/item_remove_response.rb | 2 +- lib/plaid/models/item_status.rb | 2 +- lib/plaid/models/item_status_investments.rb | 2 +- lib/plaid/models/item_status_last_webhook.rb | 2 +- lib/plaid/models/item_status_nullable.rb | 2 +- lib/plaid/models/item_status_transactions.rb | 2 +- .../models/item_webhook_update_request.rb | 2 +- .../models/item_webhook_update_response.rb | 2 +- lib/plaid/models/jwk_public_key.rb | 2 +- lib/plaid/models/jwt_header.rb | 2 +- lib/plaid/models/kyc_check_address_summary.rb | 2 +- .../models/kyc_check_date_of_birth_summary.rb | 2 +- lib/plaid/models/kyc_check_details.rb | 2 +- .../models/kyc_check_id_number_summary.rb | 2 +- lib/plaid/models/kyc_check_name_summary.rb | 2 +- lib/plaid/models/kyc_check_phone_summary.rb | 2 +- .../liabilities_default_update_webhook.rb | 4 +- lib/plaid/models/liabilities_get_request.rb | 2 +- .../models/liabilities_get_request_options.rb | 2 +- lib/plaid/models/liabilities_get_response.rb | 2 +- lib/plaid/models/liabilities_object.rb | 2 +- lib/plaid/models/liability_override.rb | 2 +- .../models/link_delivery_create_request.rb | 2 +- .../models/link_delivery_create_response.rb | 2 +- .../models/link_delivery_delivery_method.rb | 2 +- lib/plaid/models/link_delivery_get_request.rb | 2 +- .../models/link_delivery_get_response.rb | 2 +- .../models/link_delivery_session_status.rb | 2 +- ..._o_auth_correlation_id_exchange_request.rb | 2 +- ...o_auth_correlation_id_exchange_response.rb | 2 +- .../models/link_token_account_filters.rb | 2 +- .../models/link_token_create_credit_filter.rb | 2 +- .../link_token_create_depository_filter.rb | 2 +- .../link_token_create_institution_data.rb | 2 +- .../link_token_create_investment_filter.rb | 2 +- .../models/link_token_create_loan_filter.rb | 2 +- lib/plaid/models/link_token_create_request.rb | 4 +- ...k_token_create_request_account_subtypes.rb | 2 +- .../models/link_token_create_request_auth.rb | 4 +- ...ink_token_create_request_deposit_switch.rb | 2 +- ...en_create_request_identity_verification.rb | 2 +- ...oken_create_request_income_verification.rb | 2 +- ...request_income_verification_bank_income.rb | 2 +- ...uest_income_verification_payroll_income.rb | 2 +- ...token_create_request_payment_initiation.rb | 2 +- .../link_token_create_request_transfer.rb | 2 +- .../link_token_create_request_update.rb | 2 +- .../models/link_token_create_request_user.rb | 3 +- ...reate_request_user_stated_income_source.rb | 2 +- .../models/link_token_create_response.rb | 2 +- lib/plaid/models/link_token_eu_config.rb | 2 +- .../link_token_get_metadata_response.rb | 2 +- lib/plaid/models/link_token_get_request.rb | 2 +- lib/plaid/models/link_token_get_response.rb | 2 +- lib/plaid/models/link_token_investments.rb | 2 +- lib/plaid/models/loan.rb | 2 +- lib/plaid/models/loan_account_subtype.rb | 2 +- lib/plaid/models/loan_filter.rb | 2 +- lib/plaid/models/loan_identifier.rb | 2 +- lib/plaid/models/loan_identifier_type.rb | 2 +- lib/plaid/models/loan_identifiers.rb | 2 +- lib/plaid/models/loans.rb | 2 +- lib/plaid/models/location.rb | 2 +- lib/plaid/models/match_summary.rb | 2 +- lib/plaid/models/match_summary_code.rb | 2 +- lib/plaid/models/meta.rb | 2 +- lib/plaid/models/mfa.rb | 2 +- lib/plaid/models/mortgage_interest_rate.rb | 2 +- lib/plaid/models/mortgage_liability.rb | 2 +- lib/plaid/models/mortgage_property_address.rb | 2 +- .../models/multi_document_risk_signal.rb | 2 +- lib/plaid/models/name_match_score.rb | 2 +- lib/plaid/models/net_pay.rb | 2 +- .../models/new_accounts_available_webhook.rb | 2 +- lib/plaid/models/numbers.rb | 2 +- lib/plaid/models/numbers_ach.rb | 34 +- lib/plaid/models/numbers_ach_nullable.rb | 34 +- lib/plaid/models/numbers_bacs.rb | 2 +- lib/plaid/models/numbers_bacs_nullable.rb | 2 +- lib/plaid/models/numbers_eft.rb | 2 +- lib/plaid/models/numbers_eft_nullable.rb | 2 +- lib/plaid/models/numbers_iban_nullable.rb | 2 +- lib/plaid/models/numbers_international.rb | 2 +- .../models/numbers_international_iban.rb | 2 +- .../models/numbers_international_nullable.rb | 2 +- lib/plaid/models/originator.rb | 239 +++ lib/plaid/models/override_account_type.rb | 2 +- lib/plaid/models/override_accounts.rb | 2 +- lib/plaid/models/owner.rb | 2 +- lib/plaid/models/owner_override.rb | 2 +- lib/plaid/models/ownership_type.rb | 2 +- lib/plaid/models/parties.rb | 2 +- .../models/partner_customer_create_request.rb | 21 +- .../partner_customer_create_response.rb | 2 +- .../models/partner_customer_enable_request.rb | 2 +- .../partner_customer_enable_response.rb | 2 +- .../models/partner_customer_get_request.rb | 2 +- .../models/partner_customer_get_response.rb | 2 +- .../models/partner_customer_remove_request.rb | 244 +++ .../partner_customer_remove_response.rb | 220 +++ lib/plaid/models/partner_end_customer.rb | 2 +- .../models/partner_end_customer_address.rb | 2 +- ...er_end_customer_assets_under_management.rb | 238 +++ .../partner_end_customer_billing_contact.rb | 2 +- .../models/partner_end_customer_secrets.rb | 2 +- .../models/partner_end_customer_status.rb | 2 +- .../partner_end_customer_technical_contact.rb | 2 +- .../partner_end_customer_with_secrets.rb | 2 +- ...artner_end_customer_with_secrets_all_of.rb | 2 +- lib/plaid/models/party.rb | 2 +- lib/plaid/models/party_individual.rb | 2 +- lib/plaid/models/party_role_type.rb | 2 +- lib/plaid/models/pay.rb | 2 +- lib/plaid/models/pay_frequency.rb | 2 +- lib/plaid/models/pay_frequency_value.rb | 2 +- lib/plaid/models/pay_period_details.rb | 2 +- .../models/pay_stub_deductions_breakdown.rb | 2 +- lib/plaid/models/pay_stub_deductions_total.rb | 2 +- .../models/pay_stub_distribution_breakdown.rb | 2 +- .../models/pay_stub_earnings_breakdown.rb | 2 +- lib/plaid/models/pay_stub_earnings_total.rb | 2 +- .../models/pay_stub_pay_period_details.rb | 2 +- lib/plaid/models/pay_stub_taxpayer_id.rb | 2 +- lib/plaid/models/payment_amount.rb | 2 +- lib/plaid/models/payment_amount_currency.rb | 2 +- lib/plaid/models/payment_amount_nullable.rb | 239 +++ lib/plaid/models/payment_amount_refunded.rb | 246 +++ lib/plaid/models/payment_amount_to_refund.rb | 246 +++ lib/plaid/models/payment_channel.rb | 2 +- .../payment_consent_max_payment_amount.rb | 2 +- .../payment_consent_periodic_alignment.rb | 2 +- .../models/payment_consent_periodic_amount.rb | 2 +- .../payment_consent_periodic_amount_amount.rb | 2 +- .../payment_consent_periodic_interval.rb | 2 +- .../models/payment_consent_valid_date_time.rb | 2 +- .../models/payment_initiation_address.rb | 2 +- .../models/payment_initiation_consent.rb | 2 +- .../payment_initiation_consent_constraints.rb | 2 +- ...yment_initiation_consent_create_request.rb | 2 +- ...ment_initiation_consent_create_response.rb | 2 +- .../payment_initiation_consent_get_request.rb | 2 +- ...payment_initiation_consent_get_response.rb | 2 +- ...tiation_consent_payment_execute_request.rb | 2 +- ...iation_consent_payment_execute_response.rb | 2 +- ...yment_initiation_consent_revoke_request.rb | 2 +- ...ment_initiation_consent_revoke_response.rb | 2 +- .../payment_initiation_consent_scope.rb | 2 +- .../payment_initiation_consent_status.rb | 2 +- .../models/payment_initiation_metadata.rb | 2 +- ...nt_initiation_optional_restriction_bacs.rb | 2 +- .../models/payment_initiation_payment.rb | 32 +- ...yment_initiation_payment_create_request.rb | 2 +- ...ment_initiation_payment_create_response.rb | 2 +- ...ayment_initiation_payment_create_status.rb | 2 +- .../payment_initiation_payment_get_request.rb | 2 +- ...payment_initiation_payment_get_response.rb | 24 +- ...payment_initiation_payment_list_request.rb | 2 +- ...ayment_initiation_payment_list_response.rb | 2 +- ...ment_initiation_payment_reverse_request.rb | 19 +- ...ent_initiation_payment_reverse_response.rb | 2 +- .../payment_initiation_payment_status.rb | 2 +- ...initiation_payment_token_create_request.rb | 2 +- ...nitiation_payment_token_create_response.rb | 2 +- .../models/payment_initiation_recipient.rb | 2 +- ...ent_initiation_recipient_create_request.rb | 2 +- ...nt_initiation_recipient_create_response.rb | 2 +- ...ayment_initiation_recipient_get_request.rb | 2 +- ...yment_initiation_recipient_get_response.rb | 2 +- ...nitiation_recipient_get_response_all_of.rb | 2 +- ...yment_initiation_recipient_list_request.rb | 2 +- ...ment_initiation_recipient_list_response.rb | 2 +- ...ment_initiation_standing_order_metadata.rb | 2 +- lib/plaid/models/payment_limits.rb | 255 +++ lib/plaid/models/payment_meta.rb | 2 +- .../models/payment_profile_create_request.rb | 2 +- .../models/payment_profile_create_response.rb | 2 +- .../models/payment_profile_get_request.rb | 2 +- .../models/payment_profile_get_response.rb | 15 +- .../models/payment_profile_remove_request.rb | 2 +- .../models/payment_profile_remove_response.rb | 2 +- lib/plaid/models/payment_profile_status.rb | 2 +- lib/plaid/models/payment_schedule_interval.rb | 2 +- lib/plaid/models/payment_scheme.rb | 2 +- .../models/payment_status_update_webhook.rb | 2 +- .../models/payroll_income_account_data.rb | 2 +- lib/plaid/models/payroll_income_object.rb | 2 +- .../models/payroll_income_rate_of_pay.rb | 2 +- lib/plaid/models/payroll_item.rb | 34 +- lib/plaid/models/payroll_item_status.rb | 2 +- lib/plaid/models/payroll_risk_signals_item.rb | 2 +- lib/plaid/models/paystub.rb | 2 +- lib/plaid/models/paystub_address.rb | 2 +- lib/plaid/models/paystub_deduction.rb | 2 +- lib/plaid/models/paystub_details.rb | 2 +- lib/plaid/models/paystub_employer.rb | 2 +- lib/plaid/models/paystub_override.rb | 2 +- lib/plaid/models/paystub_override_employee.rb | 2 +- .../paystub_override_employee_address.rb | 2 +- lib/plaid/models/paystub_override_employer.rb | 2 +- lib/plaid/models/paystub_pay_frequency.rb | 2 +- lib/plaid/models/paystub_ytd_details.rb | 2 +- .../models/pending_expiration_webhook.rb | 2 +- lib/plaid/models/personal_finance_category.rb | 2 +- lib/plaid/models/phone_number.rb | 2 +- lib/plaid/models/phone_number_match_score.rb | 18 +- lib/plaid/models/phone_type.rb | 2 +- .../models/physical_document_category.rb | 2 +- .../physical_document_extracted_data.rb | 2 +- ...ysical_document_extracted_data_analysis.rb | 2 +- lib/plaid/models/physical_document_images.rb | 2 +- lib/plaid/models/plaid_error.rb | 2 +- lib/plaid/models/plaid_error_type.rb | 2 +- lib/plaid/models/platform_ids.rb | 2 +- lib/plaid/models/po_box_status.rb | 2 +- ...sor_apex_processor_token_create_request.rb | 2 +- .../models/processor_auth_get_request.rb | 2 +- .../models/processor_auth_get_response.rb | 2 +- .../models/processor_balance_get_request.rb | 2 +- .../processor_balance_get_request_options.rb | 2 +- .../models/processor_balance_get_response.rb | 2 +- .../processor_bank_transfer_create_request.rb | 2 +- ...processor_bank_transfer_create_response.rb | 2 +- .../models/processor_identity_get_request.rb | 2 +- .../models/processor_identity_get_response.rb | 2 +- lib/plaid/models/processor_number.rb | 2 +- ...tripe_bank_account_token_create_request.rb | 2 +- ...ripe_bank_account_token_create_response.rb | 2 +- .../models/processor_token_create_request.rb | 6 +- .../models/processor_token_create_response.rb | 2 +- lib/plaid/models/product_access.rb | 2 +- lib/plaid/models/product_status.rb | 2 +- lib/plaid/models/product_status_breakdown.rb | 2 +- lib/plaid/models/products.rb | 2 +- lib/plaid/models/program_name_sensitivity.rb | 2 +- .../projected_income_summary_field_number.rb | 2 +- lib/plaid/models/pslf_status.rb | 2 +- lib/plaid/models/recaptcha_required_error.rb | 2 +- lib/plaid/models/recipient_bacs.rb | 2 +- lib/plaid/models/recipient_bacs_nullable.rb | 2 +- .../models/recurring_transaction_frequency.rb | 2 +- .../recurring_transactions_update_webhook.rb | 2 +- lib/plaid/models/recurring_transfer.rb | 431 +++++ lib/plaid/models/removed_transaction.rb | 2 +- lib/plaid/models/report_type.rb | 2 +- lib/plaid/models/reporting_information.rb | 2 +- .../models/risk_signal_document_reference.rb | 2 +- lib/plaid/models/role.rb | 2 +- lib/plaid/models/role_detail.rb | 2 +- lib/plaid/models/roles.rb | 2 +- ...dbox_bank_transfer_fire_webhook_request.rb | 2 +- ...box_bank_transfer_fire_webhook_response.rb | 2 +- .../sandbox_bank_transfer_simulate_request.rb | 2 +- ...sandbox_bank_transfer_simulate_response.rb | 2 +- .../sandbox_income_fire_webhook_request.rb | 2 +- .../sandbox_income_fire_webhook_response.rb | 2 +- .../sandbox_item_fire_webhook_request.rb | 6 +- .../sandbox_item_fire_webhook_response.rb | 2 +- .../sandbox_item_reset_login_request.rb | 2 +- .../sandbox_item_reset_login_response.rb | 2 +- ...ox_item_set_verification_status_request.rb | 2 +- ...x_item_set_verification_status_response.rb | 2 +- .../sandbox_oauth_select_accounts_request.rb | 2 +- ...box_payment_profile_reset_login_request.rb | 2 +- ...ox_payment_profile_reset_login_response.rb | 2 +- .../sandbox_processor_token_create_request.rb | 2 +- ..._processor_token_create_request_options.rb | 2 +- ...sandbox_processor_token_create_response.rb | 2 +- .../sandbox_public_token_create_request.rb | 2 +- ...request_income_verification_bank_income.rb | 2 +- ...box_public_token_create_request_options.rb | 2 +- ...ate_request_options_income_verification.rb | 2 +- ...ken_create_request_options_transactions.rb | 2 +- .../sandbox_public_token_create_response.rb | 2 +- .../sandbox_transfer_fire_webhook_request.rb | 2 +- .../sandbox_transfer_fire_webhook_response.rb | 2 +- ...box_transfer_repayment_simulate_request.rb | 2 +- ...ox_transfer_repayment_simulate_response.rb | 2 +- .../sandbox_transfer_simulate_request.rb | 2 +- .../sandbox_transfer_simulate_response.rb | 2 +- ...sandbox_transfer_sweep_simulate_request.rb | 2 +- ...andbox_transfer_sweep_simulate_response.rb | 2 +- ...box_transfer_test_clock_advance_request.rb | 266 +++ ...ox_transfer_test_clock_advance_response.rb | 225 +++ ...dbox_transfer_test_clock_create_request.rb | 255 +++ ...ox_transfer_test_clock_create_response.rb} | 46 +- ...andbox_transfer_test_clock_get_request.rb} | 49 +- ...andbox_transfer_test_clock_get_response.rb | 239 +++ lib/plaid/models/scopes.rb | 2 +- lib/plaid/models/scopes_context.rb | 2 +- lib/plaid/models/scopes_nullable.rb | 2 +- lib/plaid/models/screening_hit_analysis.rb | 2 +- lib/plaid/models/screening_hit_data.rb | 2 +- .../screening_hit_date_of_birth_item.rb | 2 +- .../models/screening_hit_documents_items.rb | 2 +- lib/plaid/models/screening_hit_names_items.rb | 2 +- .../screening_status_updated_webhook.rb | 2 +- lib/plaid/models/security.rb | 6 +- lib/plaid/models/security_override.rb | 6 +- lib/plaid/models/sender_bacs_nullable.rb | 2 +- lib/plaid/models/service.rb | 2 +- .../models/service_product_fulfillment.rb | 2 +- .../service_product_fulfillment_detail.rb | 2 +- .../service_product_fulfillment_identifier.rb | 2 +- lib/plaid/models/servicer_address_data.rb | 2 +- lib/plaid/models/services.rb | 2 +- lib/plaid/models/signal_address_data.rb | 2 +- lib/plaid/models/signal_decision_outcome.rb | 42 + .../models/signal_decision_report_request.rb | 47 +- .../models/signal_decision_report_response.rb | 2 +- lib/plaid/models/signal_device.rb | 2 +- .../models/signal_evaluate_core_attributes.rb | 23 +- lib/plaid/models/signal_evaluate_request.rb | 30 +- lib/plaid/models/signal_evaluate_response.rb | 2 +- lib/plaid/models/signal_payment_method.rb | 43 + lib/plaid/models/signal_person_name.rb | 2 +- lib/plaid/models/signal_prepare_request.rb | 2 +- lib/plaid/models/signal_prepare_response.rb | 2 +- .../models/signal_return_report_request.rb | 23 +- .../models/signal_return_report_response.rb | 2 +- lib/plaid/models/signal_scores.rb | 2 +- lib/plaid/models/signal_user.rb | 2 +- lib/plaid/models/simulated_transfer_sweep.rb | 2 +- .../models/single_document_risk_signal.rb | 24 +- lib/plaid/models/source.rb | 2 +- lib/plaid/models/standalone_account_type.rb | 2 +- .../models/standalone_currency_code_list.rb | 2 +- .../standalone_investment_transaction_type.rb | 2 +- lib/plaid/models/status.rb | 2 +- lib/plaid/models/statuses.rb | 2 +- lib/plaid/models/strategy.rb | 2 +- lib/plaid/models/student_loan.rb | 4 +- .../models/student_loan_repayment_model.rb | 2 +- lib/plaid/models/student_loan_status.rb | 2 +- lib/plaid/models/student_repayment_plan.rb | 2 +- .../models/sync_updates_available_webhook.rb | 4 +- lib/plaid/models/taxform.rb | 2 +- lib/plaid/models/taxpayer_id.rb | 2 +- lib/plaid/models/taxpayer_identifier.rb | 2 +- lib/plaid/models/taxpayer_identifier_type.rb | 2 +- lib/plaid/models/taxpayer_identifiers.rb | 2 +- lib/plaid/models/total.rb | 2 +- .../models/total_canonical_description.rb | 2 +- lib/plaid/models/transaction.rb | 4 +- lib/plaid/models/transaction_all_of.rb | 4 +- lib/plaid/models/transaction_base.rb | 2 +- lib/plaid/models/transaction_code.rb | 2 +- lib/plaid/models/transaction_data.rb | 2 +- lib/plaid/models/transaction_frequency.rb | 41 + lib/plaid/models/transaction_override.rb | 2 +- lib/plaid/models/transaction_stream.rb | 2 +- lib/plaid/models/transaction_stream_amount.rb | 2 +- lib/plaid/models/transaction_stream_status.rb | 2 +- .../models/transactions_category_rule.rb | 2 +- .../transactions_enhance_get_request.rb | 2 +- .../transactions_enhance_get_response.rb | 4 +- .../models/transactions_enrich_get_request.rb | 274 +++ .../transactions_enrich_get_response.rb | 237 +++ lib/plaid/models/transactions_get_request.rb | 2 +- .../transactions_get_request_options.rb | 2 +- lib/plaid/models/transactions_get_response.rb | 2 +- .../transactions_recurring_get_request.rb | 2 +- ...nsactions_recurring_get_request_options.rb | 2 +- .../transactions_recurring_get_response.rb | 2 +- .../models/transactions_refresh_request.rb | 2 +- .../models/transactions_refresh_response.rb | 2 +- .../models/transactions_removed_webhook.rb | 2 +- lib/plaid/models/transactions_rule_details.rb | 2 +- lib/plaid/models/transactions_rule_field.rb | 2 +- lib/plaid/models/transactions_rule_type.rb | 2 +- .../transactions_rules_create_request.rb | 2 +- .../transactions_rules_create_response.rb | 2 +- .../models/transactions_rules_list_request.rb | 2 +- .../transactions_rules_list_response.rb | 2 +- .../transactions_rules_remove_request.rb | 2 +- .../transactions_rules_remove_response.rb | 2 +- lib/plaid/models/transactions_sync_request.rb | 2 +- .../transactions_sync_request_options.rb | 2 +- .../models/transactions_sync_response.rb | 6 +- lib/plaid/models/transfer.rb | 45 +- lib/plaid/models/transfer_authorization.rb | 2 +- .../transfer_authorization_create_request.rb | 23 +- .../transfer_authorization_create_response.rb | 2 +- .../models/transfer_authorization_decision.rb | 2 +- ...ansfer_authorization_decision_rationale.rb | 2 +- ...r_authorization_decision_rationale_code.rb | 2 +- .../models/transfer_authorization_device.rb | 2 +- ...ansfer_authorization_guarantee_decision.rb | 2 +- ...horization_guarantee_decision_rationale.rb | 2 +- ...ation_guarantee_decision_rationale_code.rb | 2 +- ...ransfer_authorization_proposed_transfer.rb | 26 +- .../transfer_authorization_user_in_request.rb | 2 +- lib/plaid/models/transfer_cancel_request.rb | 2 +- lib/plaid/models/transfer_cancel_response.rb | 2 +- lib/plaid/models/transfer_create_request.rb | 2 +- lib/plaid/models/transfer_create_response.rb | 2 +- lib/plaid/models/transfer_device.rb | 240 +++ lib/plaid/models/transfer_diligence_status.rb | 40 + lib/plaid/models/transfer_event.rb | 34 +- .../models/transfer_event_list_request.rb | 23 +- .../models/transfer_event_list_response.rb | 2 +- .../transfer_event_list_transfer_type.rb | 2 +- .../models/transfer_event_sync_request.rb | 2 +- .../models/transfer_event_sync_response.rb | 2 +- lib/plaid/models/transfer_event_type.rb | 2 +- .../models/transfer_events_update_webhook.rb | 2 +- lib/plaid/models/transfer_failure.rb | 2 +- lib/plaid/models/transfer_get_request.rb | 2 +- lib/plaid/models/transfer_get_response.rb | 2 +- .../transfer_intent_authorization_decision.rb | 2 +- lib/plaid/models/transfer_intent_create.rb | 2 +- .../models/transfer_intent_create_mode.rb | 2 +- .../models/transfer_intent_create_request.rb | 2 +- .../models/transfer_intent_create_response.rb | 2 +- lib/plaid/models/transfer_intent_get.rb | 2 +- .../transfer_intent_get_failure_reason.rb | 2 +- .../models/transfer_intent_get_request.rb | 2 +- .../models/transfer_intent_get_response.rb | 2 +- lib/plaid/models/transfer_intent_status.rb | 2 +- lib/plaid/models/transfer_list_request.rb | 23 +- lib/plaid/models/transfer_list_response.rb | 2 +- .../transfer_migrate_account_request.rb | 2 +- .../transfer_migrate_account_response.rb | 2 +- lib/plaid/models/transfer_network.rb | 2 +- .../transfer_originator_create_request.rb | 245 +++ .../transfer_originator_create_response.rb | 255 +++ .../models/transfer_originator_get_request.rb | 245 +++ .../transfer_originator_get_response.rb | 239 +++ .../transfer_originator_list_request.rb | 297 +++ .../transfer_originator_list_response.rb | 241 +++ .../transfer_questionnaire_create_request.rb | 302 +++ .../transfer_questionnaire_create_response.rb | 240 +++ .../transfer_recurring_cancel_request.rb | 255 +++ .../transfer_recurring_cancel_response.rb | 225 +++ .../transfer_recurring_create_request.rb | 424 +++++ .../transfer_recurring_create_response.rb | 239 +++ .../models/transfer_recurring_get_request.rb | 255 +++ .../models/transfer_recurring_get_response.rb | 239 +++ .../models/transfer_recurring_list_request.rb | 329 ++++ .../transfer_recurring_list_response.rb | 241 +++ .../models/transfer_recurring_schedule.rb | 260 +++ lib/plaid/models/transfer_recurring_status.rb | 40 + lib/plaid/models/transfer_refund.rb | 284 +++ .../models/transfer_refund_cancel_request.rb | 245 +++ .../models/transfer_refund_cancel_response.rb | 225 +++ .../models/transfer_refund_create_request.rb | 296 +++ .../models/transfer_refund_create_response.rb | 239 +++ .../models/transfer_refund_get_request.rb | 245 +++ .../models/transfer_refund_get_response.rb | 239 +++ lib/plaid/models/transfer_refund_status.rb | 41 + lib/plaid/models/transfer_repayment.rb | 2 +- .../models/transfer_repayment_list_request.rb | 2 +- .../transfer_repayment_list_response.rb | 2 +- lib/plaid/models/transfer_repayment_return.rb | 2 +- .../transfer_repayment_return_list_request.rb | 2 +- ...transfer_repayment_return_list_response.rb | 2 +- .../models/transfer_schedule_interval_unit.rb | 39 + lib/plaid/models/transfer_status.rb | 2 +- lib/plaid/models/transfer_sweep.rb | 2 +- .../models/transfer_sweep_get_request.rb | 2 +- .../models/transfer_sweep_get_response.rb | 2 +- .../models/transfer_sweep_list_request.rb | 21 +- .../models/transfer_sweep_list_response.rb | 2 +- lib/plaid/models/transfer_sweep_status.rb | 2 +- lib/plaid/models/transfer_test_clock.rb | 236 +++ lib/plaid/models/transfer_type.rb | 2 +- .../transfer_user_address_in_request.rb | 2 +- .../transfer_user_address_in_response.rb | 2 +- lib/plaid/models/transfer_user_in_request.rb | 2 +- .../transfer_user_in_request_deprecated.rb | 2 +- lib/plaid/models/transfer_user_in_response.rb | 2 +- ...e_entity_screening_request_search_terms.rb | 2 +- ...dividual_screening_request_search_terms.rb | 2 +- lib/plaid/models/user_address.rb | 2 +- lib/plaid/models/user_create_request.rb | 2 +- lib/plaid/models/user_create_response.rb | 2 +- lib/plaid/models/user_custom_password.rb | 2 +- lib/plaid/models/user_id_number.rb | 2 +- lib/plaid/models/user_name.rb | 2 +- .../models/user_permission_revoked_webhook.rb | 2 +- .../user_stated_income_source_category.rb | 2 +- .../user_stated_income_source_frequency.rb | 2 +- .../user_stated_income_source_pay_type.rb | 2 +- lib/plaid/models/validation_source.rb | 2 +- lib/plaid/models/validation_sources.rb | 2 +- .../models/verification_expired_webhook.rb | 2 +- lib/plaid/models/verification_of_asset.rb | 2 +- .../models/verification_of_asset_response.rb | 2 +- .../models/verification_refresh_status.rb | 2 +- lib/plaid/models/verification_status.rb | 2 +- lib/plaid/models/w2.rb | 2 +- lib/plaid/models/w2_box12.rb | 2 +- lib/plaid/models/w2_state_and_local_wages.rb | 2 +- lib/plaid/models/wallet.rb | 2 +- lib/plaid/models/wallet_balance.rb | 2 +- lib/plaid/models/wallet_create_request.rb | 2 +- lib/plaid/models/wallet_create_response.rb | 2 +- lib/plaid/models/wallet_get_request.rb | 2 +- lib/plaid/models/wallet_get_response.rb | 2 +- lib/plaid/models/wallet_iso_currency_code.rb | 2 +- lib/plaid/models/wallet_list_request.rb | 2 +- lib/plaid/models/wallet_list_response.rb | 2 +- lib/plaid/models/wallet_numbers.rb | 2 +- lib/plaid/models/wallet_transaction.rb | 38 +- lib/plaid/models/wallet_transaction_amount.rb | 2 +- .../models/wallet_transaction_counterparty.rb | 2 +- .../wallet_transaction_counterparty_bacs.rb | 2 +- ..._transaction_counterparty_international.rb | 2 +- ...wallet_transaction_counterparty_numbers.rb | 2 +- .../wallet_transaction_execute_request.rb | 2 +- .../wallet_transaction_execute_response.rb | 2 +- .../models/wallet_transaction_get_request.rb | 2 +- .../models/wallet_transaction_get_response.rb | 32 +- .../models/wallet_transaction_list_request.rb | 341 ++++ ...wallet_transaction_list_request_options.rb | 230 +++ ...rb => wallet_transaction_list_response.rb} | 10 +- lib/plaid/models/wallet_transaction_status.rb | 2 +- ...allet_transaction_status_update_webhook.rb | 2 +- .../wallet_transactions_list_request.rb | 24 +- lib/plaid/models/warning.rb | 2 +- .../models/watchlist_screening_audit_trail.rb | 2 +- .../models/watchlist_screening_document.rb | 2 +- .../watchlist_screening_document_type.rb | 2 +- ...tchlist_screening_entity_create_request.rb | 2 +- ...chlist_screening_entity_create_response.rb | 2 +- .../watchlist_screening_entity_get_request.rb | 2 +- ...watchlist_screening_entity_get_response.rb | 2 +- ...t_screening_entity_history_list_request.rb | 2 +- ..._screening_entity_history_list_response.rb | 2 +- ...hlist_screening_entity_hit_list_request.rb | 2 +- ...list_screening_entity_hit_list_response.rb | 2 +- ...watchlist_screening_entity_list_request.rb | 2 +- ...atchlist_screening_entity_list_response.rb | 2 +- ...st_screening_entity_program_get_request.rb | 2 +- ...t_screening_entity_program_get_response.rb | 2 +- ...t_screening_entity_program_list_request.rb | 2 +- ..._screening_entity_program_list_response.rb | 2 +- ..._screening_entity_review_create_request.rb | 2 +- ...screening_entity_review_create_response.rb | 2 +- ...st_screening_entity_review_list_request.rb | 2 +- ...t_screening_entity_review_list_response.rb | 2 +- ...tchlist_screening_entity_update_request.rb | 2 +- ..._entity_update_request_resettable_field.rb | 2 +- ...chlist_screening_entity_update_response.rb | 2 +- lib/plaid/models/watchlist_screening_hit.rb | 2 +- .../watchlist_screening_hit_locations.rb | 2 +- .../models/watchlist_screening_hit_status.rb | 2 +- .../models/watchlist_screening_individual.rb | 2 +- ...ist_screening_individual_create_request.rb | 2 +- ...st_screening_individual_create_response.rb | 2 +- ...chlist_screening_individual_get_request.rb | 2 +- ...hlist_screening_individual_get_response.rb | 2 +- ...reening_individual_history_list_request.rb | 2 +- ...eening_individual_history_list_response.rb | 2 +- ...t_screening_individual_hit_list_request.rb | 2 +- ..._screening_individual_hit_list_response.rb | 2 +- ...hlist_screening_individual_list_request.rb | 2 +- ...list_screening_individual_list_response.rb | 2 +- ...creening_individual_program_get_request.rb | 2 +- ...reening_individual_program_get_response.rb | 2 +- ...reening_individual_program_list_request.rb | 2 +- ...eening_individual_program_list_response.rb | 2 +- ...eening_individual_review_create_request.rb | 2 +- ...ening_individual_review_create_response.rb | 2 +- ...creening_individual_review_list_request.rb | 2 +- ...reening_individual_review_list_response.rb | 2 +- ...ist_screening_individual_update_request.rb | 2 +- ...ividual_update_request_resettable_field.rb | 2 +- ...st_screening_individual_update_response.rb | 2 +- ...atchlist_screening_request_search_terms.rb | 2 +- .../models/watchlist_screening_review.rb | 2 +- .../watchlist_screening_search_terms.rb | 2 +- .../models/watchlist_screening_status.rb | 2 +- lib/plaid/models/weak_alias_determination.rb | 2 +- .../models/webhook_environment_values.rb | 2 +- lib/plaid/models/webhook_type.rb | 2 +- .../webhook_update_acknowledged_webhook.rb | 2 +- .../webhook_verification_key_get_request.rb | 2 +- .../webhook_verification_key_get_response.rb | 2 +- .../ytd_gross_income_summary_field_number.rb | 2 +- .../ytd_net_income_summary_field_number.rb | 2 +- lib/plaid/version.rb | 4 +- plaid.gemspec | 2 +- 1020 files changed, 16106 insertions(+), 1476 deletions(-) create mode 100644 lib/plaid/models/client_provided_enriched_transaction.rb create mode 100644 lib/plaid/models/client_provided_transaction.rb create mode 100644 lib/plaid/models/disbursement_limits.rb create mode 100644 lib/plaid/models/document_risk_summary.rb create mode 100644 lib/plaid/models/enrich_transaction_direction.rb create mode 100644 lib/plaid/models/enrichments.rb create mode 100644 lib/plaid/models/originator.rb create mode 100644 lib/plaid/models/partner_customer_remove_request.rb create mode 100644 lib/plaid/models/partner_customer_remove_response.rb create mode 100644 lib/plaid/models/partner_end_customer_assets_under_management.rb create mode 100644 lib/plaid/models/payment_amount_nullable.rb create mode 100644 lib/plaid/models/payment_amount_refunded.rb create mode 100644 lib/plaid/models/payment_amount_to_refund.rb create mode 100644 lib/plaid/models/payment_limits.rb create mode 100644 lib/plaid/models/recurring_transfer.rb create mode 100644 lib/plaid/models/sandbox_transfer_test_clock_advance_request.rb create mode 100644 lib/plaid/models/sandbox_transfer_test_clock_advance_response.rb create mode 100644 lib/plaid/models/sandbox_transfer_test_clock_create_request.rb rename lib/plaid/models/{income_verification_refresh_response.rb => sandbox_transfer_test_clock_create_response.rb} (83%) rename lib/plaid/models/{income_verification_refresh_request.rb => sandbox_transfer_test_clock_get_request.rb} (84%) create mode 100644 lib/plaid/models/sandbox_transfer_test_clock_get_response.rb create mode 100644 lib/plaid/models/signal_decision_outcome.rb create mode 100644 lib/plaid/models/signal_payment_method.rb create mode 100644 lib/plaid/models/transaction_frequency.rb create mode 100644 lib/plaid/models/transactions_enrich_get_request.rb create mode 100644 lib/plaid/models/transactions_enrich_get_response.rb create mode 100644 lib/plaid/models/transfer_device.rb create mode 100644 lib/plaid/models/transfer_diligence_status.rb create mode 100644 lib/plaid/models/transfer_originator_create_request.rb create mode 100644 lib/plaid/models/transfer_originator_create_response.rb create mode 100644 lib/plaid/models/transfer_originator_get_request.rb create mode 100644 lib/plaid/models/transfer_originator_get_response.rb create mode 100644 lib/plaid/models/transfer_originator_list_request.rb create mode 100644 lib/plaid/models/transfer_originator_list_response.rb create mode 100644 lib/plaid/models/transfer_questionnaire_create_request.rb create mode 100644 lib/plaid/models/transfer_questionnaire_create_response.rb create mode 100644 lib/plaid/models/transfer_recurring_cancel_request.rb create mode 100644 lib/plaid/models/transfer_recurring_cancel_response.rb create mode 100644 lib/plaid/models/transfer_recurring_create_request.rb create mode 100644 lib/plaid/models/transfer_recurring_create_response.rb create mode 100644 lib/plaid/models/transfer_recurring_get_request.rb create mode 100644 lib/plaid/models/transfer_recurring_get_response.rb create mode 100644 lib/plaid/models/transfer_recurring_list_request.rb create mode 100644 lib/plaid/models/transfer_recurring_list_response.rb create mode 100644 lib/plaid/models/transfer_recurring_schedule.rb create mode 100644 lib/plaid/models/transfer_recurring_status.rb create mode 100644 lib/plaid/models/transfer_refund.rb create mode 100644 lib/plaid/models/transfer_refund_cancel_request.rb create mode 100644 lib/plaid/models/transfer_refund_cancel_response.rb create mode 100644 lib/plaid/models/transfer_refund_create_request.rb create mode 100644 lib/plaid/models/transfer_refund_create_response.rb create mode 100644 lib/plaid/models/transfer_refund_get_request.rb create mode 100644 lib/plaid/models/transfer_refund_get_response.rb create mode 100644 lib/plaid/models/transfer_refund_status.rb create mode 100644 lib/plaid/models/transfer_schedule_interval_unit.rb create mode 100644 lib/plaid/models/transfer_test_clock.rb create mode 100644 lib/plaid/models/wallet_transaction_list_request.rb create mode 100644 lib/plaid/models/wallet_transaction_list_request_options.rb rename lib/plaid/models/{wallet_transactions_list_response.rb => wallet_transaction_list_response.rb} (94%) diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 708200777..a2af24c27 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -121,7 +121,9 @@ docs/Category.md docs/Cause.md docs/CauseAllOf.md docs/ClientProvidedEnhancedTransaction.md +docs/ClientProvidedEnrichedTransaction.md docs/ClientProvidedRawTransaction.md +docs/ClientProvidedTransaction.md docs/ConnectedApplication.md docs/Counterparty.md docs/CounterpartyType.md @@ -227,6 +229,7 @@ docs/DepositSwitchTokenCreateRequest.md docs/DepositSwitchTokenCreateResponse.md docs/DepositoryAccountSubtype.md docs/DepositoryFilter.md +docs/DisbursementLimits.md docs/DistributionBreakdown.md docs/DocType.md docs/DocumentAnalysis.md @@ -237,6 +240,7 @@ docs/DocumentNameMatchCode.md docs/DocumentRiskSignal.md docs/DocumentRiskSignalInstitutionMetadata.md docs/DocumentRiskSignalsObject.md +docs/DocumentRiskSummary.md docs/DocumentStatus.md docs/DocumentaryVerification.md docs/DocumentaryVerificationDocument.md @@ -259,6 +263,8 @@ docs/EmploymentVerificationGetRequest.md docs/EmploymentVerificationGetResponse.md docs/EmploymentVerificationStatus.md docs/Enhancements.md +docs/EnrichTransactionDirection.md +docs/Enrichments.md docs/EntityDocument.md docs/EntityDocumentType.md docs/EntityScreeningHitAnalysis.md @@ -363,8 +369,6 @@ docs/IncomeVerificationPrecheckPayrollInstitution.md docs/IncomeVerificationPrecheckRequest.md docs/IncomeVerificationPrecheckResponse.md docs/IncomeVerificationPrecheckUser.md -docs/IncomeVerificationRefreshRequest.md -docs/IncomeVerificationRefreshResponse.md docs/IncomeVerificationSourceType.md docs/IncomeVerificationStatusWebhook.md docs/IncomeVerificationTaxformsGetRequest.md @@ -509,6 +513,7 @@ docs/NumbersIBANNullable.md docs/NumbersInternational.md docs/NumbersInternationalIBAN.md docs/NumbersInternationalNullable.md +docs/Originator.md docs/OverrideAccountType.md docs/OverrideAccounts.md docs/Owner.md @@ -523,8 +528,11 @@ docs/PartnerCustomerEnableRequest.md docs/PartnerCustomerEnableResponse.md docs/PartnerCustomerGetRequest.md docs/PartnerCustomerGetResponse.md +docs/PartnerCustomerRemoveRequest.md +docs/PartnerCustomerRemoveResponse.md docs/PartnerEndCustomer.md docs/PartnerEndCustomerAddress.md +docs/PartnerEndCustomerAssetsUnderManagement.md docs/PartnerEndCustomerBillingContact.md docs/PartnerEndCustomerSecrets.md docs/PartnerEndCustomerStatus.md @@ -547,6 +555,9 @@ docs/PayStubPayPeriodDetails.md docs/PayStubTaxpayerID.md docs/PaymentAmount.md docs/PaymentAmountCurrency.md +docs/PaymentAmountNullable.md +docs/PaymentAmountRefunded.md +docs/PaymentAmountToRefund.md docs/PaymentChannel.md docs/PaymentConsentMaxPaymentAmount.md docs/PaymentConsentPeriodicAlignment.md @@ -591,6 +602,7 @@ docs/PaymentInitiationRecipientGetResponseAllOf.md docs/PaymentInitiationRecipientListRequest.md docs/PaymentInitiationRecipientListResponse.md docs/PaymentInitiationStandingOrderMetadata.md +docs/PaymentLimits.md docs/PaymentMeta.md docs/PaymentProfileCreateRequest.md docs/PaymentProfileCreateResponse.md @@ -658,6 +670,7 @@ docs/RecipientBACS.md docs/RecipientBACSNullable.md docs/RecurringTransactionFrequency.md docs/RecurringTransactionsUpdateWebhook.md +docs/RecurringTransfer.md docs/RemovedTransaction.md docs/ReportType.md docs/ReportingInformation.md @@ -697,6 +710,12 @@ docs/SandboxTransferSimulateRequest.md docs/SandboxTransferSimulateResponse.md docs/SandboxTransferSweepSimulateRequest.md docs/SandboxTransferSweepSimulateResponse.md +docs/SandboxTransferTestClockAdvanceRequest.md +docs/SandboxTransferTestClockAdvanceResponse.md +docs/SandboxTransferTestClockCreateRequest.md +docs/SandboxTransferTestClockCreateResponse.md +docs/SandboxTransferTestClockGetRequest.md +docs/SandboxTransferTestClockGetResponse.md docs/Scopes.md docs/ScopesContext.md docs/ScopesNullable.md @@ -716,12 +735,14 @@ docs/ServiceProductFulfillmentIdentifier.md docs/ServicerAddressData.md docs/Services.md docs/SignalAddressData.md +docs/SignalDecisionOutcome.md docs/SignalDecisionReportRequest.md docs/SignalDecisionReportResponse.md docs/SignalDevice.md docs/SignalEvaluateCoreAttributes.md docs/SignalEvaluateRequest.md docs/SignalEvaluateResponse.md +docs/SignalPaymentMethod.md docs/SignalPersonName.md docs/SignalPrepareRequest.md docs/SignalPrepareResponse.md @@ -755,6 +776,7 @@ docs/TransactionAllOf.md docs/TransactionBase.md docs/TransactionCode.md docs/TransactionData.md +docs/TransactionFrequency.md docs/TransactionOverride.md docs/TransactionStream.md docs/TransactionStreamAmount.md @@ -762,6 +784,8 @@ docs/TransactionStreamStatus.md docs/TransactionsCategoryRule.md docs/TransactionsEnhanceGetRequest.md docs/TransactionsEnhanceGetResponse.md +docs/TransactionsEnrichGetRequest.md +docs/TransactionsEnrichGetResponse.md docs/TransactionsGetRequest.md docs/TransactionsGetRequestOptions.md docs/TransactionsGetResponse.md @@ -800,6 +824,8 @@ docs/TransferCancelRequest.md docs/TransferCancelResponse.md docs/TransferCreateRequest.md docs/TransferCreateResponse.md +docs/TransferDevice.md +docs/TransferDiligenceStatus.md docs/TransferEvent.md docs/TransferEventListRequest.md docs/TransferEventListResponse.md @@ -826,12 +852,39 @@ docs/TransferListResponse.md docs/TransferMigrateAccountRequest.md docs/TransferMigrateAccountResponse.md docs/TransferNetwork.md +docs/TransferOriginatorCreateRequest.md +docs/TransferOriginatorCreateResponse.md +docs/TransferOriginatorGetRequest.md +docs/TransferOriginatorGetResponse.md +docs/TransferOriginatorListRequest.md +docs/TransferOriginatorListResponse.md +docs/TransferQuestionnaireCreateRequest.md +docs/TransferQuestionnaireCreateResponse.md +docs/TransferRecurringCancelRequest.md +docs/TransferRecurringCancelResponse.md +docs/TransferRecurringCreateRequest.md +docs/TransferRecurringCreateResponse.md +docs/TransferRecurringGetRequest.md +docs/TransferRecurringGetResponse.md +docs/TransferRecurringListRequest.md +docs/TransferRecurringListResponse.md +docs/TransferRecurringSchedule.md +docs/TransferRecurringStatus.md +docs/TransferRefund.md +docs/TransferRefundCancelRequest.md +docs/TransferRefundCancelResponse.md +docs/TransferRefundCreateRequest.md +docs/TransferRefundCreateResponse.md +docs/TransferRefundGetRequest.md +docs/TransferRefundGetResponse.md +docs/TransferRefundStatus.md docs/TransferRepayment.md docs/TransferRepaymentListRequest.md docs/TransferRepaymentListResponse.md docs/TransferRepaymentReturn.md docs/TransferRepaymentReturnListRequest.md docs/TransferRepaymentReturnListResponse.md +docs/TransferScheduleIntervalUnit.md docs/TransferStatus.md docs/TransferSweep.md docs/TransferSweepGetRequest.md @@ -839,6 +892,7 @@ docs/TransferSweepGetResponse.md docs/TransferSweepListRequest.md docs/TransferSweepListResponse.md docs/TransferSweepStatus.md +docs/TransferTestClock.md docs/TransferType.md docs/TransferUserAddressInRequest.md docs/TransferUserAddressInResponse.md @@ -887,10 +941,12 @@ docs/WalletTransactionExecuteRequest.md docs/WalletTransactionExecuteResponse.md docs/WalletTransactionGetRequest.md docs/WalletTransactionGetResponse.md +docs/WalletTransactionListRequest.md +docs/WalletTransactionListRequestOptions.md +docs/WalletTransactionListResponse.md docs/WalletTransactionStatus.md docs/WalletTransactionStatusUpdateWebhook.md docs/WalletTransactionsListRequest.md -docs/WalletTransactionsListResponse.md docs/Warning.md docs/WatchlistScreeningAuditTrail.md docs/WatchlistScreeningDocument.md @@ -1081,7 +1137,9 @@ 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_enriched_transaction.rb lib/plaid/models/client_provided_raw_transaction.rb +lib/plaid/models/client_provided_transaction.rb lib/plaid/models/connected_application.rb lib/plaid/models/counterparty.rb lib/plaid/models/counterparty_type.rb @@ -1187,6 +1245,7 @@ lib/plaid/models/deposit_switch_token_create_request.rb lib/plaid/models/deposit_switch_token_create_response.rb lib/plaid/models/depository_account_subtype.rb lib/plaid/models/depository_filter.rb +lib/plaid/models/disbursement_limits.rb lib/plaid/models/distribution_breakdown.rb lib/plaid/models/doc_type.rb lib/plaid/models/document_analysis.rb @@ -1197,6 +1256,7 @@ lib/plaid/models/document_name_match_code.rb lib/plaid/models/document_risk_signal.rb lib/plaid/models/document_risk_signal_institution_metadata.rb lib/plaid/models/document_risk_signals_object.rb +lib/plaid/models/document_risk_summary.rb lib/plaid/models/document_status.rb lib/plaid/models/documentary_verification.rb lib/plaid/models/documentary_verification_document.rb @@ -1219,6 +1279,8 @@ lib/plaid/models/employment_verification_get_request.rb lib/plaid/models/employment_verification_get_response.rb lib/plaid/models/employment_verification_status.rb lib/plaid/models/enhancements.rb +lib/plaid/models/enrich_transaction_direction.rb +lib/plaid/models/enrichments.rb lib/plaid/models/entity_document.rb lib/plaid/models/entity_document_type.rb lib/plaid/models/entity_screening_hit_analysis.rb @@ -1323,8 +1385,6 @@ lib/plaid/models/income_verification_precheck_payroll_institution.rb lib/plaid/models/income_verification_precheck_request.rb lib/plaid/models/income_verification_precheck_response.rb lib/plaid/models/income_verification_precheck_user.rb -lib/plaid/models/income_verification_refresh_request.rb -lib/plaid/models/income_verification_refresh_response.rb lib/plaid/models/income_verification_source_type.rb lib/plaid/models/income_verification_status_webhook.rb lib/plaid/models/income_verification_taxforms_get_request.rb @@ -1469,6 +1529,7 @@ lib/plaid/models/numbers_iban_nullable.rb lib/plaid/models/numbers_international.rb lib/plaid/models/numbers_international_iban.rb lib/plaid/models/numbers_international_nullable.rb +lib/plaid/models/originator.rb lib/plaid/models/override_account_type.rb lib/plaid/models/override_accounts.rb lib/plaid/models/owner.rb @@ -1481,8 +1542,11 @@ lib/plaid/models/partner_customer_enable_request.rb lib/plaid/models/partner_customer_enable_response.rb lib/plaid/models/partner_customer_get_request.rb lib/plaid/models/partner_customer_get_response.rb +lib/plaid/models/partner_customer_remove_request.rb +lib/plaid/models/partner_customer_remove_response.rb lib/plaid/models/partner_end_customer.rb lib/plaid/models/partner_end_customer_address.rb +lib/plaid/models/partner_end_customer_assets_under_management.rb lib/plaid/models/partner_end_customer_billing_contact.rb lib/plaid/models/partner_end_customer_secrets.rb lib/plaid/models/partner_end_customer_status.rb @@ -1505,6 +1569,9 @@ lib/plaid/models/pay_stub_pay_period_details.rb lib/plaid/models/pay_stub_taxpayer_id.rb lib/plaid/models/payment_amount.rb lib/plaid/models/payment_amount_currency.rb +lib/plaid/models/payment_amount_nullable.rb +lib/plaid/models/payment_amount_refunded.rb +lib/plaid/models/payment_amount_to_refund.rb lib/plaid/models/payment_channel.rb lib/plaid/models/payment_consent_max_payment_amount.rb lib/plaid/models/payment_consent_periodic_alignment.rb @@ -1549,6 +1616,7 @@ lib/plaid/models/payment_initiation_recipient_get_response_all_of.rb lib/plaid/models/payment_initiation_recipient_list_request.rb lib/plaid/models/payment_initiation_recipient_list_response.rb lib/plaid/models/payment_initiation_standing_order_metadata.rb +lib/plaid/models/payment_limits.rb lib/plaid/models/payment_meta.rb lib/plaid/models/payment_profile_create_request.rb lib/plaid/models/payment_profile_create_response.rb @@ -1617,6 +1685,7 @@ lib/plaid/models/recipient_bacs.rb lib/plaid/models/recipient_bacs_nullable.rb lib/plaid/models/recurring_transaction_frequency.rb lib/plaid/models/recurring_transactions_update_webhook.rb +lib/plaid/models/recurring_transfer.rb lib/plaid/models/removed_transaction.rb lib/plaid/models/report_type.rb lib/plaid/models/reporting_information.rb @@ -1656,6 +1725,12 @@ lib/plaid/models/sandbox_transfer_simulate_request.rb lib/plaid/models/sandbox_transfer_simulate_response.rb lib/plaid/models/sandbox_transfer_sweep_simulate_request.rb lib/plaid/models/sandbox_transfer_sweep_simulate_response.rb +lib/plaid/models/sandbox_transfer_test_clock_advance_request.rb +lib/plaid/models/sandbox_transfer_test_clock_advance_response.rb +lib/plaid/models/sandbox_transfer_test_clock_create_request.rb +lib/plaid/models/sandbox_transfer_test_clock_create_response.rb +lib/plaid/models/sandbox_transfer_test_clock_get_request.rb +lib/plaid/models/sandbox_transfer_test_clock_get_response.rb lib/plaid/models/scopes.rb lib/plaid/models/scopes_context.rb lib/plaid/models/scopes_nullable.rb @@ -1675,12 +1750,14 @@ lib/plaid/models/service_product_fulfillment_identifier.rb lib/plaid/models/servicer_address_data.rb lib/plaid/models/services.rb lib/plaid/models/signal_address_data.rb +lib/plaid/models/signal_decision_outcome.rb lib/plaid/models/signal_decision_report_request.rb lib/plaid/models/signal_decision_report_response.rb lib/plaid/models/signal_device.rb lib/plaid/models/signal_evaluate_core_attributes.rb lib/plaid/models/signal_evaluate_request.rb lib/plaid/models/signal_evaluate_response.rb +lib/plaid/models/signal_payment_method.rb lib/plaid/models/signal_person_name.rb lib/plaid/models/signal_prepare_request.rb lib/plaid/models/signal_prepare_response.rb @@ -1714,6 +1791,7 @@ lib/plaid/models/transaction_all_of.rb lib/plaid/models/transaction_base.rb lib/plaid/models/transaction_code.rb lib/plaid/models/transaction_data.rb +lib/plaid/models/transaction_frequency.rb lib/plaid/models/transaction_override.rb lib/plaid/models/transaction_stream.rb lib/plaid/models/transaction_stream_amount.rb @@ -1721,6 +1799,8 @@ lib/plaid/models/transaction_stream_status.rb lib/plaid/models/transactions_category_rule.rb lib/plaid/models/transactions_enhance_get_request.rb lib/plaid/models/transactions_enhance_get_response.rb +lib/plaid/models/transactions_enrich_get_request.rb +lib/plaid/models/transactions_enrich_get_response.rb lib/plaid/models/transactions_get_request.rb lib/plaid/models/transactions_get_request_options.rb lib/plaid/models/transactions_get_response.rb @@ -1759,6 +1839,8 @@ lib/plaid/models/transfer_cancel_request.rb lib/plaid/models/transfer_cancel_response.rb lib/plaid/models/transfer_create_request.rb lib/plaid/models/transfer_create_response.rb +lib/plaid/models/transfer_device.rb +lib/plaid/models/transfer_diligence_status.rb lib/plaid/models/transfer_event.rb lib/plaid/models/transfer_event_list_request.rb lib/plaid/models/transfer_event_list_response.rb @@ -1785,12 +1867,39 @@ 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_originator_create_request.rb +lib/plaid/models/transfer_originator_create_response.rb +lib/plaid/models/transfer_originator_get_request.rb +lib/plaid/models/transfer_originator_get_response.rb +lib/plaid/models/transfer_originator_list_request.rb +lib/plaid/models/transfer_originator_list_response.rb +lib/plaid/models/transfer_questionnaire_create_request.rb +lib/plaid/models/transfer_questionnaire_create_response.rb +lib/plaid/models/transfer_recurring_cancel_request.rb +lib/plaid/models/transfer_recurring_cancel_response.rb +lib/plaid/models/transfer_recurring_create_request.rb +lib/plaid/models/transfer_recurring_create_response.rb +lib/plaid/models/transfer_recurring_get_request.rb +lib/plaid/models/transfer_recurring_get_response.rb +lib/plaid/models/transfer_recurring_list_request.rb +lib/plaid/models/transfer_recurring_list_response.rb +lib/plaid/models/transfer_recurring_schedule.rb +lib/plaid/models/transfer_recurring_status.rb +lib/plaid/models/transfer_refund.rb +lib/plaid/models/transfer_refund_cancel_request.rb +lib/plaid/models/transfer_refund_cancel_response.rb +lib/plaid/models/transfer_refund_create_request.rb +lib/plaid/models/transfer_refund_create_response.rb +lib/plaid/models/transfer_refund_get_request.rb +lib/plaid/models/transfer_refund_get_response.rb +lib/plaid/models/transfer_refund_status.rb lib/plaid/models/transfer_repayment.rb lib/plaid/models/transfer_repayment_list_request.rb lib/plaid/models/transfer_repayment_list_response.rb lib/plaid/models/transfer_repayment_return.rb lib/plaid/models/transfer_repayment_return_list_request.rb lib/plaid/models/transfer_repayment_return_list_response.rb +lib/plaid/models/transfer_schedule_interval_unit.rb lib/plaid/models/transfer_status.rb lib/plaid/models/transfer_sweep.rb lib/plaid/models/transfer_sweep_get_request.rb @@ -1798,6 +1907,7 @@ lib/plaid/models/transfer_sweep_get_response.rb lib/plaid/models/transfer_sweep_list_request.rb lib/plaid/models/transfer_sweep_list_response.rb lib/plaid/models/transfer_sweep_status.rb +lib/plaid/models/transfer_test_clock.rb lib/plaid/models/transfer_type.rb lib/plaid/models/transfer_user_address_in_request.rb lib/plaid/models/transfer_user_address_in_response.rb @@ -1846,10 +1956,12 @@ lib/plaid/models/wallet_transaction_execute_request.rb lib/plaid/models/wallet_transaction_execute_response.rb lib/plaid/models/wallet_transaction_get_request.rb lib/plaid/models/wallet_transaction_get_response.rb +lib/plaid/models/wallet_transaction_list_request.rb +lib/plaid/models/wallet_transaction_list_request_options.rb +lib/plaid/models/wallet_transaction_list_response.rb lib/plaid/models/wallet_transaction_status.rb lib/plaid/models/wallet_transaction_status_update_webhook.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/watchlist_screening_audit_trail.rb lib/plaid/models/watchlist_screening_document.rb diff --git a/CHANGELOG.md b/CHANGELOG.md index 6abf13f48..0023f947f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,101 @@ See full changelog for the OpenAPI schema (OAS) [here](https://github.com/plaid/plaid-openapi/blob/master/CHANGELOG.md). +# 17.1.0 +- Updating to OAS 2020-09-14_1.205.3 + +## OpenAPI Schema Changes +### 2020-09-14_1.205.3 +- Update description for `/signal/evaluate` endpoint + +### 2020-09-14_1.205.2 +- Update response examples, descriptions, and formatting for `/transactions/enrich` endpoint + +### 2020-09-14_1.205.1 +- Update descriptions for `CUSIP` and `ISIN` fields in the investments `Security` type to reflect CGS license requirements + +### 2020-09-14_1.205.0 +- Add `/transactions/enrich` endpoint, the EA version of `/beta/transactions/v1/enhance`. + +### 2020-09-14_1.204.0 +- Remove `/income/verification/refresh` endpoint + +### 2020-09-14_1.203.0 +- Add 7 brand new recurring transfer APIs +- Add `/transfer/recurring/create` +- Add `/transfer/recurring/list` +- Add `/transfer/recurring/get` +- Add `/transfer/recurring/cancel` +- Add `/sandbox/transfer/test_clock/create` +- Add `/sandbox/transfer/test_clock/advance` +- Add `/sandbox/transfer/test_clock/get` + +### 2020-09-14_1.202.6 +- IdentityMatchResponse `PhoneNumberMatchScore` and `EmailAddressMatchScore` use `score` instead of `scores` + +### 2020-09-14_1.202.5 +- Add `/partner/customer/remove` endpoint + +### 2020-09-14_1.202.4 +- Internal changes + +### 2020-09-14_1.202.3 +- New Transfer API routes for hosted onboarding of TPS end-customers + +### 2020-09-14_1.202.0 +- Add `refunds` field to `Transfer` object +- Add `refund_id` field to `TransferEvent` object +- Fix typo for `transfer/get` and `transfer/refund/get` + +### 2020-09-14_1.201.0 +- Add support for partial refunds +- Add `amount` field to `/payment_initiation/payment/reverse` request +- Add `amount_refunded` field to `/payment_initiation/payment/get` and `/payment_initiation/payment/list` responses + +### 2020-09-14_1.200.0 +- Add `risk_summary` and `page_number` to `/beta/credit/payroll_income/risk_signals/get` + +### 2020-09-14_1.199.0 +- Renamed `/wallet/transactions/list` into `/wallet/transaction/list` as endpoint + +### 2020-09-14_1.198.8 +- `/transfer/authorization/create` and `/transfer/create` may not return `account_id` in response. + +### 2020-09-14_1.198.7 +- Add `SYNC_UPDATES_AVAILABLE` support to `/sandbox/item/fire_webhook` + +### 2020-09-14_1.198.6 +- Make `ProductStatus` object nullable to reflect Sandbox-specific behavior. +- Clarify documentation for `SYNC_UPDATES_AVAILABLE` webhook. + +### 2020-09-14_1.198.5 +- Internal changes + +### 2020-09-14_1.198.4 +- Add `deleted_at` to `/payment_profile/get` response. + +### 2020-09-14_1.198.3 +- Change `start_date` to `start_time` for `/wallet/transaction/list` response. + +### 2020-09-14_1.198.2 +- Update list of available products for `/partner/customer/create`. + +### 2020-09-14_1.198.1 +- Add `institution_name` and `institution_id` fields to `/credit/payroll_income/get` response. + +### 2020-09-14_1.198.0 +- Add `options.start_date` and `options.end_date` to `/wallet/transaction/list` endpoint. +- Add `last_status_update` and `payment_id` field to `WalletTransaction`. +- Add `transaction_id` field to `PaymentInitiationPayment` + +### 2020-09-14_1.197.6 +- Add `originator_client_id` to Transfer API endpoints + +### 2020-09-14_1.197.5 +- Deprecate `origination_account_id` from `/transfer/authorization/create` endpoint. + +### 2020-09-14_1.197.4 +- Add `asset_under_management` field to `PartnerCustomerCreateRequest`. + # 17.0.0 - Updating to OAS 2020-09-14_1.197.3 diff --git a/Makefile b/Makefile index e096936fd..b058cf136 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=17.0.0 +RUBY_PACKAGE_VERSION=17.1.0 .PHONY: release release: diff --git a/lib/plaid.rb b/lib/plaid.rb index 112972500..d2df516be 100644 --- a/lib/plaid.rb +++ b/lib/plaid.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -140,7 +140,9 @@ require 'plaid/models/cause' require 'plaid/models/cause_all_of' require 'plaid/models/client_provided_enhanced_transaction' +require 'plaid/models/client_provided_enriched_transaction' require 'plaid/models/client_provided_raw_transaction' +require 'plaid/models/client_provided_transaction' require 'plaid/models/connected_application' require 'plaid/models/counterparty' require 'plaid/models/counterparty_type' @@ -246,6 +248,7 @@ require 'plaid/models/deposit_switch_token_create_response' require 'plaid/models/depository_account_subtype' require 'plaid/models/depository_filter' +require 'plaid/models/disbursement_limits' require 'plaid/models/distribution_breakdown' require 'plaid/models/doc_type' require 'plaid/models/document_analysis' @@ -256,6 +259,7 @@ require 'plaid/models/document_risk_signal' require 'plaid/models/document_risk_signal_institution_metadata' require 'plaid/models/document_risk_signals_object' +require 'plaid/models/document_risk_summary' require 'plaid/models/document_status' require 'plaid/models/documentary_verification' require 'plaid/models/documentary_verification_document' @@ -278,6 +282,8 @@ require 'plaid/models/employment_verification_get_response' require 'plaid/models/employment_verification_status' require 'plaid/models/enhancements' +require 'plaid/models/enrich_transaction_direction' +require 'plaid/models/enrichments' require 'plaid/models/entity_document' require 'plaid/models/entity_document_type' require 'plaid/models/entity_screening_hit_analysis' @@ -382,8 +388,6 @@ require 'plaid/models/income_verification_precheck_request' require 'plaid/models/income_verification_precheck_response' require 'plaid/models/income_verification_precheck_user' -require 'plaid/models/income_verification_refresh_request' -require 'plaid/models/income_verification_refresh_response' require 'plaid/models/income_verification_source_type' require 'plaid/models/income_verification_status_webhook' require 'plaid/models/income_verification_taxforms_get_request' @@ -528,6 +532,7 @@ require 'plaid/models/numbers_international' require 'plaid/models/numbers_international_iban' require 'plaid/models/numbers_international_nullable' +require 'plaid/models/originator' require 'plaid/models/override_account_type' require 'plaid/models/override_accounts' require 'plaid/models/owner' @@ -542,8 +547,11 @@ require 'plaid/models/partner_customer_enable_response' require 'plaid/models/partner_customer_get_request' require 'plaid/models/partner_customer_get_response' +require 'plaid/models/partner_customer_remove_request' +require 'plaid/models/partner_customer_remove_response' require 'plaid/models/partner_end_customer' require 'plaid/models/partner_end_customer_address' +require 'plaid/models/partner_end_customer_assets_under_management' require 'plaid/models/partner_end_customer_billing_contact' require 'plaid/models/partner_end_customer_secrets' require 'plaid/models/partner_end_customer_status' @@ -566,6 +574,9 @@ require 'plaid/models/pay_stub_taxpayer_id' require 'plaid/models/payment_amount' require 'plaid/models/payment_amount_currency' +require 'plaid/models/payment_amount_nullable' +require 'plaid/models/payment_amount_refunded' +require 'plaid/models/payment_amount_to_refund' require 'plaid/models/payment_channel' require 'plaid/models/payment_consent_max_payment_amount' require 'plaid/models/payment_consent_periodic_alignment' @@ -610,6 +621,7 @@ require 'plaid/models/payment_initiation_recipient_list_request' require 'plaid/models/payment_initiation_recipient_list_response' require 'plaid/models/payment_initiation_standing_order_metadata' +require 'plaid/models/payment_limits' require 'plaid/models/payment_meta' require 'plaid/models/payment_profile_create_request' require 'plaid/models/payment_profile_create_response' @@ -676,6 +688,7 @@ require 'plaid/models/recipient_bacs_nullable' require 'plaid/models/recurring_transaction_frequency' require 'plaid/models/recurring_transactions_update_webhook' +require 'plaid/models/recurring_transfer' require 'plaid/models/removed_transaction' require 'plaid/models/report_type' require 'plaid/models/reporting_information' @@ -715,6 +728,12 @@ require 'plaid/models/sandbox_transfer_simulate_response' require 'plaid/models/sandbox_transfer_sweep_simulate_request' require 'plaid/models/sandbox_transfer_sweep_simulate_response' +require 'plaid/models/sandbox_transfer_test_clock_advance_request' +require 'plaid/models/sandbox_transfer_test_clock_advance_response' +require 'plaid/models/sandbox_transfer_test_clock_create_request' +require 'plaid/models/sandbox_transfer_test_clock_create_response' +require 'plaid/models/sandbox_transfer_test_clock_get_request' +require 'plaid/models/sandbox_transfer_test_clock_get_response' require 'plaid/models/scopes' require 'plaid/models/scopes_context' require 'plaid/models/scopes_nullable' @@ -734,12 +753,14 @@ require 'plaid/models/servicer_address_data' require 'plaid/models/services' require 'plaid/models/signal_address_data' +require 'plaid/models/signal_decision_outcome' require 'plaid/models/signal_decision_report_request' require 'plaid/models/signal_decision_report_response' require 'plaid/models/signal_device' require 'plaid/models/signal_evaluate_core_attributes' require 'plaid/models/signal_evaluate_request' require 'plaid/models/signal_evaluate_response' +require 'plaid/models/signal_payment_method' require 'plaid/models/signal_person_name' require 'plaid/models/signal_prepare_request' require 'plaid/models/signal_prepare_response' @@ -773,6 +794,7 @@ require 'plaid/models/transaction_base' require 'plaid/models/transaction_code' require 'plaid/models/transaction_data' +require 'plaid/models/transaction_frequency' require 'plaid/models/transaction_override' require 'plaid/models/transaction_stream' require 'plaid/models/transaction_stream_amount' @@ -780,6 +802,8 @@ require 'plaid/models/transactions_category_rule' require 'plaid/models/transactions_enhance_get_request' require 'plaid/models/transactions_enhance_get_response' +require 'plaid/models/transactions_enrich_get_request' +require 'plaid/models/transactions_enrich_get_response' require 'plaid/models/transactions_get_request' require 'plaid/models/transactions_get_request_options' require 'plaid/models/transactions_get_response' @@ -818,6 +842,8 @@ require 'plaid/models/transfer_cancel_response' require 'plaid/models/transfer_create_request' require 'plaid/models/transfer_create_response' +require 'plaid/models/transfer_device' +require 'plaid/models/transfer_diligence_status' require 'plaid/models/transfer_event' require 'plaid/models/transfer_event_list_request' require 'plaid/models/transfer_event_list_response' @@ -844,12 +870,39 @@ require 'plaid/models/transfer_migrate_account_request' require 'plaid/models/transfer_migrate_account_response' require 'plaid/models/transfer_network' +require 'plaid/models/transfer_originator_create_request' +require 'plaid/models/transfer_originator_create_response' +require 'plaid/models/transfer_originator_get_request' +require 'plaid/models/transfer_originator_get_response' +require 'plaid/models/transfer_originator_list_request' +require 'plaid/models/transfer_originator_list_response' +require 'plaid/models/transfer_questionnaire_create_request' +require 'plaid/models/transfer_questionnaire_create_response' +require 'plaid/models/transfer_recurring_cancel_request' +require 'plaid/models/transfer_recurring_cancel_response' +require 'plaid/models/transfer_recurring_create_request' +require 'plaid/models/transfer_recurring_create_response' +require 'plaid/models/transfer_recurring_get_request' +require 'plaid/models/transfer_recurring_get_response' +require 'plaid/models/transfer_recurring_list_request' +require 'plaid/models/transfer_recurring_list_response' +require 'plaid/models/transfer_recurring_schedule' +require 'plaid/models/transfer_recurring_status' +require 'plaid/models/transfer_refund' +require 'plaid/models/transfer_refund_cancel_request' +require 'plaid/models/transfer_refund_cancel_response' +require 'plaid/models/transfer_refund_create_request' +require 'plaid/models/transfer_refund_create_response' +require 'plaid/models/transfer_refund_get_request' +require 'plaid/models/transfer_refund_get_response' +require 'plaid/models/transfer_refund_status' require 'plaid/models/transfer_repayment' require 'plaid/models/transfer_repayment_list_request' require 'plaid/models/transfer_repayment_list_response' require 'plaid/models/transfer_repayment_return' require 'plaid/models/transfer_repayment_return_list_request' require 'plaid/models/transfer_repayment_return_list_response' +require 'plaid/models/transfer_schedule_interval_unit' require 'plaid/models/transfer_status' require 'plaid/models/transfer_sweep' require 'plaid/models/transfer_sweep_get_request' @@ -857,6 +910,7 @@ require 'plaid/models/transfer_sweep_list_request' require 'plaid/models/transfer_sweep_list_response' require 'plaid/models/transfer_sweep_status' +require 'plaid/models/transfer_test_clock' require 'plaid/models/transfer_type' require 'plaid/models/transfer_user_address_in_request' require 'plaid/models/transfer_user_address_in_response' @@ -905,10 +959,12 @@ require 'plaid/models/wallet_transaction_execute_response' require 'plaid/models/wallet_transaction_get_request' require 'plaid/models/wallet_transaction_get_response' +require 'plaid/models/wallet_transaction_list_request' +require 'plaid/models/wallet_transaction_list_request_options' +require 'plaid/models/wallet_transaction_list_response' require 'plaid/models/wallet_transaction_status' require 'plaid/models/wallet_transaction_status_update_webhook' require 'plaid/models/wallet_transactions_list_request' -require 'plaid/models/wallet_transactions_list_response' require 'plaid/models/warning' require 'plaid/models/watchlist_screening_audit_trail' require 'plaid/models/watchlist_screening_document' diff --git a/lib/plaid/api/plaid_api.rb b/lib/plaid/api/plaid_api.rb index c78146312..71467ba56 100644 --- a/lib/plaid/api/plaid_api.rb +++ b/lib/plaid/api/plaid_api.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -3854,71 +3854,6 @@ def income_verification_precheck_with_http_info(income_verification_precheck_req return data, status_code, headers end - # (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 - # @return [IncomeVerificationRefreshResponse] - def income_verification_refresh(income_verification_refresh_request, opts = {}) - data, _status_code, _headers = income_verification_refresh_with_http_info(income_verification_refresh_request, opts) - data - end - - # (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 - # @return [Array<(IncomeVerificationRefreshResponse, Integer, Hash)>] IncomeVerificationRefreshResponse data, response status code and response headers - def income_verification_refresh_with_http_info(income_verification_refresh_request, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PlaidApi.income_verification_refresh ...' - end - # verify the required parameter 'income_verification_refresh_request' is set - if @api_client.config.client_side_validation && income_verification_refresh_request.nil? - fail ArgumentError, "Missing the required parameter 'income_verification_refresh_request' when calling PlaidApi.income_verification_refresh" - end - # resource path - local_var_path = '/income/verification/refresh' - - # 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(income_verification_refresh_request) - - # return_type - return_type = opts[:debug_return_type] || 'IncomeVerificationRefreshResponse' - - # auth_names - auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret'] - - new_options = opts.merge( - :operation => :"PlaidApi.income_verification_refresh", - :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#income_verification_refresh\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - # (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] @@ -5479,6 +5414,71 @@ def partner_customer_get_with_http_info(partner_customer_get_request, opts = {}) return data, status_code, headers end + # Removes a Plaid reseller's end customer. + # The `/partner/customer/remove` endpoint is used by reseller partners to remove an end customer. Removing an end customer will remove it from view in the Plaid Dashboard and deactivate its API keys. This endpoint can only be used to remove an end customer that has not yet been enabled in Production. + # @param partner_customer_remove_request [PartnerCustomerRemoveRequest] + # @param [Hash] opts the optional parameters + # @return [PartnerCustomerRemoveResponse] + def partner_customer_remove(partner_customer_remove_request, opts = {}) + data, _status_code, _headers = partner_customer_remove_with_http_info(partner_customer_remove_request, opts) + data + end + + # Removes a Plaid reseller's end customer. + # The `/partner/customer/remove` endpoint is used by reseller partners to remove an end customer. Removing an end customer will remove it from view in the Plaid Dashboard and deactivate its API keys. This endpoint can only be used to remove an end customer that has not yet been enabled in Production. + # @param partner_customer_remove_request [PartnerCustomerRemoveRequest] + # @param [Hash] opts the optional parameters + # @return [Array<(PartnerCustomerRemoveResponse, Integer, Hash)>] PartnerCustomerRemoveResponse data, response status code and response headers + def partner_customer_remove_with_http_info(partner_customer_remove_request, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: PlaidApi.partner_customer_remove ...' + end + # verify the required parameter 'partner_customer_remove_request' is set + if @api_client.config.client_side_validation && partner_customer_remove_request.nil? + fail ArgumentError, "Missing the required parameter 'partner_customer_remove_request' when calling PlaidApi.partner_customer_remove" + end + # resource path + local_var_path = '/partner/customer/remove' + + # 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(partner_customer_remove_request) + + # return_type + return_type = opts[:debug_return_type] || 'PartnerCustomerRemoveResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret'] + + new_options = opts.merge( + :operation => :"PlaidApi.partner_customer_remove", + :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#partner_customer_remove\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Create payment consent # The `/payment_initiation/consent/create` endpoint is used to create a payment consent, which can be used to initiate payments on behalf of the user. Payment consents are created with `UNAUTHORISED` status by default and must be authorised by the user before payments can be initiated. Consents can be limited in time and scope, and have constraints that describe limitations for payments. # @param payment_initiation_consent_create_request [PaymentInitiationConsentCreateRequest] @@ -7040,7 +7040,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 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. `RECURRING_TRANSACTIONS_UPDATE`: Recurring Transactions webhook to be fired for a given Sandbox Item. If the Item does not support Recurring Transactions, a `SANDBOX_PRODUCT_NOT_ENABLED` error will result. 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. `RECURRING_TRANSACTIONS_UPDATE`: Recurring Transactions webhook to be fired for a given Sandbox Item. If the Item does not support Recurring Transactions, a `SANDBOX_PRODUCT_NOT_ENABLED` error will result. `SYNC_UPDATES_AVAILABLE`: Transactions webhook to be fired for a given Sandbox Item. If the Item does not support Transactions, a `SANDBOX_PRODUCT_NOT_ENABLED` error will result. 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] @@ -7050,7 +7050,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 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. `RECURRING_TRANSACTIONS_UPDATE`: Recurring Transactions webhook to be fired for a given Sandbox Item. If the Item does not support Recurring Transactions, a `SANDBOX_PRODUCT_NOT_ENABLED` error will result. 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. `RECURRING_TRANSACTIONS_UPDATE`: Recurring Transactions webhook to be fired for a given Sandbox Item. If the Item does not support Recurring Transactions, a `SANDBOX_PRODUCT_NOT_ENABLED` error will result. `SYNC_UPDATES_AVAILABLE`: Transactions webhook to be fired for a given Sandbox Item. If the Item does not support Transactions, a `SANDBOX_PRODUCT_NOT_ENABLED` error will result. 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 @@ -7300,7 +7300,7 @@ def sandbox_oauth_select_accounts_with_http_info(sandbox_oauth_select_accounts_r end # Reset the login of a Payment Profile - # `/sandbox/payment_profile/reset_login/` forces a Payment Profile into a state where the login is no longer valid. This makes it easy to test update mode for Payment Profile in the Sandbox environment. After calling `/sandbox/payment_profile/reset_login`, calls to the `/transfer/authorization/create` with the Payment Profile will result in a decision_rationale `PAYMENT_PROFILE_LOGIN_REQUIRED``. You can then use update mode for Payment Profile to restore it into a good state. In order to invoke this endpoint, you must first [create a Payment Profile](https://plaid.com/docs/transfer/add-to-app/#create-a-payment-profile-optional) and [go through the Link flow](https://plaid.com/docs/transfer/add-to-app/#create-a-link-token). + # `/sandbox/payment_profile/reset_login/` forces a Payment Profile into a state where the login is no longer valid. This makes it easy to test update mode for Payment Profile in the Sandbox environment. After calling `/sandbox/payment_profile/reset_login`, calls to the `/transfer/authorization/create` with the Payment Profile will result in a `decision_rationale` `PAYMENT_PROFILE_LOGIN_REQUIRED`. You can then use update mode for Payment Profile to restore it into a good state. In order to invoke this endpoint, you must first [create a Payment Profile](https://plaid.com/docs/transfer/add-to-app/#create-a-payment-profile-optional) and [go through the Link flow](https://plaid.com/docs/transfer/add-to-app/#create-a-link-token). # @param sandbox_payment_profile_reset_login_request [SandboxPaymentProfileResetLoginRequest] # @param [Hash] opts the optional parameters # @return [SandboxPaymentProfileResetLoginResponse] @@ -7310,7 +7310,7 @@ def sandbox_payment_profile_reset_login(sandbox_payment_profile_reset_login_requ end # Reset the login of a Payment Profile - # `/sandbox/payment_profile/reset_login/` forces a Payment Profile into a state where the login is no longer valid. This makes it easy to test update mode for Payment Profile in the Sandbox environment. After calling `/sandbox/payment_profile/reset_login`, calls to the `/transfer/authorization/create` with the Payment Profile will result in a decision_rationale `PAYMENT_PROFILE_LOGIN_REQUIRED``. You can then use update mode for Payment Profile to restore it into a good state. In order to invoke this endpoint, you must first [create a Payment Profile](https://plaid.com/docs/transfer/add-to-app/#create-a-payment-profile-optional) and [go through the Link flow](https://plaid.com/docs/transfer/add-to-app/#create-a-link-token). + # `/sandbox/payment_profile/reset_login/` forces a Payment Profile into a state where the login is no longer valid. This makes it easy to test update mode for Payment Profile in the Sandbox environment. After calling `/sandbox/payment_profile/reset_login`, calls to the `/transfer/authorization/create` with the Payment Profile will result in a `decision_rationale` `PAYMENT_PROFILE_LOGIN_REQUIRED`. You can then use update mode for Payment Profile to restore it into a good state. In order to invoke this endpoint, you must first [create a Payment Profile](https://plaid.com/docs/transfer/add-to-app/#create-a-payment-profile-optional) and [go through the Link flow](https://plaid.com/docs/transfer/add-to-app/#create-a-link-token). # @param sandbox_payment_profile_reset_login_request [SandboxPaymentProfileResetLoginRequest] # @param [Hash] opts the optional parameters # @return [Array<(SandboxPaymentProfileResetLoginResponse, Integer, Hash)>] SandboxPaymentProfileResetLoginResponse data, response status code and response headers @@ -7754,8 +7754,203 @@ def sandbox_transfer_sweep_simulate_with_http_info(sandbox_transfer_sweep_simula return data, status_code, headers end + # Advance a test clock + # Use the `/sandbox/transfer/test_clock/advance` endpoint to advance a `test_clock` in the Sandbox environment. A test clock object represents an independent timeline and has a `frozen_timestamp` field indicating the current timestamp of the timeline. A test clock can be advanced by incrementing `frozen_timestamp`, but may never go back to a lower `frozen_timestamp`. If a test clock is advanced from T1 to T2, we will simulate the changes that ought to occur during the period of (T1, T2]. For instance, a client creates a weekly recurring transfer with a test clock set at t. When the client advances the test clock by setting `frozen_timestamp` = t + 15 days, 2 new originations should be created, along with the webhook events. The timestamps of the objects and webhook events created/updated in step 2 should also fall in (T1, T2] time range. The advancement of the test clock from its current `frozen_timestamp` should be limited such that there are no more than 20 originations resulted from the advance operation on each `recurring_transfer` associated with this `test_clock`. For instance, if the recurring transfer associated with this test clock originates once every 4 weeks, you can advance the `frozen_timestamp` up to 80 weeks on each advance call. + # @param sandbox_transfer_test_clock_advance_request [SandboxTransferTestClockAdvanceRequest] + # @param [Hash] opts the optional parameters + # @return [SandboxTransferTestClockAdvanceResponse] + def sandbox_transfer_test_clock_advance(sandbox_transfer_test_clock_advance_request, opts = {}) + data, _status_code, _headers = sandbox_transfer_test_clock_advance_with_http_info(sandbox_transfer_test_clock_advance_request, opts) + data + end + + # Advance a test clock + # Use the `/sandbox/transfer/test_clock/advance` endpoint to advance a `test_clock` in the Sandbox environment. A test clock object represents an independent timeline and has a `frozen_timestamp` field indicating the current timestamp of the timeline. A test clock can be advanced by incrementing `frozen_timestamp`, but may never go back to a lower `frozen_timestamp`. If a test clock is advanced from T1 to T2, we will simulate the changes that ought to occur during the period of (T1, T2]. For instance, a client creates a weekly recurring transfer with a test clock set at t. When the client advances the test clock by setting `frozen_timestamp` = t + 15 days, 2 new originations should be created, along with the webhook events. The timestamps of the objects and webhook events created/updated in step 2 should also fall in (T1, T2] time range. The advancement of the test clock from its current `frozen_timestamp` should be limited such that there are no more than 20 originations resulted from the advance operation on each `recurring_transfer` associated with this `test_clock`. For instance, if the recurring transfer associated with this test clock originates once every 4 weeks, you can advance the `frozen_timestamp` up to 80 weeks on each advance call. + # @param sandbox_transfer_test_clock_advance_request [SandboxTransferTestClockAdvanceRequest] + # @param [Hash] opts the optional parameters + # @return [Array<(SandboxTransferTestClockAdvanceResponse, Integer, Hash)>] SandboxTransferTestClockAdvanceResponse data, response status code and response headers + def sandbox_transfer_test_clock_advance_with_http_info(sandbox_transfer_test_clock_advance_request, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: PlaidApi.sandbox_transfer_test_clock_advance ...' + end + # verify the required parameter 'sandbox_transfer_test_clock_advance_request' is set + if @api_client.config.client_side_validation && sandbox_transfer_test_clock_advance_request.nil? + fail ArgumentError, "Missing the required parameter 'sandbox_transfer_test_clock_advance_request' when calling PlaidApi.sandbox_transfer_test_clock_advance" + end + # resource path + local_var_path = '/sandbox/transfer/test_clock/advance' + + # 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_test_clock_advance_request) + + # return_type + return_type = opts[:debug_return_type] || 'SandboxTransferTestClockAdvanceResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret'] + + new_options = opts.merge( + :operation => :"PlaidApi.sandbox_transfer_test_clock_advance", + :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_test_clock_advance\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Create a test clock + # Use the `/sandbox/transfer/test_clock/create` endpoint to create a `test_clock` in the Sandbox environment. A test clock object represents an independent timeline and has a `frozen_timestamp` field indicating the current timestamp of the timeline. Test clock allows clients to easily test and integrate with recurring transfer product in sandbox environment. A test clock can be associated with up to 5 recurring transfers. + # @param sandbox_transfer_test_clock_create_request [SandboxTransferTestClockCreateRequest] + # @param [Hash] opts the optional parameters + # @return [SandboxTransferTestClockCreateResponse] + def sandbox_transfer_test_clock_create(sandbox_transfer_test_clock_create_request, opts = {}) + data, _status_code, _headers = sandbox_transfer_test_clock_create_with_http_info(sandbox_transfer_test_clock_create_request, opts) + data + end + + # Create a test clock + # Use the `/sandbox/transfer/test_clock/create` endpoint to create a `test_clock` in the Sandbox environment. A test clock object represents an independent timeline and has a `frozen_timestamp` field indicating the current timestamp of the timeline. Test clock allows clients to easily test and integrate with recurring transfer product in sandbox environment. A test clock can be associated with up to 5 recurring transfers. + # @param sandbox_transfer_test_clock_create_request [SandboxTransferTestClockCreateRequest] + # @param [Hash] opts the optional parameters + # @return [Array<(SandboxTransferTestClockCreateResponse, Integer, Hash)>] SandboxTransferTestClockCreateResponse data, response status code and response headers + def sandbox_transfer_test_clock_create_with_http_info(sandbox_transfer_test_clock_create_request, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: PlaidApi.sandbox_transfer_test_clock_create ...' + end + # verify the required parameter 'sandbox_transfer_test_clock_create_request' is set + if @api_client.config.client_side_validation && sandbox_transfer_test_clock_create_request.nil? + fail ArgumentError, "Missing the required parameter 'sandbox_transfer_test_clock_create_request' when calling PlaidApi.sandbox_transfer_test_clock_create" + end + # resource path + local_var_path = '/sandbox/transfer/test_clock/create' + + # 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_test_clock_create_request) + + # return_type + return_type = opts[:debug_return_type] || 'SandboxTransferTestClockCreateResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret'] + + new_options = opts.merge( + :operation => :"PlaidApi.sandbox_transfer_test_clock_create", + :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_test_clock_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Get a test clock + # Use the `/sandbox/transfer/test_clock/get` endpoint to get a `test_clock` in the Sandbox environment. + # @param sandbox_transfer_test_clock_get_request [SandboxTransferTestClockGetRequest] + # @param [Hash] opts the optional parameters + # @return [SandboxTransferTestClockGetResponse] + def sandbox_transfer_test_clock_get(sandbox_transfer_test_clock_get_request, opts = {}) + data, _status_code, _headers = sandbox_transfer_test_clock_get_with_http_info(sandbox_transfer_test_clock_get_request, opts) + data + end + + # Get a test clock + # Use the `/sandbox/transfer/test_clock/get` endpoint to get a `test_clock` in the Sandbox environment. + # @param sandbox_transfer_test_clock_get_request [SandboxTransferTestClockGetRequest] + # @param [Hash] opts the optional parameters + # @return [Array<(SandboxTransferTestClockGetResponse, Integer, Hash)>] SandboxTransferTestClockGetResponse data, response status code and response headers + def sandbox_transfer_test_clock_get_with_http_info(sandbox_transfer_test_clock_get_request, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: PlaidApi.sandbox_transfer_test_clock_get ...' + end + # verify the required parameter 'sandbox_transfer_test_clock_get_request' is set + if @api_client.config.client_side_validation && sandbox_transfer_test_clock_get_request.nil? + fail ArgumentError, "Missing the required parameter 'sandbox_transfer_test_clock_get_request' when calling PlaidApi.sandbox_transfer_test_clock_get" + end + # resource path + local_var_path = '/sandbox/transfer/test_clock/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(sandbox_transfer_test_clock_get_request) + + # return_type + return_type = opts[:debug_return_type] || 'SandboxTransferTestClockGetResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret'] + + new_options = opts.merge( + :operation => :"PlaidApi.sandbox_transfer_test_clock_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#sandbox_transfer_test_clock_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Report whether you initiated an ACH transaction - # After calling `/signal/evaluate`, call `/signal/decision/report` to report whether the transaction was initiated. This endpoint will return an `INVALID_REQUEST` error if called a second time with a different value for `initiated`. + # After calling `/signal/evaluate`, call `/signal/decision/report` to report whether the transaction was initiated. This endpoint will return an [`INVALID_FIELD`](/docs/errors/invalid-request/#invalid_field) error if called a second time with a different value for `initiated`. # @param signal_decision_report_request [SignalDecisionReportRequest] # @param [Hash] opts the optional parameters # @return [SignalDecisionReportResponse] @@ -7765,7 +7960,7 @@ def signal_decision_report(signal_decision_report_request, opts = {}) end # Report whether you initiated an ACH transaction - # After calling `/signal/evaluate`, call `/signal/decision/report` to report whether the transaction was initiated. This endpoint will return an `INVALID_REQUEST` error if called a second time with a different value for `initiated`. + # After calling `/signal/evaluate`, call `/signal/decision/report` to report whether the transaction was initiated. This endpoint will return an [`INVALID_FIELD`](/docs/errors/invalid-request/#invalid_field) error if called a second time with a different value for `initiated`. # @param signal_decision_report_request [SignalDecisionReportRequest] # @param [Hash] opts the optional parameters # @return [Array<(SignalDecisionReportResponse, Integer, Hash)>] SignalDecisionReportResponse data, response status code and response headers @@ -7820,7 +8015,7 @@ def signal_decision_report_with_http_info(signal_decision_report_request, opts = end # Evaluate a planned ACH transaction - # Use `/signal/evaluate` to evaluate a planned ACH transaction to get a return risk assessment (such as a risk score and risk tier) and additional risk signals. In order to obtain a valid score for an ACH transaction, Plaid must have an access token for the account, and the Item must be healthy (receiving product updates) or have recently been in a healthy state. If the transaction does not meet eligibility requirements, an error will be returned corresponding to the underlying cause. If `/signal/evaluate` is called on the same transaction multiple times within a 24-hour period, cached results may be returned. + # Use `/signal/evaluate` to evaluate a planned ACH transaction to get a return risk assessment (such as a risk score and risk tier) and additional risk signals. In order to obtain a valid score for an ACH transaction, Plaid must have an access token for the account, and the Item must be healthy (receiving product updates) or have recently been in a healthy state. If the transaction does not meet eligibility requirements, an error will be returned corresponding to the underlying cause. If `/signal/evaluate` is called on the same transaction multiple times within a 24-hour period, cached results may be returned. For more information please refer to our error documentation on [item errors](/docs/errors/item/) and [Link in Update Mode](/docs/link/update-mode/). Note: This request may take some time to complete if Signal is being added to an existing Item. This is because Plaid must communicate directly with the institution when retrieving the data for the first time. # @param signal_evaluate_request [SignalEvaluateRequest] # @param [Hash] opts the optional parameters # @return [SignalEvaluateResponse] @@ -7830,7 +8025,7 @@ def signal_evaluate(signal_evaluate_request, opts = {}) end # Evaluate a planned ACH transaction - # Use `/signal/evaluate` to evaluate a planned ACH transaction to get a return risk assessment (such as a risk score and risk tier) and additional risk signals. In order to obtain a valid score for an ACH transaction, Plaid must have an access token for the account, and the Item must be healthy (receiving product updates) or have recently been in a healthy state. If the transaction does not meet eligibility requirements, an error will be returned corresponding to the underlying cause. If `/signal/evaluate` is called on the same transaction multiple times within a 24-hour period, cached results may be returned. + # Use `/signal/evaluate` to evaluate a planned ACH transaction to get a return risk assessment (such as a risk score and risk tier) and additional risk signals. In order to obtain a valid score for an ACH transaction, Plaid must have an access token for the account, and the Item must be healthy (receiving product updates) or have recently been in a healthy state. If the transaction does not meet eligibility requirements, an error will be returned corresponding to the underlying cause. If `/signal/evaluate` is called on the same transaction multiple times within a 24-hour period, cached results may be returned. For more information please refer to our error documentation on [item errors](/docs/errors/item/) and [Link in Update Mode](/docs/link/update-mode/). Note: This request may take some time to complete if Signal is being added to an existing Item. This is because Plaid must communicate directly with the institution when retrieving the data for the first time. # @param signal_evaluate_request [SignalEvaluateRequest] # @param [Hash] opts the optional parameters # @return [Array<(SignalEvaluateResponse, Integer, Hash)>] SignalEvaluateResponse data, response status code and response headers @@ -7884,8 +8079,8 @@ def signal_evaluate_with_http_info(signal_evaluate_request, opts = {}) return data, status_code, headers end - # Prepare the Signal product before calling `/signal/evaluate` - # Call `/signal/prepare` with Plaid-linked bank account information at least 10 seconds before calling `/signal/evaluate` or as soon as an end-user enters the ACH deposit flow in your application. + # Opt-in an Item to Signal + # When Link is not initialized with Signal, call `/signal/prepare` to opt-in that Item to the Signal data collection process, developing a Signal score. If you are using other Plaid products after Link, e.g. Identity or Assets, call `/signal/prepare` after those product calls are complete. Example flow: Link is initialized with Auth, call `/auth/get` for the account & routing number, call `/identity/get` to retrieve bank ownership details, call `/signal/prepare` to begin Signal data collection, then call `/signal/evaluate` for a Signal score. For more information please see [Recommendations for initializing Link with specific product combinations](/docs/link/best-practices/#recommendations-for-initializing-link-with-specific-product-combinations). # @param signal_prepare_request [SignalPrepareRequest] # @param [Hash] opts the optional parameters # @return [SignalPrepareResponse] @@ -7894,8 +8089,8 @@ def signal_prepare(signal_prepare_request, opts = {}) data end - # Prepare the Signal product before calling `/signal/evaluate` - # Call `/signal/prepare` with Plaid-linked bank account information at least 10 seconds before calling `/signal/evaluate` or as soon as an end-user enters the ACH deposit flow in your application. + # Opt-in an Item to Signal + # When Link is not initialized with Signal, call `/signal/prepare` to opt-in that Item to the Signal data collection process, developing a Signal score. If you are using other Plaid products after Link, e.g. Identity or Assets, call `/signal/prepare` after those product calls are complete. Example flow: Link is initialized with Auth, call `/auth/get` for the account & routing number, call `/identity/get` to retrieve bank ownership details, call `/signal/prepare` to begin Signal data collection, then call `/signal/evaluate` for a Signal score. For more information please see [Recommendations for initializing Link with specific product combinations](/docs/link/best-practices/#recommendations-for-initializing-link-with-specific-product-combinations). # @param signal_prepare_request [SignalPrepareRequest] # @param [Hash] opts the optional parameters # @return [Array<(SignalPrepareResponse, Integer, Hash)>] SignalPrepareResponse data, response status code and response headers @@ -8079,31 +8274,31 @@ def transactions_enhance_with_http_info(transactions_enhance_get_request, opts = return data, status_code, headers end - # Get transaction data - # The `/transactions/get` endpoint allows developers to receive user-authorized transaction data for credit, depository, and some loan-type accounts (only those with account subtype `student`; coverage may be limited). For transaction history from investments accounts, use the [Investments endpoint](https://plaid.com/docs/api/products/investments/) instead. Transaction data is standardized across financial institutions, and in many cases transactions are linked to a clean name, entity type, location, and category. Similarly, account data is standardized and returned with a clean name, number, balance, and other meta information where available. Transactions are returned in reverse-chronological order, and the sequence of transaction ordering is stable and will not shift. Transactions are not immutable and can also be removed altogether by the institution; a removed transaction will no longer appear in `/transactions/get`. For more details, see [Pending and posted transactions](https://plaid.com/docs/transactions/transactions-data/#pending-and-posted-transactions). Due to the potentially large number of transactions associated with an Item, results are paginated. Manipulate the `count` and `offset` parameters in conjunction with the `total_transactions` response body field to fetch all available transactions. Data returned by `/transactions/get` will be the data available for the Item as of the most recent successful check for new transactions. Plaid typically checks for new data multiple times a day, but these checks may occur less frequently, such as once a day, depending on the institution. An Item's `status.transactions.last_successful_update` field will show the timestamp of the most recent successful update. To force Plaid to check for new transactions, you can use the `/transactions/refresh` endpoint. Note that data may not be immediately available to `/transactions/get`. Plaid will begin to prepare transactions data upon Item link, if Link was initialized with `transactions`, or upon the first call to `/transactions/get`, if it wasn't. To be alerted when transaction data is ready to be fetched, listen for the [`INITIAL_UPDATE`](https://plaid.com/docs/api/products/transactions/#initial_update) and [`HISTORICAL_UPDATE`](https://plaid.com/docs/api/products/transactions/#historical_update) webhooks. If no transaction history is ready when `/transactions/get` is called, it will return a `PRODUCT_NOT_READY` error. - # @param transactions_get_request [TransactionsGetRequest] + # Enrich locally-held transaction data + # The '/transactions/enrich' endpoint enriches raw transaction data generated by your own banking products or retrieved from other non-Plaid sources. The product is currently in beta. To request access, contact transactions-feedback@plaid.com + # @param transactions_enrich_get_request [TransactionsEnrichGetRequest] # @param [Hash] opts the optional parameters - # @return [TransactionsGetResponse] - def transactions_get(transactions_get_request, opts = {}) - data, _status_code, _headers = transactions_get_with_http_info(transactions_get_request, opts) + # @return [TransactionsEnrichGetResponse] + def transactions_enrich(transactions_enrich_get_request, opts = {}) + data, _status_code, _headers = transactions_enrich_with_http_info(transactions_enrich_get_request, opts) data end - # Get transaction data - # The `/transactions/get` endpoint allows developers to receive user-authorized transaction data for credit, depository, and some loan-type accounts (only those with account subtype `student`; coverage may be limited). For transaction history from investments accounts, use the [Investments endpoint](https://plaid.com/docs/api/products/investments/) instead. Transaction data is standardized across financial institutions, and in many cases transactions are linked to a clean name, entity type, location, and category. Similarly, account data is standardized and returned with a clean name, number, balance, and other meta information where available. Transactions are returned in reverse-chronological order, and the sequence of transaction ordering is stable and will not shift. Transactions are not immutable and can also be removed altogether by the institution; a removed transaction will no longer appear in `/transactions/get`. For more details, see [Pending and posted transactions](https://plaid.com/docs/transactions/transactions-data/#pending-and-posted-transactions). Due to the potentially large number of transactions associated with an Item, results are paginated. Manipulate the `count` and `offset` parameters in conjunction with the `total_transactions` response body field to fetch all available transactions. Data returned by `/transactions/get` will be the data available for the Item as of the most recent successful check for new transactions. Plaid typically checks for new data multiple times a day, but these checks may occur less frequently, such as once a day, depending on the institution. An Item's `status.transactions.last_successful_update` field will show the timestamp of the most recent successful update. To force Plaid to check for new transactions, you can use the `/transactions/refresh` endpoint. Note that data may not be immediately available to `/transactions/get`. Plaid will begin to prepare transactions data upon Item link, if Link was initialized with `transactions`, or upon the first call to `/transactions/get`, if it wasn't. To be alerted when transaction data is ready to be fetched, listen for the [`INITIAL_UPDATE`](https://plaid.com/docs/api/products/transactions/#initial_update) and [`HISTORICAL_UPDATE`](https://plaid.com/docs/api/products/transactions/#historical_update) webhooks. If no transaction history is ready when `/transactions/get` is called, it will return a `PRODUCT_NOT_READY` error. - # @param transactions_get_request [TransactionsGetRequest] + # Enrich locally-held transaction data + # The '/transactions/enrich' endpoint enriches raw transaction data generated by your own banking products or retrieved from other non-Plaid sources. The product is currently in beta. To request access, contact transactions-feedback@plaid.com + # @param transactions_enrich_get_request [TransactionsEnrichGetRequest] # @param [Hash] opts the optional parameters - # @return [Array<(TransactionsGetResponse, Integer, Hash)>] TransactionsGetResponse data, response status code and response headers - def transactions_get_with_http_info(transactions_get_request, opts = {}) + # @return [Array<(TransactionsEnrichGetResponse, Integer, Hash)>] TransactionsEnrichGetResponse data, response status code and response headers + def transactions_enrich_with_http_info(transactions_enrich_get_request, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PlaidApi.transactions_get ...' + @api_client.config.logger.debug 'Calling API: PlaidApi.transactions_enrich ...' end - # verify the required parameter 'transactions_get_request' is set - if @api_client.config.client_side_validation && transactions_get_request.nil? - fail ArgumentError, "Missing the required parameter 'transactions_get_request' when calling PlaidApi.transactions_get" + # verify the required parameter 'transactions_enrich_get_request' is set + if @api_client.config.client_side_validation && transactions_enrich_get_request.nil? + fail ArgumentError, "Missing the required parameter 'transactions_enrich_get_request' when calling PlaidApi.transactions_enrich" end # resource path - local_var_path = '/transactions/get' + local_var_path = '/transactions/enrich' # query parameters query_params = opts[:query_params] || {} @@ -8119,16 +8314,16 @@ def transactions_get_with_http_info(transactions_get_request, opts = {}) form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(transactions_get_request) + post_body = opts[:debug_body] || @api_client.object_to_http_body(transactions_enrich_get_request) # return_type - return_type = opts[:debug_return_type] || 'TransactionsGetResponse' + return_type = opts[:debug_return_type] || 'TransactionsEnrichGetResponse' # auth_names auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret'] new_options = opts.merge( - :operation => :"PlaidApi.transactions_get", + :operation => :"PlaidApi.transactions_enrich", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -8139,23 +8334,88 @@ def transactions_get_with_http_info(transactions_get_request, opts = {}) 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#transactions_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: PlaidApi#transactions_enrich\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Fetch recurring transaction streams - # The `/transactions/recurring/get` endpoint allows developers to receive a summary of the recurring outflow and inflow streams (expenses and deposits) from a user’s checking, savings or credit card accounts. Additionally, Plaid provides key insights about each recurring stream including the category, merchant, last amount, and more. Developers can use these insights to build tools and experiences that help their users better manage cash flow, monitor subscriptions, reduce spend, and stay on track with bill payments. This endpoint is not included by default as part of Transactions. To request access to this endpoint and learn more about pricing, contact your Plaid account manager. Note that unlike `/transactions/get`, `/transactions/recurring/get` will not initialize an Item with Transactions. The Item must already have been initialized with Transactions (either during Link, by specifying it in `/link/token/create`, or after Link, by calling `/transactions/get`) before calling this endpoint. Data is available to `/transactions/recurring/get` approximately 5 seconds after the [`HISTORICAL_UPDATE`](https://plaid.com/docs/api/products/transactions/#historical_update) webhook has fired (about 1-2 minutes after initialization). After the initial call, you can call `/transactions/recurring/get` endpoint at any point in the future to retrieve the latest summary of recurring streams. Since recurring streams do not change often, it will typically not be necessary to call this endpoint more than once per day. - # @param transactions_recurring_get_request [TransactionsRecurringGetRequest] + # Get transaction data + # The `/transactions/get` endpoint allows developers to receive user-authorized transaction data for credit, depository, and some loan-type accounts (only those with account subtype `student`; coverage may be limited). For transaction history from investments accounts, use the [Investments endpoint](https://plaid.com/docs/api/products/investments/) instead. Transaction data is standardized across financial institutions, and in many cases transactions are linked to a clean name, entity type, location, and category. Similarly, account data is standardized and returned with a clean name, number, balance, and other meta information where available. Transactions are returned in reverse-chronological order, and the sequence of transaction ordering is stable and will not shift. Transactions are not immutable and can also be removed altogether by the institution; a removed transaction will no longer appear in `/transactions/get`. For more details, see [Pending and posted transactions](https://plaid.com/docs/transactions/transactions-data/#pending-and-posted-transactions). Due to the potentially large number of transactions associated with an Item, results are paginated. Manipulate the `count` and `offset` parameters in conjunction with the `total_transactions` response body field to fetch all available transactions. Data returned by `/transactions/get` will be the data available for the Item as of the most recent successful check for new transactions. Plaid typically checks for new data multiple times a day, but these checks may occur less frequently, such as once a day, depending on the institution. An Item's `status.transactions.last_successful_update` field will show the timestamp of the most recent successful update. To force Plaid to check for new transactions, you can use the `/transactions/refresh` endpoint. Note that data may not be immediately available to `/transactions/get`. Plaid will begin to prepare transactions data upon Item link, if Link was initialized with `transactions`, or upon the first call to `/transactions/get`, if it wasn't. To be alerted when transaction data is ready to be fetched, listen for the [`INITIAL_UPDATE`](https://plaid.com/docs/api/products/transactions/#initial_update) and [`HISTORICAL_UPDATE`](https://plaid.com/docs/api/products/transactions/#historical_update) webhooks. If no transaction history is ready when `/transactions/get` is called, it will return a `PRODUCT_NOT_READY` error. + # @param transactions_get_request [TransactionsGetRequest] # @param [Hash] opts the optional parameters - # @return [TransactionsRecurringGetResponse] - def transactions_recurring_get(transactions_recurring_get_request, opts = {}) - data, _status_code, _headers = transactions_recurring_get_with_http_info(transactions_recurring_get_request, opts) + # @return [TransactionsGetResponse] + def transactions_get(transactions_get_request, opts = {}) + data, _status_code, _headers = transactions_get_with_http_info(transactions_get_request, opts) + data + end + + # Get transaction data + # The `/transactions/get` endpoint allows developers to receive user-authorized transaction data for credit, depository, and some loan-type accounts (only those with account subtype `student`; coverage may be limited). For transaction history from investments accounts, use the [Investments endpoint](https://plaid.com/docs/api/products/investments/) instead. Transaction data is standardized across financial institutions, and in many cases transactions are linked to a clean name, entity type, location, and category. Similarly, account data is standardized and returned with a clean name, number, balance, and other meta information where available. Transactions are returned in reverse-chronological order, and the sequence of transaction ordering is stable and will not shift. Transactions are not immutable and can also be removed altogether by the institution; a removed transaction will no longer appear in `/transactions/get`. For more details, see [Pending and posted transactions](https://plaid.com/docs/transactions/transactions-data/#pending-and-posted-transactions). Due to the potentially large number of transactions associated with an Item, results are paginated. Manipulate the `count` and `offset` parameters in conjunction with the `total_transactions` response body field to fetch all available transactions. Data returned by `/transactions/get` will be the data available for the Item as of the most recent successful check for new transactions. Plaid typically checks for new data multiple times a day, but these checks may occur less frequently, such as once a day, depending on the institution. An Item's `status.transactions.last_successful_update` field will show the timestamp of the most recent successful update. To force Plaid to check for new transactions, you can use the `/transactions/refresh` endpoint. Note that data may not be immediately available to `/transactions/get`. Plaid will begin to prepare transactions data upon Item link, if Link was initialized with `transactions`, or upon the first call to `/transactions/get`, if it wasn't. To be alerted when transaction data is ready to be fetched, listen for the [`INITIAL_UPDATE`](https://plaid.com/docs/api/products/transactions/#initial_update) and [`HISTORICAL_UPDATE`](https://plaid.com/docs/api/products/transactions/#historical_update) webhooks. If no transaction history is ready when `/transactions/get` is called, it will return a `PRODUCT_NOT_READY` error. + # @param transactions_get_request [TransactionsGetRequest] + # @param [Hash] opts the optional parameters + # @return [Array<(TransactionsGetResponse, Integer, Hash)>] TransactionsGetResponse data, response status code and response headers + def transactions_get_with_http_info(transactions_get_request, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: PlaidApi.transactions_get ...' + end + # verify the required parameter 'transactions_get_request' is set + if @api_client.config.client_side_validation && transactions_get_request.nil? + fail ArgumentError, "Missing the required parameter 'transactions_get_request' when calling PlaidApi.transactions_get" + end + # resource path + local_var_path = '/transactions/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(transactions_get_request) + + # return_type + return_type = opts[:debug_return_type] || 'TransactionsGetResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret'] + + new_options = opts.merge( + :operation => :"PlaidApi.transactions_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#transactions_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Fetch recurring transaction streams + # The `/transactions/recurring/get` endpoint allows developers to receive a summary of the recurring outflow and inflow streams (expenses and deposits) from a user’s checking, savings or credit card accounts. Additionally, Plaid provides key insights about each recurring stream including the category, merchant, last amount, and more. Developers can use these insights to build tools and experiences that help their users better manage cash flow, monitor subscriptions, reduce spend, and stay on track with bill payments. This endpoint is not included by default as part of Transactions. To request access to this endpoint, submit a [product access request](https://dashboard.plaid.com/team/products) or contact your Plaid account manager. Note that unlike `/transactions/get`, `/transactions/recurring/get` will not initialize an Item with Transactions. The Item must already have been initialized with Transactions (either during Link, by specifying it in `/link/token/create`, or after Link, by calling `/transactions/get`) before calling this endpoint. Data is available to `/transactions/recurring/get` approximately 5 seconds after the [`HISTORICAL_UPDATE`](https://plaid.com/docs/api/products/transactions/#historical_update) webhook has fired (about 1-2 minutes after initialization). After the initial call, you can call `/transactions/recurring/get` endpoint at any point in the future to retrieve the latest summary of recurring streams. Since recurring streams do not change often, it will typically not be necessary to call this endpoint more than once per day. + # @param transactions_recurring_get_request [TransactionsRecurringGetRequest] + # @param [Hash] opts the optional parameters + # @return [TransactionsRecurringGetResponse] + def transactions_recurring_get(transactions_recurring_get_request, opts = {}) + data, _status_code, _headers = transactions_recurring_get_with_http_info(transactions_recurring_get_request, opts) data end # Fetch recurring transaction streams - # The `/transactions/recurring/get` endpoint allows developers to receive a summary of the recurring outflow and inflow streams (expenses and deposits) from a user’s checking, savings or credit card accounts. Additionally, Plaid provides key insights about each recurring stream including the category, merchant, last amount, and more. Developers can use these insights to build tools and experiences that help their users better manage cash flow, monitor subscriptions, reduce spend, and stay on track with bill payments. This endpoint is not included by default as part of Transactions. To request access to this endpoint and learn more about pricing, contact your Plaid account manager. Note that unlike `/transactions/get`, `/transactions/recurring/get` will not initialize an Item with Transactions. The Item must already have been initialized with Transactions (either during Link, by specifying it in `/link/token/create`, or after Link, by calling `/transactions/get`) before calling this endpoint. Data is available to `/transactions/recurring/get` approximately 5 seconds after the [`HISTORICAL_UPDATE`](https://plaid.com/docs/api/products/transactions/#historical_update) webhook has fired (about 1-2 minutes after initialization). After the initial call, you can call `/transactions/recurring/get` endpoint at any point in the future to retrieve the latest summary of recurring streams. Since recurring streams do not change often, it will typically not be necessary to call this endpoint more than once per day. + # The `/transactions/recurring/get` endpoint allows developers to receive a summary of the recurring outflow and inflow streams (expenses and deposits) from a user’s checking, savings or credit card accounts. Additionally, Plaid provides key insights about each recurring stream including the category, merchant, last amount, and more. Developers can use these insights to build tools and experiences that help their users better manage cash flow, monitor subscriptions, reduce spend, and stay on track with bill payments. This endpoint is not included by default as part of Transactions. To request access to this endpoint, submit a [product access request](https://dashboard.plaid.com/team/products) or contact your Plaid account manager. Note that unlike `/transactions/get`, `/transactions/recurring/get` will not initialize an Item with Transactions. The Item must already have been initialized with Transactions (either during Link, by specifying it in `/link/token/create`, or after Link, by calling `/transactions/get`) before calling this endpoint. Data is available to `/transactions/recurring/get` approximately 5 seconds after the [`HISTORICAL_UPDATE`](https://plaid.com/docs/api/products/transactions/#historical_update) webhook has fired (about 1-2 minutes after initialization). After the initial call, you can call `/transactions/recurring/get` endpoint at any point in the future to retrieve the latest summary of recurring streams. Since recurring streams do not change often, it will typically not be necessary to call this endpoint more than once per day. # @param transactions_recurring_get_request [TransactionsRecurringGetRequest] # @param [Hash] opts the optional parameters # @return [Array<(TransactionsRecurringGetResponse, Integer, Hash)>] TransactionsRecurringGetResponse data, response status code and response headers @@ -8470,7 +8730,7 @@ def transactions_rules_remove_with_http_info(transactions_rules_remove_request, end # Get incremental transaction updates on an Item - # This endpoint replaces `/transactions/get` and its associated webhooks for most common use-cases. The `/transactions/sync` endpoint allows developers to subscribe to all transactions associated with an Item and get updates synchronously in a stream-like manner, using a cursor to track which updates have already been seen. `/transactions/sync` provides the same functionality as `/transactions/get` and can be used instead of `/transactions/get` to simplify the process of tracking transactions updates. This endpoint provides user-authorized transaction data for `credit`, `depository`, and some loan-type accounts (only those with account subtype `student`; coverage may be limited). For transaction history from `investments` accounts, use `/investments/transactions/get` instead. Returned transactions data is grouped into three types of update, indicating whether the transaction was added, removed, or modified since the last call to the API. In the first call to `/transactions/sync` for an Item, the endpoint will return all historical transactions data associated with that Item up until the time of the API call (as \"adds\"), which then generates a `next_cursor` for that Item. In subsequent calls, send the `next_cursor` to receive only the changes that have occurred since the previous call. Due to the potentially large number of transactions associated with an Item, results are paginated. The `has_more` field specifies if additional calls are necessary to fetch all available transaction updates. Whenever new or updated transaction data becomes available, `/transactions/sync` will provide these updates. Plaid typically checks for new data multiple times a day, but these checks may occur less frequently, such as once a day, depending on the institution. An Item's `status.transactions.last_successful_update` field will show the timestamp of the most recent successful update. To force Plaid to check for new transactions, use the `/transactions/refresh` endpoint. Note that for newly created Items, data may not be immediately available to `/transactions/sync`. Plaid begins preparing transactions data when the Item is created, but the process can take anywhere from a few seconds to several minutes to complete, depending on the number of transactions available. To be alerted when new data is available, listen for the [`SYNC_UPDATES_AVAILABLE`](https://plaid.com/docs/api/products/transactions/#sync_updates_available) webhook. + # This endpoint replaces `/transactions/get` and its associated webhooks for most common use-cases. The `/transactions/sync` endpoint allows developers to subscribe to all transactions associated with an Item and get updates synchronously in a stream-like manner, using a cursor to track which updates have already been seen. `/transactions/sync` provides the same functionality as `/transactions/get` and can be used instead of `/transactions/get` to simplify the process of tracking transactions updates. This endpoint provides user-authorized transaction data for `credit`, `depository`, and some loan-type accounts (only those with account subtype `student`; coverage may be limited). For transaction history from `investments` accounts, use `/investments/transactions/get` instead. Returned transactions data is grouped into three types of update, indicating whether the transaction was added, removed, or modified since the last call to the API. In the first call to `/transactions/sync` for an Item, the endpoint will return all historical transactions data associated with that Item up until the time of the API call (as \"adds\"), which then generates a `next_cursor` for that Item. In subsequent calls, send the `next_cursor` to receive only the changes that have occurred since the previous call. Due to the potentially large number of transactions associated with an Item, results are paginated. The `has_more` field specifies if additional calls are necessary to fetch all available transaction updates. Call `/transactions/sync` with the new cursor, pulling all updates, until `has_more` is `false`. When retrieving paginated updates, track both the `next_cursor` from the latest response and the original cursor from the first call in which `has_more` was `true`; if a call to `/transactions/sync` fails when retrieving a paginated update, the entire pagination request loop must be restarted beginning with the cursor for the first page of the update, rather than retrying only the single request that failed. Whenever new or updated transaction data becomes available, `/transactions/sync` will provide these updates. Plaid typically checks for new data multiple times a day, but these checks may occur less frequently, such as once a day, depending on the institution. An Item's `status.transactions.last_successful_update` field will show the timestamp of the most recent successful update. To force Plaid to check for new transactions, use the `/transactions/refresh` endpoint. Note that for newly created Items, data may not be immediately available to `/transactions/sync`. Plaid begins preparing transactions data when the Item is created, but the process can take anywhere from a few seconds to several minutes to complete, depending on the number of transactions available. To be alerted when new data is available, listen for the [`SYNC_UPDATES_AVAILABLE`](https://plaid.com/docs/api/products/transactions/#sync_updates_available) webhook. # @param transactions_sync_request [TransactionsSyncRequest] # @param [Hash] opts the optional parameters # @return [TransactionsSyncResponse] @@ -8480,7 +8740,7 @@ def transactions_sync(transactions_sync_request, opts = {}) end # Get incremental transaction updates on an Item - # This endpoint replaces `/transactions/get` and its associated webhooks for most common use-cases. The `/transactions/sync` endpoint allows developers to subscribe to all transactions associated with an Item and get updates synchronously in a stream-like manner, using a cursor to track which updates have already been seen. `/transactions/sync` provides the same functionality as `/transactions/get` and can be used instead of `/transactions/get` to simplify the process of tracking transactions updates. This endpoint provides user-authorized transaction data for `credit`, `depository`, and some loan-type accounts (only those with account subtype `student`; coverage may be limited). For transaction history from `investments` accounts, use `/investments/transactions/get` instead. Returned transactions data is grouped into three types of update, indicating whether the transaction was added, removed, or modified since the last call to the API. In the first call to `/transactions/sync` for an Item, the endpoint will return all historical transactions data associated with that Item up until the time of the API call (as \"adds\"), which then generates a `next_cursor` for that Item. In subsequent calls, send the `next_cursor` to receive only the changes that have occurred since the previous call. Due to the potentially large number of transactions associated with an Item, results are paginated. The `has_more` field specifies if additional calls are necessary to fetch all available transaction updates. Whenever new or updated transaction data becomes available, `/transactions/sync` will provide these updates. Plaid typically checks for new data multiple times a day, but these checks may occur less frequently, such as once a day, depending on the institution. An Item's `status.transactions.last_successful_update` field will show the timestamp of the most recent successful update. To force Plaid to check for new transactions, use the `/transactions/refresh` endpoint. Note that for newly created Items, data may not be immediately available to `/transactions/sync`. Plaid begins preparing transactions data when the Item is created, but the process can take anywhere from a few seconds to several minutes to complete, depending on the number of transactions available. To be alerted when new data is available, listen for the [`SYNC_UPDATES_AVAILABLE`](https://plaid.com/docs/api/products/transactions/#sync_updates_available) webhook. + # This endpoint replaces `/transactions/get` and its associated webhooks for most common use-cases. The `/transactions/sync` endpoint allows developers to subscribe to all transactions associated with an Item and get updates synchronously in a stream-like manner, using a cursor to track which updates have already been seen. `/transactions/sync` provides the same functionality as `/transactions/get` and can be used instead of `/transactions/get` to simplify the process of tracking transactions updates. This endpoint provides user-authorized transaction data for `credit`, `depository`, and some loan-type accounts (only those with account subtype `student`; coverage may be limited). For transaction history from `investments` accounts, use `/investments/transactions/get` instead. Returned transactions data is grouped into three types of update, indicating whether the transaction was added, removed, or modified since the last call to the API. In the first call to `/transactions/sync` for an Item, the endpoint will return all historical transactions data associated with that Item up until the time of the API call (as \"adds\"), which then generates a `next_cursor` for that Item. In subsequent calls, send the `next_cursor` to receive only the changes that have occurred since the previous call. Due to the potentially large number of transactions associated with an Item, results are paginated. The `has_more` field specifies if additional calls are necessary to fetch all available transaction updates. Call `/transactions/sync` with the new cursor, pulling all updates, until `has_more` is `false`. When retrieving paginated updates, track both the `next_cursor` from the latest response and the original cursor from the first call in which `has_more` was `true`; if a call to `/transactions/sync` fails when retrieving a paginated update, the entire pagination request loop must be restarted beginning with the cursor for the first page of the update, rather than retrying only the single request that failed. Whenever new or updated transaction data becomes available, `/transactions/sync` will provide these updates. Plaid typically checks for new data multiple times a day, but these checks may occur less frequently, such as once a day, depending on the institution. An Item's `status.transactions.last_successful_update` field will show the timestamp of the most recent successful update. To force Plaid to check for new transactions, use the `/transactions/refresh` endpoint. Note that for newly created Items, data may not be immediately available to `/transactions/sync`. Plaid begins preparing transactions data when the Item is created, but the process can take anywhere from a few seconds to several minutes to complete, depending on the number of transactions available. To be alerted when new data is available, listen for the [`SYNC_UPDATES_AVAILABLE`](https://plaid.com/docs/api/products/transactions/#sync_updates_available) webhook. # @param transactions_sync_request [TransactionsSyncRequest] # @param [Hash] opts the optional parameters # @return [Array<(TransactionsSyncResponse, Integer, Hash)>] TransactionsSyncResponse data, response status code and response headers @@ -8860,7 +9120,7 @@ def transfer_event_sync_with_http_info(transfer_event_sync_request, opts = {}) end # Retrieve a transfer - # The `/transfer/get` fetches information about the transfer corresponding to the given `transfer_id`. + # The `/transfer/get` endpoint fetches information about the transfer corresponding to the given `transfer_id`. # @param transfer_get_request [TransferGetRequest] # @param [Hash] opts the optional parameters # @return [TransferGetResponse] @@ -8870,7 +9130,7 @@ def transfer_get(transfer_get_request, opts = {}) end # Retrieve a transfer - # The `/transfer/get` fetches information about the transfer corresponding to the given `transfer_id`. + # The `/transfer/get` endpoint fetches information about the transfer corresponding to the given `transfer_id`. # @param transfer_get_request [TransferGetRequest] # @param [Hash] opts the optional parameters # @return [Array<(TransferGetResponse, Integer, Hash)>] TransferGetResponse data, response status code and response headers @@ -9184,31 +9444,31 @@ def transfer_migrate_account_with_http_info(transfer_migrate_account_request, op 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] + # Create a new originator + # Use the `/transfer/originator/create` endpoint to create a new originator and return an `originator_client_id`. + # @param transfer_originator_create_request [TransferOriginatorCreateRequest] # @param [Hash] opts the optional parameters - # @return [TransferRepaymentListResponse] - def transfer_repayment_list(transfer_repayment_list_request, opts = {}) - data, _status_code, _headers = transfer_repayment_list_with_http_info(transfer_repayment_list_request, opts) + # @return [TransferOriginatorCreateResponse] + def transfer_originator_create(transfer_originator_create_request, opts = {}) + data, _status_code, _headers = transfer_originator_create_with_http_info(transfer_originator_create_request, opts) data 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] + # Create a new originator + # Use the `/transfer/originator/create` endpoint to create a new originator and return an `originator_client_id`. + # @param transfer_originator_create_request [TransferOriginatorCreateRequest] # @param [Hash] opts the optional parameters - # @return [Array<(TransferRepaymentListResponse, Integer, Hash)>] TransferRepaymentListResponse data, response status code and response headers - def transfer_repayment_list_with_http_info(transfer_repayment_list_request, opts = {}) + # @return [Array<(TransferOriginatorCreateResponse, Integer, Hash)>] TransferOriginatorCreateResponse data, response status code and response headers + def transfer_originator_create_with_http_info(transfer_originator_create_request, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PlaidApi.transfer_repayment_list ...' + @api_client.config.logger.debug 'Calling API: PlaidApi.transfer_originator_create ...' end - # verify the required parameter 'transfer_repayment_list_request' is set - if @api_client.config.client_side_validation && transfer_repayment_list_request.nil? - fail ArgumentError, "Missing the required parameter 'transfer_repayment_list_request' when calling PlaidApi.transfer_repayment_list" + # verify the required parameter 'transfer_originator_create_request' is set + if @api_client.config.client_side_validation && transfer_originator_create_request.nil? + fail ArgumentError, "Missing the required parameter 'transfer_originator_create_request' when calling PlaidApi.transfer_originator_create" end # resource path - local_var_path = '/transfer/repayment/list' + local_var_path = '/transfer/originator/create' # query parameters query_params = opts[:query_params] || {} @@ -9224,16 +9484,16 @@ def transfer_repayment_list_with_http_info(transfer_repayment_list_request, opts form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(transfer_repayment_list_request) + post_body = opts[:debug_body] || @api_client.object_to_http_body(transfer_originator_create_request) # return_type - return_type = opts[:debug_return_type] || 'TransferRepaymentListResponse' + return_type = opts[:debug_return_type] || 'TransferOriginatorCreateResponse' # auth_names auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret'] new_options = opts.merge( - :operation => :"PlaidApi.transfer_repayment_list", + :operation => :"PlaidApi.transfer_originator_create", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -9244,36 +9504,36 @@ def transfer_repayment_list_with_http_info(transfer_repayment_list_request, opts 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_repayment_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: PlaidApi#transfer_originator_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # List the returns included in a repayment - # The `/transfer/repayment/return/list` endpoint retrieves the set of returns that were batched together into the specified repayment. The sum of amounts of returns retrieved by this request equals the amount of the repayment. - # @param transfer_repayment_return_list_request [TransferRepaymentReturnListRequest] + # Get status of an originator's onboarding + # The `/transfer/originator/get` endpoint gets status updates for an originator's onboarding process. This information is also available via the Transfer page on the Plaid dashboard. + # @param transfer_originator_get_request [TransferOriginatorGetRequest] # @param [Hash] opts the optional parameters - # @return [TransferRepaymentReturnListResponse] - def transfer_repayment_return_list(transfer_repayment_return_list_request, opts = {}) - data, _status_code, _headers = transfer_repayment_return_list_with_http_info(transfer_repayment_return_list_request, opts) + # @return [TransferOriginatorGetResponse] + def transfer_originator_get(transfer_originator_get_request, opts = {}) + data, _status_code, _headers = transfer_originator_get_with_http_info(transfer_originator_get_request, opts) data end - # List the returns included in a repayment - # The `/transfer/repayment/return/list` endpoint retrieves the set of returns that were batched together into the specified repayment. The sum of amounts of returns retrieved by this request equals the amount of the repayment. - # @param transfer_repayment_return_list_request [TransferRepaymentReturnListRequest] + # Get status of an originator's onboarding + # The `/transfer/originator/get` endpoint gets status updates for an originator's onboarding process. This information is also available via the Transfer page on the Plaid dashboard. + # @param transfer_originator_get_request [TransferOriginatorGetRequest] # @param [Hash] opts the optional parameters - # @return [Array<(TransferRepaymentReturnListResponse, Integer, Hash)>] TransferRepaymentReturnListResponse data, response status code and response headers - def transfer_repayment_return_list_with_http_info(transfer_repayment_return_list_request, opts = {}) + # @return [Array<(TransferOriginatorGetResponse, Integer, Hash)>] TransferOriginatorGetResponse data, response status code and response headers + def transfer_originator_get_with_http_info(transfer_originator_get_request, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PlaidApi.transfer_repayment_return_list ...' + @api_client.config.logger.debug 'Calling API: PlaidApi.transfer_originator_get ...' end - # verify the required parameter 'transfer_repayment_return_list_request' is set - if @api_client.config.client_side_validation && transfer_repayment_return_list_request.nil? - fail ArgumentError, "Missing the required parameter 'transfer_repayment_return_list_request' when calling PlaidApi.transfer_repayment_return_list" + # verify the required parameter 'transfer_originator_get_request' is set + if @api_client.config.client_side_validation && transfer_originator_get_request.nil? + fail ArgumentError, "Missing the required parameter 'transfer_originator_get_request' when calling PlaidApi.transfer_originator_get" end # resource path - local_var_path = '/transfer/repayment/return/list' + local_var_path = '/transfer/originator/get' # query parameters query_params = opts[:query_params] || {} @@ -9283,22 +9543,22 @@ def transfer_repayment_return_list_with_http_info(transfer_repayment_return_list # 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']) + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'examples']) # form parameters form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(transfer_repayment_return_list_request) + post_body = opts[:debug_body] || @api_client.object_to_http_body(transfer_originator_get_request) # return_type - return_type = opts[:debug_return_type] || 'TransferRepaymentReturnListResponse' + return_type = opts[:debug_return_type] || 'TransferOriginatorGetResponse' # auth_names auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret'] new_options = opts.merge( - :operation => :"PlaidApi.transfer_repayment_return_list", + :operation => :"PlaidApi.transfer_originator_get", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -9309,36 +9569,36 @@ def transfer_repayment_return_list_with_http_info(transfer_repayment_return_list 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_repayment_return_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: PlaidApi#transfer_originator_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Retrieve a sweep - # The `/transfer/sweep/get` endpoint fetches a sweep corresponding to the given `sweep_id`. - # @param transfer_sweep_get_request [TransferSweepGetRequest] + # Get status of all originators' onboarding + # The `/transfer/originator/list` endpoint gets status updates for all of your originators' onboarding. This information is also available via the Plaid dashboard. + # @param transfer_originator_list_request [TransferOriginatorListRequest] # @param [Hash] opts the optional parameters - # @return [TransferSweepGetResponse] - def transfer_sweep_get(transfer_sweep_get_request, opts = {}) - data, _status_code, _headers = transfer_sweep_get_with_http_info(transfer_sweep_get_request, opts) + # @return [TransferOriginatorListResponse] + def transfer_originator_list(transfer_originator_list_request, opts = {}) + data, _status_code, _headers = transfer_originator_list_with_http_info(transfer_originator_list_request, opts) data end - # Retrieve a sweep - # The `/transfer/sweep/get` endpoint fetches a sweep corresponding to the given `sweep_id`. - # @param transfer_sweep_get_request [TransferSweepGetRequest] + # Get status of all originators' onboarding + # The `/transfer/originator/list` endpoint gets status updates for all of your originators' onboarding. This information is also available via the Plaid dashboard. + # @param transfer_originator_list_request [TransferOriginatorListRequest] # @param [Hash] opts the optional parameters - # @return [Array<(TransferSweepGetResponse, Integer, Hash)>] TransferSweepGetResponse data, response status code and response headers - def transfer_sweep_get_with_http_info(transfer_sweep_get_request, opts = {}) + # @return [Array<(TransferOriginatorListResponse, Integer, Hash)>] TransferOriginatorListResponse data, response status code and response headers + def transfer_originator_list_with_http_info(transfer_originator_list_request, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PlaidApi.transfer_sweep_get ...' + @api_client.config.logger.debug 'Calling API: PlaidApi.transfer_originator_list ...' end - # verify the required parameter 'transfer_sweep_get_request' is set - if @api_client.config.client_side_validation && transfer_sweep_get_request.nil? - fail ArgumentError, "Missing the required parameter 'transfer_sweep_get_request' when calling PlaidApi.transfer_sweep_get" + # verify the required parameter 'transfer_originator_list_request' is set + if @api_client.config.client_side_validation && transfer_originator_list_request.nil? + fail ArgumentError, "Missing the required parameter 'transfer_originator_list_request' when calling PlaidApi.transfer_originator_list" end # resource path - local_var_path = '/transfer/sweep/get' + local_var_path = '/transfer/originator/list' # query parameters query_params = opts[:query_params] || {} @@ -9354,16 +9614,16 @@ def transfer_sweep_get_with_http_info(transfer_sweep_get_request, opts = {}) form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(transfer_sweep_get_request) + post_body = opts[:debug_body] || @api_client.object_to_http_body(transfer_originator_list_request) # return_type - return_type = opts[:debug_return_type] || 'TransferSweepGetResponse' + return_type = opts[:debug_return_type] || 'TransferOriginatorListResponse' # auth_names auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret'] new_options = opts.merge( - :operation => :"PlaidApi.transfer_sweep_get", + :operation => :"PlaidApi.transfer_originator_list", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -9374,36 +9634,36 @@ def transfer_sweep_get_with_http_info(transfer_sweep_get_request, opts = {}) 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_sweep_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: PlaidApi#transfer_originator_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # List sweeps - # The `/transfer/sweep/list` endpoint fetches sweeps matching the given filters. - # @param transfer_sweep_list_request [TransferSweepListRequest] + # Generate a Plaid-hosted onboarding UI URL. + # The `/transfer/questionnaire/create` endpoint generates a Plaid-hosted onboarding UI URL. Redirect the originator to this URL to provide their due diligence information and agree to Plaid’s terms for ACH money movement. + # @param transfer_questionnaire_create_request [TransferQuestionnaireCreateRequest] # @param [Hash] opts the optional parameters - # @return [TransferSweepListResponse] - def transfer_sweep_list(transfer_sweep_list_request, opts = {}) - data, _status_code, _headers = transfer_sweep_list_with_http_info(transfer_sweep_list_request, opts) + # @return [TransferQuestionnaireCreateResponse] + def transfer_questionnaire_create(transfer_questionnaire_create_request, opts = {}) + data, _status_code, _headers = transfer_questionnaire_create_with_http_info(transfer_questionnaire_create_request, opts) data end - # List sweeps - # The `/transfer/sweep/list` endpoint fetches sweeps matching the given filters. - # @param transfer_sweep_list_request [TransferSweepListRequest] + # Generate a Plaid-hosted onboarding UI URL. + # The `/transfer/questionnaire/create` endpoint generates a Plaid-hosted onboarding UI URL. Redirect the originator to this URL to provide their due diligence information and agree to Plaid’s terms for ACH money movement. + # @param transfer_questionnaire_create_request [TransferQuestionnaireCreateRequest] # @param [Hash] opts the optional parameters - # @return [Array<(TransferSweepListResponse, Integer, Hash)>] TransferSweepListResponse data, response status code and response headers - def transfer_sweep_list_with_http_info(transfer_sweep_list_request, opts = {}) + # @return [Array<(TransferQuestionnaireCreateResponse, Integer, Hash)>] TransferQuestionnaireCreateResponse data, response status code and response headers + def transfer_questionnaire_create_with_http_info(transfer_questionnaire_create_request, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PlaidApi.transfer_sweep_list ...' + @api_client.config.logger.debug 'Calling API: PlaidApi.transfer_questionnaire_create ...' end - # verify the required parameter 'transfer_sweep_list_request' is set - if @api_client.config.client_side_validation && transfer_sweep_list_request.nil? - fail ArgumentError, "Missing the required parameter 'transfer_sweep_list_request' when calling PlaidApi.transfer_sweep_list" + # verify the required parameter 'transfer_questionnaire_create_request' is set + if @api_client.config.client_side_validation && transfer_questionnaire_create_request.nil? + fail ArgumentError, "Missing the required parameter 'transfer_questionnaire_create_request' when calling PlaidApi.transfer_questionnaire_create" end # resource path - local_var_path = '/transfer/sweep/list' + local_var_path = '/transfer/questionnaire/create' # query parameters query_params = opts[:query_params] || {} @@ -9419,16 +9679,16 @@ def transfer_sweep_list_with_http_info(transfer_sweep_list_request, opts = {}) form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(transfer_sweep_list_request) + post_body = opts[:debug_body] || @api_client.object_to_http_body(transfer_questionnaire_create_request) # return_type - return_type = opts[:debug_return_type] || 'TransferSweepListResponse' + return_type = opts[:debug_return_type] || 'TransferQuestionnaireCreateResponse' # auth_names auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret'] new_options = opts.merge( - :operation => :"PlaidApi.transfer_sweep_list", + :operation => :"PlaidApi.transfer_questionnaire_create", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -9439,36 +9699,36 @@ def transfer_sweep_list_with_http_info(transfer_sweep_list_request, opts = {}) 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_sweep_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: PlaidApi#transfer_questionnaire_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Create user - # 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. If you call the endpoint multiple times with the same `client_user_id`, the first creation call will succeed and the rest will fail with an error message indicating that the user has been created for the given `client_user_id`. Ensure that you store the `user_token` along with your user's identifier in your database, as it is not possible to retrieve a previously created `user_token`. - # @param user_create_request [UserCreateRequest] + # Cancel a recurring transfer. + # Use the `/transfer/recurring/cancel` endpoint to cancel a recurring transfer. Scheduled transfer that hasn't been submitted to bank will be cancelled. + # @param transfer_recurring_cancel_request [TransferRecurringCancelRequest] # @param [Hash] opts the optional parameters - # @return [UserCreateResponse] - def user_create(user_create_request, opts = {}) - data, _status_code, _headers = user_create_with_http_info(user_create_request, opts) + # @return [TransferRecurringCancelResponse] + def transfer_recurring_cancel(transfer_recurring_cancel_request, opts = {}) + data, _status_code, _headers = transfer_recurring_cancel_with_http_info(transfer_recurring_cancel_request, opts) data end - # Create user - # 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. If you call the endpoint multiple times with the same `client_user_id`, the first creation call will succeed and the rest will fail with an error message indicating that the user has been created for the given `client_user_id`. Ensure that you store the `user_token` along with your user's identifier in your database, as it is not possible to retrieve a previously created `user_token`. - # @param user_create_request [UserCreateRequest] + # Cancel a recurring transfer. + # Use the `/transfer/recurring/cancel` endpoint to cancel a recurring transfer. Scheduled transfer that hasn't been submitted to bank will be cancelled. + # @param transfer_recurring_cancel_request [TransferRecurringCancelRequest] # @param [Hash] opts the optional parameters - # @return [Array<(UserCreateResponse, Integer, Hash)>] UserCreateResponse data, response status code and response headers - def user_create_with_http_info(user_create_request, opts = {}) + # @return [Array<(TransferRecurringCancelResponse, Integer, Hash)>] TransferRecurringCancelResponse data, response status code and response headers + def transfer_recurring_cancel_with_http_info(transfer_recurring_cancel_request, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PlaidApi.user_create ...' + @api_client.config.logger.debug 'Calling API: PlaidApi.transfer_recurring_cancel ...' end - # verify the required parameter 'user_create_request' is set - if @api_client.config.client_side_validation && user_create_request.nil? - fail ArgumentError, "Missing the required parameter 'user_create_request' when calling PlaidApi.user_create" + # verify the required parameter 'transfer_recurring_cancel_request' is set + if @api_client.config.client_side_validation && transfer_recurring_cancel_request.nil? + fail ArgumentError, "Missing the required parameter 'transfer_recurring_cancel_request' when calling PlaidApi.transfer_recurring_cancel" end # resource path - local_var_path = '/user/create' + local_var_path = '/transfer/recurring/cancel' # query parameters query_params = opts[:query_params] || {} @@ -9484,16 +9744,16 @@ def user_create_with_http_info(user_create_request, opts = {}) form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(user_create_request) + post_body = opts[:debug_body] || @api_client.object_to_http_body(transfer_recurring_cancel_request) # return_type - return_type = opts[:debug_return_type] || 'UserCreateResponse' + return_type = opts[:debug_return_type] || 'TransferRecurringCancelResponse' # auth_names auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret'] new_options = opts.merge( - :operation => :"PlaidApi.user_create", + :operation => :"PlaidApi.transfer_recurring_cancel", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -9504,36 +9764,36 @@ def user_create_with_http_info(user_create_request, opts = {}) 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#user_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: PlaidApi#transfer_recurring_cancel\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Create an e-wallet - # Create an e-wallet. The response is the newly created e-wallet object. - # @param wallet_create_request [WalletCreateRequest] + # Create a recurring transfer + # Use the `/transfer/recurring/create` endpoint to initiate a new recurring transfer. + # @param transfer_recurring_create_request [TransferRecurringCreateRequest] # @param [Hash] opts the optional parameters - # @return [WalletCreateResponse] - def wallet_create(wallet_create_request, opts = {}) - data, _status_code, _headers = wallet_create_with_http_info(wallet_create_request, opts) + # @return [TransferRecurringCreateResponse] + def transfer_recurring_create(transfer_recurring_create_request, opts = {}) + data, _status_code, _headers = transfer_recurring_create_with_http_info(transfer_recurring_create_request, opts) data end - # Create an e-wallet - # Create an e-wallet. The response is the newly created e-wallet object. - # @param wallet_create_request [WalletCreateRequest] + # Create a recurring transfer + # Use the `/transfer/recurring/create` endpoint to initiate a new recurring transfer. + # @param transfer_recurring_create_request [TransferRecurringCreateRequest] # @param [Hash] opts the optional parameters - # @return [Array<(WalletCreateResponse, Integer, Hash)>] WalletCreateResponse data, response status code and response headers - def wallet_create_with_http_info(wallet_create_request, opts = {}) + # @return [Array<(TransferRecurringCreateResponse, Integer, Hash)>] TransferRecurringCreateResponse data, response status code and response headers + def transfer_recurring_create_with_http_info(transfer_recurring_create_request, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PlaidApi.wallet_create ...' + @api_client.config.logger.debug 'Calling API: PlaidApi.transfer_recurring_create ...' end - # verify the required parameter 'wallet_create_request' is set - if @api_client.config.client_side_validation && wallet_create_request.nil? - fail ArgumentError, "Missing the required parameter 'wallet_create_request' when calling PlaidApi.wallet_create" + # verify the required parameter 'transfer_recurring_create_request' is set + if @api_client.config.client_side_validation && transfer_recurring_create_request.nil? + fail ArgumentError, "Missing the required parameter 'transfer_recurring_create_request' when calling PlaidApi.transfer_recurring_create" end # resource path - local_var_path = '/wallet/create' + local_var_path = '/transfer/recurring/create' # query parameters query_params = opts[:query_params] || {} @@ -9549,16 +9809,16 @@ def wallet_create_with_http_info(wallet_create_request, opts = {}) form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(wallet_create_request) + post_body = opts[:debug_body] || @api_client.object_to_http_body(transfer_recurring_create_request) # return_type - return_type = opts[:debug_return_type] || 'WalletCreateResponse' + return_type = opts[:debug_return_type] || 'TransferRecurringCreateResponse' # auth_names auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret'] new_options = opts.merge( - :operation => :"PlaidApi.wallet_create", + :operation => :"PlaidApi.transfer_recurring_create", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -9569,36 +9829,36 @@ def wallet_create_with_http_info(wallet_create_request, opts = {}) 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#wallet_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: PlaidApi#transfer_recurring_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Fetch an e-wallet - # Fetch an e-wallet. The response includes the current balance. - # @param wallet_get_request [WalletGetRequest] + # Retrieve a recurring transfer + # The `/transfer/recurring/get` fetches information about the recurring transfer corresponding to the given `recurring_transfer_id`. + # @param transfer_recurring_get_request [TransferRecurringGetRequest] # @param [Hash] opts the optional parameters - # @return [WalletGetResponse] - def wallet_get(wallet_get_request, opts = {}) - data, _status_code, _headers = wallet_get_with_http_info(wallet_get_request, opts) + # @return [TransferRecurringGetResponse] + def transfer_recurring_get(transfer_recurring_get_request, opts = {}) + data, _status_code, _headers = transfer_recurring_get_with_http_info(transfer_recurring_get_request, opts) data end - # Fetch an e-wallet - # Fetch an e-wallet. The response includes the current balance. - # @param wallet_get_request [WalletGetRequest] + # Retrieve a recurring transfer + # The `/transfer/recurring/get` fetches information about the recurring transfer corresponding to the given `recurring_transfer_id`. + # @param transfer_recurring_get_request [TransferRecurringGetRequest] # @param [Hash] opts the optional parameters - # @return [Array<(WalletGetResponse, Integer, Hash)>] WalletGetResponse data, response status code and response headers - def wallet_get_with_http_info(wallet_get_request, opts = {}) + # @return [Array<(TransferRecurringGetResponse, Integer, Hash)>] TransferRecurringGetResponse data, response status code and response headers + def transfer_recurring_get_with_http_info(transfer_recurring_get_request, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PlaidApi.wallet_get ...' + @api_client.config.logger.debug 'Calling API: PlaidApi.transfer_recurring_get ...' end - # verify the required parameter 'wallet_get_request' is set - if @api_client.config.client_side_validation && wallet_get_request.nil? - fail ArgumentError, "Missing the required parameter 'wallet_get_request' when calling PlaidApi.wallet_get" + # verify the required parameter 'transfer_recurring_get_request' is set + if @api_client.config.client_side_validation && transfer_recurring_get_request.nil? + fail ArgumentError, "Missing the required parameter 'transfer_recurring_get_request' when calling PlaidApi.transfer_recurring_get" end # resource path - local_var_path = '/wallet/get' + local_var_path = '/transfer/recurring/get' # query parameters query_params = opts[:query_params] || {} @@ -9614,16 +9874,16 @@ def wallet_get_with_http_info(wallet_get_request, opts = {}) form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(wallet_get_request) + post_body = opts[:debug_body] || @api_client.object_to_http_body(transfer_recurring_get_request) # return_type - return_type = opts[:debug_return_type] || 'WalletGetResponse' + return_type = opts[:debug_return_type] || 'TransferRecurringGetResponse' # auth_names auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret'] new_options = opts.merge( - :operation => :"PlaidApi.wallet_get", + :operation => :"PlaidApi.transfer_recurring_get", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -9634,36 +9894,36 @@ def wallet_get_with_http_info(wallet_get_request, opts = {}) 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#wallet_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: PlaidApi#transfer_recurring_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Fetch a list of e-wallets - # This endpoint lists all e-wallets in descending order of creation. - # @param wallet_list_request [WalletListRequest] + # List recurring transfers + # Use the `/transfer/recurring/list` endpoint to see a list of all your recurring transfers and their statuses. Results are paginated; use the `count` and `offset` query parameters to retrieve the desired recurring transfers. + # @param transfer_recurring_list_request [TransferRecurringListRequest] # @param [Hash] opts the optional parameters - # @return [WalletListResponse] - def wallet_list(wallet_list_request, opts = {}) - data, _status_code, _headers = wallet_list_with_http_info(wallet_list_request, opts) + # @return [TransferRecurringListResponse] + def transfer_recurring_list(transfer_recurring_list_request, opts = {}) + data, _status_code, _headers = transfer_recurring_list_with_http_info(transfer_recurring_list_request, opts) data end - # Fetch a list of e-wallets - # This endpoint lists all e-wallets in descending order of creation. - # @param wallet_list_request [WalletListRequest] + # List recurring transfers + # Use the `/transfer/recurring/list` endpoint to see a list of all your recurring transfers and their statuses. Results are paginated; use the `count` and `offset` query parameters to retrieve the desired recurring transfers. + # @param transfer_recurring_list_request [TransferRecurringListRequest] # @param [Hash] opts the optional parameters - # @return [Array<(WalletListResponse, Integer, Hash)>] WalletListResponse data, response status code and response headers - def wallet_list_with_http_info(wallet_list_request, opts = {}) + # @return [Array<(TransferRecurringListResponse, Integer, Hash)>] TransferRecurringListResponse data, response status code and response headers + def transfer_recurring_list_with_http_info(transfer_recurring_list_request, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PlaidApi.wallet_list ...' + @api_client.config.logger.debug 'Calling API: PlaidApi.transfer_recurring_list ...' end - # verify the required parameter 'wallet_list_request' is set - if @api_client.config.client_side_validation && wallet_list_request.nil? - fail ArgumentError, "Missing the required parameter 'wallet_list_request' when calling PlaidApi.wallet_list" + # verify the required parameter 'transfer_recurring_list_request' is set + if @api_client.config.client_side_validation && transfer_recurring_list_request.nil? + fail ArgumentError, "Missing the required parameter 'transfer_recurring_list_request' when calling PlaidApi.transfer_recurring_list" end # resource path - local_var_path = '/wallet/list' + local_var_path = '/transfer/recurring/list' # query parameters query_params = opts[:query_params] || {} @@ -9679,16 +9939,16 @@ def wallet_list_with_http_info(wallet_list_request, opts = {}) form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(wallet_list_request) + post_body = opts[:debug_body] || @api_client.object_to_http_body(transfer_recurring_list_request) # return_type - return_type = opts[:debug_return_type] || 'WalletListResponse' + return_type = opts[:debug_return_type] || 'TransferRecurringListResponse' # auth_names auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret'] new_options = opts.merge( - :operation => :"PlaidApi.wallet_list", + :operation => :"PlaidApi.transfer_recurring_list", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -9699,36 +9959,36 @@ def wallet_list_with_http_info(wallet_list_request, opts = {}) 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#wallet_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: PlaidApi#transfer_recurring_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Execute a transaction using an e-wallet - # Execute a transaction using the specified e-wallet. Specify the e-wallet to debit from, the counterparty to credit to, the idempotency key to prevent duplicate transactions, the amount and reference for the transaction. Transactions will settle in seconds to several days, depending on the underlying payment rail. - # @param wallet_transaction_execute_request [WalletTransactionExecuteRequest] + # Cancel a refund + # Use the `/transfer/refund/cancel` endpoint to cancel a refund. A refund is eligible for cancellation if it has not yet been submitted to the payment network. + # @param transfer_refund_cancel_request [TransferRefundCancelRequest] # @param [Hash] opts the optional parameters - # @return [WalletTransactionExecuteResponse] - def wallet_transaction_execute(wallet_transaction_execute_request, opts = {}) - data, _status_code, _headers = wallet_transaction_execute_with_http_info(wallet_transaction_execute_request, opts) + # @return [TransferRefundCancelResponse] + def transfer_refund_cancel(transfer_refund_cancel_request, opts = {}) + data, _status_code, _headers = transfer_refund_cancel_with_http_info(transfer_refund_cancel_request, opts) data end - # Execute a transaction using an e-wallet - # Execute a transaction using the specified e-wallet. Specify the e-wallet to debit from, the counterparty to credit to, the idempotency key to prevent duplicate transactions, the amount and reference for the transaction. Transactions will settle in seconds to several days, depending on the underlying payment rail. - # @param wallet_transaction_execute_request [WalletTransactionExecuteRequest] + # Cancel a refund + # Use the `/transfer/refund/cancel` endpoint to cancel a refund. A refund is eligible for cancellation if it has not yet been submitted to the payment network. + # @param transfer_refund_cancel_request [TransferRefundCancelRequest] # @param [Hash] opts the optional parameters - # @return [Array<(WalletTransactionExecuteResponse, Integer, Hash)>] WalletTransactionExecuteResponse data, response status code and response headers - def wallet_transaction_execute_with_http_info(wallet_transaction_execute_request, opts = {}) + # @return [Array<(TransferRefundCancelResponse, Integer, Hash)>] TransferRefundCancelResponse data, response status code and response headers + def transfer_refund_cancel_with_http_info(transfer_refund_cancel_request, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PlaidApi.wallet_transaction_execute ...' + @api_client.config.logger.debug 'Calling API: PlaidApi.transfer_refund_cancel ...' end - # verify the required parameter 'wallet_transaction_execute_request' is set - if @api_client.config.client_side_validation && wallet_transaction_execute_request.nil? - fail ArgumentError, "Missing the required parameter 'wallet_transaction_execute_request' when calling PlaidApi.wallet_transaction_execute" + # verify the required parameter 'transfer_refund_cancel_request' is set + if @api_client.config.client_side_validation && transfer_refund_cancel_request.nil? + fail ArgumentError, "Missing the required parameter 'transfer_refund_cancel_request' when calling PlaidApi.transfer_refund_cancel" end # resource path - local_var_path = '/wallet/transaction/execute' + local_var_path = '/transfer/refund/cancel' # query parameters query_params = opts[:query_params] || {} @@ -9744,16 +10004,16 @@ def wallet_transaction_execute_with_http_info(wallet_transaction_execute_request form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(wallet_transaction_execute_request) + post_body = opts[:debug_body] || @api_client.object_to_http_body(transfer_refund_cancel_request) # return_type - return_type = opts[:debug_return_type] || 'WalletTransactionExecuteResponse' + return_type = opts[:debug_return_type] || 'TransferRefundCancelResponse' # auth_names auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret'] new_options = opts.merge( - :operation => :"PlaidApi.wallet_transaction_execute", + :operation => :"PlaidApi.transfer_refund_cancel", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -9764,27 +10024,742 @@ def wallet_transaction_execute_with_http_info(wallet_transaction_execute_request 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#wallet_transaction_execute\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: PlaidApi#transfer_refund_cancel\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Fetch an e-wallet transaction - # Fetch a specific e-wallet transaction - # @param wallet_transaction_get_request [WalletTransactionGetRequest] + # Create a refund + # Use the `/transfer/refund/create` endpoint to create a refund for a transfer. A transfer can be refunded if the transfer was initiated in the past 180 days. Processing of the refund will not occur until at least 3 business days following the transfer's settlement date, plus any hold/settlement delays. This 3-day window helps better protect your business from regular ACH returns. Consumer initiated returns (unauthorized returns) could still happen for about 60 days from the settlement date. If the original transfer is canceled, returned or failed, all pending refunds will automatically be canceled. Processed refunds cannot be revoked. + # @param transfer_refund_create_request [TransferRefundCreateRequest] # @param [Hash] opts the optional parameters - # @return [WalletTransactionGetResponse] - def wallet_transaction_get(wallet_transaction_get_request, opts = {}) - data, _status_code, _headers = wallet_transaction_get_with_http_info(wallet_transaction_get_request, opts) + # @return [TransferRefundCreateResponse] + def transfer_refund_create(transfer_refund_create_request, opts = {}) + data, _status_code, _headers = transfer_refund_create_with_http_info(transfer_refund_create_request, opts) data end - # Fetch an e-wallet transaction - # Fetch a specific e-wallet transaction - # @param wallet_transaction_get_request [WalletTransactionGetRequest] + # Create a refund + # Use the `/transfer/refund/create` endpoint to create a refund for a transfer. A transfer can be refunded if the transfer was initiated in the past 180 days. Processing of the refund will not occur until at least 3 business days following the transfer's settlement date, plus any hold/settlement delays. This 3-day window helps better protect your business from regular ACH returns. Consumer initiated returns (unauthorized returns) could still happen for about 60 days from the settlement date. If the original transfer is canceled, returned or failed, all pending refunds will automatically be canceled. Processed refunds cannot be revoked. + # @param transfer_refund_create_request [TransferRefundCreateRequest] # @param [Hash] opts the optional parameters - # @return [Array<(WalletTransactionGetResponse, Integer, Hash)>] WalletTransactionGetResponse data, response status code and response headers - def wallet_transaction_get_with_http_info(wallet_transaction_get_request, opts = {}) + # @return [Array<(TransferRefundCreateResponse, Integer, Hash)>] TransferRefundCreateResponse data, response status code and response headers + def transfer_refund_create_with_http_info(transfer_refund_create_request, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: PlaidApi.transfer_refund_create ...' + end + # verify the required parameter 'transfer_refund_create_request' is set + if @api_client.config.client_side_validation && transfer_refund_create_request.nil? + fail ArgumentError, "Missing the required parameter 'transfer_refund_create_request' when calling PlaidApi.transfer_refund_create" + end + # resource path + local_var_path = '/transfer/refund/create' + + # 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_refund_create_request) + + # return_type + return_type = opts[:debug_return_type] || 'TransferRefundCreateResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret'] + + new_options = opts.merge( + :operation => :"PlaidApi.transfer_refund_create", + :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_refund_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Retrieve a refund + # The `/transfer/refund/get` endpoint fetches information about the refund corresponding to the given `refund_id`. + # @param transfer_refund_get_request [TransferRefundGetRequest] + # @param [Hash] opts the optional parameters + # @return [TransferRefundGetResponse] + def transfer_refund_get(transfer_refund_get_request, opts = {}) + data, _status_code, _headers = transfer_refund_get_with_http_info(transfer_refund_get_request, opts) + data + end + + # Retrieve a refund + # The `/transfer/refund/get` endpoint fetches information about the refund corresponding to the given `refund_id`. + # @param transfer_refund_get_request [TransferRefundGetRequest] + # @param [Hash] opts the optional parameters + # @return [Array<(TransferRefundGetResponse, Integer, Hash)>] TransferRefundGetResponse data, response status code and response headers + def transfer_refund_get_with_http_info(transfer_refund_get_request, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: PlaidApi.transfer_refund_get ...' + end + # verify the required parameter 'transfer_refund_get_request' is set + if @api_client.config.client_side_validation && transfer_refund_get_request.nil? + fail ArgumentError, "Missing the required parameter 'transfer_refund_get_request' when calling PlaidApi.transfer_refund_get" + end + # resource path + local_var_path = '/transfer/refund/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(transfer_refund_get_request) + + # return_type + return_type = opts[:debug_return_type] || 'TransferRefundGetResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret'] + + new_options = opts.merge( + :operation => :"PlaidApi.transfer_refund_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#transfer_refund_get\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] + # @param [Hash] opts the optional parameters + # @return [TransferRepaymentListResponse] + def transfer_repayment_list(transfer_repayment_list_request, opts = {}) + data, _status_code, _headers = transfer_repayment_list_with_http_info(transfer_repayment_list_request, opts) + data + 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] + # @param [Hash] opts the optional parameters + # @return [Array<(TransferRepaymentListResponse, Integer, Hash)>] TransferRepaymentListResponse data, response status code and response headers + def transfer_repayment_list_with_http_info(transfer_repayment_list_request, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: PlaidApi.transfer_repayment_list ...' + end + # verify the required parameter 'transfer_repayment_list_request' is set + if @api_client.config.client_side_validation && transfer_repayment_list_request.nil? + fail ArgumentError, "Missing the required parameter 'transfer_repayment_list_request' when calling PlaidApi.transfer_repayment_list" + end + # resource path + local_var_path = '/transfer/repayment/list' + + # 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_repayment_list_request) + + # return_type + return_type = opts[:debug_return_type] || 'TransferRepaymentListResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret'] + + new_options = opts.merge( + :operation => :"PlaidApi.transfer_repayment_list", + :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_repayment_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # List the returns included in a repayment + # The `/transfer/repayment/return/list` endpoint retrieves the set of returns that were batched together into the specified repayment. The sum of amounts of returns retrieved by this request equals the amount of the repayment. + # @param transfer_repayment_return_list_request [TransferRepaymentReturnListRequest] + # @param [Hash] opts the optional parameters + # @return [TransferRepaymentReturnListResponse] + def transfer_repayment_return_list(transfer_repayment_return_list_request, opts = {}) + data, _status_code, _headers = transfer_repayment_return_list_with_http_info(transfer_repayment_return_list_request, opts) + data + end + + # List the returns included in a repayment + # The `/transfer/repayment/return/list` endpoint retrieves the set of returns that were batched together into the specified repayment. The sum of amounts of returns retrieved by this request equals the amount of the repayment. + # @param transfer_repayment_return_list_request [TransferRepaymentReturnListRequest] + # @param [Hash] opts the optional parameters + # @return [Array<(TransferRepaymentReturnListResponse, Integer, Hash)>] TransferRepaymentReturnListResponse data, response status code and response headers + def transfer_repayment_return_list_with_http_info(transfer_repayment_return_list_request, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: PlaidApi.transfer_repayment_return_list ...' + end + # verify the required parameter 'transfer_repayment_return_list_request' is set + if @api_client.config.client_side_validation && transfer_repayment_return_list_request.nil? + fail ArgumentError, "Missing the required parameter 'transfer_repayment_return_list_request' when calling PlaidApi.transfer_repayment_return_list" + end + # resource path + local_var_path = '/transfer/repayment/return/list' + + # 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_repayment_return_list_request) + + # return_type + return_type = opts[:debug_return_type] || 'TransferRepaymentReturnListResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret'] + + new_options = opts.merge( + :operation => :"PlaidApi.transfer_repayment_return_list", + :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_repayment_return_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Retrieve a sweep + # The `/transfer/sweep/get` endpoint fetches a sweep corresponding to the given `sweep_id`. + # @param transfer_sweep_get_request [TransferSweepGetRequest] + # @param [Hash] opts the optional parameters + # @return [TransferSweepGetResponse] + def transfer_sweep_get(transfer_sweep_get_request, opts = {}) + data, _status_code, _headers = transfer_sweep_get_with_http_info(transfer_sweep_get_request, opts) + data + end + + # Retrieve a sweep + # The `/transfer/sweep/get` endpoint fetches a sweep corresponding to the given `sweep_id`. + # @param transfer_sweep_get_request [TransferSweepGetRequest] + # @param [Hash] opts the optional parameters + # @return [Array<(TransferSweepGetResponse, Integer, Hash)>] TransferSweepGetResponse data, response status code and response headers + def transfer_sweep_get_with_http_info(transfer_sweep_get_request, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: PlaidApi.transfer_sweep_get ...' + end + # verify the required parameter 'transfer_sweep_get_request' is set + if @api_client.config.client_side_validation && transfer_sweep_get_request.nil? + fail ArgumentError, "Missing the required parameter 'transfer_sweep_get_request' when calling PlaidApi.transfer_sweep_get" + end + # resource path + local_var_path = '/transfer/sweep/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(transfer_sweep_get_request) + + # return_type + return_type = opts[:debug_return_type] || 'TransferSweepGetResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret'] + + new_options = opts.merge( + :operation => :"PlaidApi.transfer_sweep_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#transfer_sweep_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # List sweeps + # The `/transfer/sweep/list` endpoint fetches sweeps matching the given filters. + # @param transfer_sweep_list_request [TransferSweepListRequest] + # @param [Hash] opts the optional parameters + # @return [TransferSweepListResponse] + def transfer_sweep_list(transfer_sweep_list_request, opts = {}) + data, _status_code, _headers = transfer_sweep_list_with_http_info(transfer_sweep_list_request, opts) + data + end + + # List sweeps + # The `/transfer/sweep/list` endpoint fetches sweeps matching the given filters. + # @param transfer_sweep_list_request [TransferSweepListRequest] + # @param [Hash] opts the optional parameters + # @return [Array<(TransferSweepListResponse, Integer, Hash)>] TransferSweepListResponse data, response status code and response headers + def transfer_sweep_list_with_http_info(transfer_sweep_list_request, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: PlaidApi.transfer_sweep_list ...' + end + # verify the required parameter 'transfer_sweep_list_request' is set + if @api_client.config.client_side_validation && transfer_sweep_list_request.nil? + fail ArgumentError, "Missing the required parameter 'transfer_sweep_list_request' when calling PlaidApi.transfer_sweep_list" + end + # resource path + local_var_path = '/transfer/sweep/list' + + # 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_sweep_list_request) + + # return_type + return_type = opts[:debug_return_type] || 'TransferSweepListResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret'] + + new_options = opts.merge( + :operation => :"PlaidApi.transfer_sweep_list", + :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_sweep_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Create user + # 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. If you call the endpoint multiple times with the same `client_user_id`, the first creation call will succeed and the rest will fail with an error message indicating that the user has been created for the given `client_user_id`. Ensure that you store the `user_token` along with your user's identifier in your database, as it is not possible to retrieve a previously created `user_token`. + # @param user_create_request [UserCreateRequest] + # @param [Hash] opts the optional parameters + # @return [UserCreateResponse] + def user_create(user_create_request, opts = {}) + data, _status_code, _headers = user_create_with_http_info(user_create_request, opts) + data + end + + # Create user + # 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. If you call the endpoint multiple times with the same `client_user_id`, the first creation call will succeed and the rest will fail with an error message indicating that the user has been created for the given `client_user_id`. Ensure that you store the `user_token` along with your user's identifier in your database, as it is not possible to retrieve a previously created `user_token`. + # @param user_create_request [UserCreateRequest] + # @param [Hash] opts the optional parameters + # @return [Array<(UserCreateResponse, Integer, Hash)>] UserCreateResponse data, response status code and response headers + def user_create_with_http_info(user_create_request, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: PlaidApi.user_create ...' + end + # verify the required parameter 'user_create_request' is set + if @api_client.config.client_side_validation && user_create_request.nil? + fail ArgumentError, "Missing the required parameter 'user_create_request' when calling PlaidApi.user_create" + end + # resource path + local_var_path = '/user/create' + + # 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(user_create_request) + + # return_type + return_type = opts[:debug_return_type] || 'UserCreateResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret'] + + new_options = opts.merge( + :operation => :"PlaidApi.user_create", + :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#user_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Create an e-wallet + # Create an e-wallet. The response is the newly created e-wallet object. + # @param wallet_create_request [WalletCreateRequest] + # @param [Hash] opts the optional parameters + # @return [WalletCreateResponse] + def wallet_create(wallet_create_request, opts = {}) + data, _status_code, _headers = wallet_create_with_http_info(wallet_create_request, opts) + data + end + + # Create an e-wallet + # Create an e-wallet. The response is the newly created e-wallet object. + # @param wallet_create_request [WalletCreateRequest] + # @param [Hash] opts the optional parameters + # @return [Array<(WalletCreateResponse, Integer, Hash)>] WalletCreateResponse data, response status code and response headers + def wallet_create_with_http_info(wallet_create_request, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: PlaidApi.wallet_create ...' + end + # verify the required parameter 'wallet_create_request' is set + if @api_client.config.client_side_validation && wallet_create_request.nil? + fail ArgumentError, "Missing the required parameter 'wallet_create_request' when calling PlaidApi.wallet_create" + end + # resource path + local_var_path = '/wallet/create' + + # 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(wallet_create_request) + + # return_type + return_type = opts[:debug_return_type] || 'WalletCreateResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret'] + + new_options = opts.merge( + :operation => :"PlaidApi.wallet_create", + :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#wallet_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Fetch an e-wallet + # Fetch an e-wallet. The response includes the current balance. + # @param wallet_get_request [WalletGetRequest] + # @param [Hash] opts the optional parameters + # @return [WalletGetResponse] + def wallet_get(wallet_get_request, opts = {}) + data, _status_code, _headers = wallet_get_with_http_info(wallet_get_request, opts) + data + end + + # Fetch an e-wallet + # Fetch an e-wallet. The response includes the current balance. + # @param wallet_get_request [WalletGetRequest] + # @param [Hash] opts the optional parameters + # @return [Array<(WalletGetResponse, Integer, Hash)>] WalletGetResponse data, response status code and response headers + def wallet_get_with_http_info(wallet_get_request, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: PlaidApi.wallet_get ...' + end + # verify the required parameter 'wallet_get_request' is set + if @api_client.config.client_side_validation && wallet_get_request.nil? + fail ArgumentError, "Missing the required parameter 'wallet_get_request' when calling PlaidApi.wallet_get" + end + # resource path + local_var_path = '/wallet/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(wallet_get_request) + + # return_type + return_type = opts[:debug_return_type] || 'WalletGetResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret'] + + new_options = opts.merge( + :operation => :"PlaidApi.wallet_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#wallet_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Fetch a list of e-wallets + # This endpoint lists all e-wallets in descending order of creation. + # @param wallet_list_request [WalletListRequest] + # @param [Hash] opts the optional parameters + # @return [WalletListResponse] + def wallet_list(wallet_list_request, opts = {}) + data, _status_code, _headers = wallet_list_with_http_info(wallet_list_request, opts) + data + end + + # Fetch a list of e-wallets + # This endpoint lists all e-wallets in descending order of creation. + # @param wallet_list_request [WalletListRequest] + # @param [Hash] opts the optional parameters + # @return [Array<(WalletListResponse, Integer, Hash)>] WalletListResponse data, response status code and response headers + def wallet_list_with_http_info(wallet_list_request, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: PlaidApi.wallet_list ...' + end + # verify the required parameter 'wallet_list_request' is set + if @api_client.config.client_side_validation && wallet_list_request.nil? + fail ArgumentError, "Missing the required parameter 'wallet_list_request' when calling PlaidApi.wallet_list" + end + # resource path + local_var_path = '/wallet/list' + + # 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(wallet_list_request) + + # return_type + return_type = opts[:debug_return_type] || 'WalletListResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret'] + + new_options = opts.merge( + :operation => :"PlaidApi.wallet_list", + :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#wallet_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Execute a transaction using an e-wallet + # Execute a transaction using the specified e-wallet. Specify the e-wallet to debit from, the counterparty to credit to, the idempotency key to prevent duplicate transactions, the amount and reference for the transaction. Transactions will settle in seconds to several days, depending on the underlying payment rail. + # @param wallet_transaction_execute_request [WalletTransactionExecuteRequest] + # @param [Hash] opts the optional parameters + # @return [WalletTransactionExecuteResponse] + def wallet_transaction_execute(wallet_transaction_execute_request, opts = {}) + data, _status_code, _headers = wallet_transaction_execute_with_http_info(wallet_transaction_execute_request, opts) + data + end + + # Execute a transaction using an e-wallet + # Execute a transaction using the specified e-wallet. Specify the e-wallet to debit from, the counterparty to credit to, the idempotency key to prevent duplicate transactions, the amount and reference for the transaction. Transactions will settle in seconds to several days, depending on the underlying payment rail. + # @param wallet_transaction_execute_request [WalletTransactionExecuteRequest] + # @param [Hash] opts the optional parameters + # @return [Array<(WalletTransactionExecuteResponse, Integer, Hash)>] WalletTransactionExecuteResponse data, response status code and response headers + def wallet_transaction_execute_with_http_info(wallet_transaction_execute_request, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: PlaidApi.wallet_transaction_execute ...' + end + # verify the required parameter 'wallet_transaction_execute_request' is set + if @api_client.config.client_side_validation && wallet_transaction_execute_request.nil? + fail ArgumentError, "Missing the required parameter 'wallet_transaction_execute_request' when calling PlaidApi.wallet_transaction_execute" + end + # resource path + local_var_path = '/wallet/transaction/execute' + + # 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(wallet_transaction_execute_request) + + # return_type + return_type = opts[:debug_return_type] || 'WalletTransactionExecuteResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret'] + + new_options = opts.merge( + :operation => :"PlaidApi.wallet_transaction_execute", + :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#wallet_transaction_execute\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Fetch an e-wallet transaction + # Fetch a specific e-wallet transaction + # @param wallet_transaction_get_request [WalletTransactionGetRequest] + # @param [Hash] opts the optional parameters + # @return [WalletTransactionGetResponse] + def wallet_transaction_get(wallet_transaction_get_request, opts = {}) + data, _status_code, _headers = wallet_transaction_get_with_http_info(wallet_transaction_get_request, opts) + data + end + + # Fetch an e-wallet transaction + # Fetch a specific e-wallet transaction + # @param wallet_transaction_get_request [WalletTransactionGetRequest] + # @param [Hash] opts the optional parameters + # @return [Array<(WalletTransactionGetResponse, Integer, Hash)>] WalletTransactionGetResponse data, response status code and response headers + def wallet_transaction_get_with_http_info(wallet_transaction_get_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PlaidApi.wallet_transaction_get ...' end @@ -9834,11 +10809,76 @@ def wallet_transaction_get_with_http_info(wallet_transaction_get_request, opts = return data, status_code, headers end + # List e-wallet transactions + # This endpoint lists the latest transactions of the specified e-wallet. Transactions are returned in descending order by the `created_at` time. + # @param wallet_transaction_list_request [WalletTransactionListRequest] + # @param [Hash] opts the optional parameters + # @return [WalletTransactionListResponse] + def wallet_transaction_list(wallet_transaction_list_request, opts = {}) + data, _status_code, _headers = wallet_transaction_list_with_http_info(wallet_transaction_list_request, opts) + data + end + + # List e-wallet transactions + # This endpoint lists the latest transactions of the specified e-wallet. Transactions are returned in descending order by the `created_at` time. + # @param wallet_transaction_list_request [WalletTransactionListRequest] + # @param [Hash] opts the optional parameters + # @return [Array<(WalletTransactionListResponse, Integer, Hash)>] WalletTransactionListResponse data, response status code and response headers + def wallet_transaction_list_with_http_info(wallet_transaction_list_request, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: PlaidApi.wallet_transaction_list ...' + end + # verify the required parameter 'wallet_transaction_list_request' is set + if @api_client.config.client_side_validation && wallet_transaction_list_request.nil? + fail ArgumentError, "Missing the required parameter 'wallet_transaction_list_request' when calling PlaidApi.wallet_transaction_list" + end + # resource path + local_var_path = '/wallet/transaction/list' + + # 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(wallet_transaction_list_request) + + # return_type + return_type = opts[:debug_return_type] || 'WalletTransactionListResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret'] + + new_options = opts.merge( + :operation => :"PlaidApi.wallet_transaction_list", + :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#wallet_transaction_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # List e-wallet transactions # This endpoint lists the latest transactions of the specified e-wallet. Transactions are returned in descending order by the `created_at` time. # @param wallet_transactions_list_request [WalletTransactionsListRequest] # @param [Hash] opts the optional parameters - # @return [WalletTransactionsListResponse] + # @return [WalletTransactionListResponse] def wallet_transactions_list(wallet_transactions_list_request, opts = {}) data, _status_code, _headers = wallet_transactions_list_with_http_info(wallet_transactions_list_request, opts) data @@ -9848,7 +10888,7 @@ def wallet_transactions_list(wallet_transactions_list_request, opts = {}) # This endpoint lists the latest transactions of the specified e-wallet. Transactions are returned in descending order by the `created_at` time. # @param wallet_transactions_list_request [WalletTransactionsListRequest] # @param [Hash] opts the optional parameters - # @return [Array<(WalletTransactionsListResponse, Integer, Hash)>] WalletTransactionsListResponse data, response status code and response headers + # @return [Array<(WalletTransactionListResponse, Integer, Hash)>] WalletTransactionListResponse data, response status code and response headers def wallet_transactions_list_with_http_info(wallet_transactions_list_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PlaidApi.wallet_transactions_list ...' @@ -9877,7 +10917,7 @@ def wallet_transactions_list_with_http_info(wallet_transactions_list_request, op post_body = opts[:debug_body] || @api_client.object_to_http_body(wallet_transactions_list_request) # return_type - return_type = opts[:debug_return_type] || 'WalletTransactionsListResponse' + return_type = opts[:debug_return_type] || 'WalletTransactionListResponse' # auth_names auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret'] diff --git a/lib/plaid/api_client.rb b/lib/plaid/api_client.rb index 46b69933b..465da90d6 100644 --- a/lib/plaid/api_client.rb +++ b/lib/plaid/api_client.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -34,7 +34,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 v17.0.0" + @user_agent = "Plaid Ruby v17.1.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 99c92d0d0..a71c5494a 100644 --- a/lib/plaid/api_error.rb +++ b/lib/plaid/api_error.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/configuration.rb b/lib/plaid/configuration.rb index 3292554eb..e6015795a 100644 --- a/lib/plaid/configuration.rb +++ b/lib/plaid/configuration.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/account_access.rb b/lib/plaid/models/account_access.rb index ecd6b068b..f151006ad 100644 --- a/lib/plaid/models/account_access.rb +++ b/lib/plaid/models/account_access.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/account_assets.rb b/lib/plaid/models/account_assets.rb index 1248f3ae1..33b434f96 100644 --- a/lib/plaid/models/account_assets.rb +++ b/lib/plaid/models/account_assets.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/account_assets_all_of.rb b/lib/plaid/models/account_assets_all_of.rb index 49d703456..09031585e 100644 --- a/lib/plaid/models/account_assets_all_of.rb +++ b/lib/plaid/models/account_assets_all_of.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/account_balance.rb b/lib/plaid/models/account_balance.rb index 85e73f7a1..70c6d56e7 100644 --- a/lib/plaid/models/account_balance.rb +++ b/lib/plaid/models/account_balance.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/account_base.rb b/lib/plaid/models/account_base.rb index a1f525204..95907237e 100644 --- a/lib/plaid/models/account_base.rb +++ b/lib/plaid/models/account_base.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/account_filter.rb b/lib/plaid/models/account_filter.rb index 28d9957f3..e7122a33b 100644 --- a/lib/plaid/models/account_filter.rb +++ b/lib/plaid/models/account_filter.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/account_filters_response.rb b/lib/plaid/models/account_filters_response.rb index 1d5088643..06ebd2ebb 100644 --- a/lib/plaid/models/account_filters_response.rb +++ b/lib/plaid/models/account_filters_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/account_identity.rb b/lib/plaid/models/account_identity.rb index 1622ca621..bd437db55 100644 --- a/lib/plaid/models/account_identity.rb +++ b/lib/plaid/models/account_identity.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/account_identity_all_of.rb b/lib/plaid/models/account_identity_all_of.rb index 32beb957f..1846570c1 100644 --- a/lib/plaid/models/account_identity_all_of.rb +++ b/lib/plaid/models/account_identity_all_of.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/account_identity_match_score.rb b/lib/plaid/models/account_identity_match_score.rb index df12ed651..9060e83aa 100644 --- a/lib/plaid/models/account_identity_match_score.rb +++ b/lib/plaid/models/account_identity_match_score.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/account_identity_match_score_all_of.rb b/lib/plaid/models/account_identity_match_score_all_of.rb index 1649b55e5..c0b000736 100644 --- a/lib/plaid/models/account_identity_match_score_all_of.rb +++ b/lib/plaid/models/account_identity_match_score_all_of.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/account_product_access.rb b/lib/plaid/models/account_product_access.rb index fe81e77fe..7b78edb45 100644 --- a/lib/plaid/models/account_product_access.rb +++ b/lib/plaid/models/account_product_access.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/account_product_access_nullable.rb b/lib/plaid/models/account_product_access_nullable.rb index 05d454f4b..d66cb1b28 100644 --- a/lib/plaid/models/account_product_access_nullable.rb +++ b/lib/plaid/models/account_product_access_nullable.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/account_selection_cardinality.rb b/lib/plaid/models/account_selection_cardinality.rb index c282e1cc2..53d9c7aca 100644 --- a/lib/plaid/models/account_selection_cardinality.rb +++ b/lib/plaid/models/account_selection_cardinality.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/account_subtype.rb b/lib/plaid/models/account_subtype.rb index c8a8a7f14..0081d5bd9 100644 --- a/lib/plaid/models/account_subtype.rb +++ b/lib/plaid/models/account_subtype.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/account_type.rb b/lib/plaid/models/account_type.rb index cb46da45f..276c68795 100644 --- a/lib/plaid/models/account_type.rb +++ b/lib/plaid/models/account_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/accounts_balance_get_request.rb b/lib/plaid/models/accounts_balance_get_request.rb index cd364dd45..1bcf38959 100644 --- a/lib/plaid/models/accounts_balance_get_request.rb +++ b/lib/plaid/models/accounts_balance_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/accounts_balance_get_request_options.rb b/lib/plaid/models/accounts_balance_get_request_options.rb index 6f5445ad3..017bc9f16 100644 --- a/lib/plaid/models/accounts_balance_get_request_options.rb +++ b/lib/plaid/models/accounts_balance_get_request_options.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/accounts_get_request.rb b/lib/plaid/models/accounts_get_request.rb index 3b292cdd4..405936cec 100644 --- a/lib/plaid/models/accounts_get_request.rb +++ b/lib/plaid/models/accounts_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/accounts_get_request_options.rb b/lib/plaid/models/accounts_get_request_options.rb index 9153ac031..45e294481 100644 --- a/lib/plaid/models/accounts_get_request_options.rb +++ b/lib/plaid/models/accounts_get_request_options.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/accounts_get_response.rb b/lib/plaid/models/accounts_get_response.rb index 34507ef2b..909f18503 100644 --- a/lib/plaid/models/accounts_get_response.rb +++ b/lib/plaid/models/accounts_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/ach_class.rb b/lib/plaid/models/ach_class.rb index 54e235fd6..020d06a97 100644 --- a/lib/plaid/models/ach_class.rb +++ b/lib/plaid/models/ach_class.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/address.rb b/lib/plaid/models/address.rb index 86f39f0ce..dae90ddc6 100644 --- a/lib/plaid/models/address.rb +++ b/lib/plaid/models/address.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/address_data.rb b/lib/plaid/models/address_data.rb index 7ea5e052f..8e4da5b70 100644 --- a/lib/plaid/models/address_data.rb +++ b/lib/plaid/models/address_data.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/address_data_nullable.rb b/lib/plaid/models/address_data_nullable.rb index 709140e92..fb86ccb1c 100644 --- a/lib/plaid/models/address_data_nullable.rb +++ b/lib/plaid/models/address_data_nullable.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/address_match_score.rb b/lib/plaid/models/address_match_score.rb index 2b0a75bf6..8ee3c938e 100644 --- a/lib/plaid/models/address_match_score.rb +++ b/lib/plaid/models/address_match_score.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/address_nullable.rb b/lib/plaid/models/address_nullable.rb index a873bd4a0..e0816582e 100644 --- a/lib/plaid/models/address_nullable.rb +++ b/lib/plaid/models/address_nullable.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/address_purpose_label.rb b/lib/plaid/models/address_purpose_label.rb index a006372bb..77bfe3d7c 100644 --- a/lib/plaid/models/address_purpose_label.rb +++ b/lib/plaid/models/address_purpose_label.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/application.rb b/lib/plaid/models/application.rb index 069df8c17..36baf1bbc 100644 --- a/lib/plaid/models/application.rb +++ b/lib/plaid/models/application.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/application_get_request.rb b/lib/plaid/models/application_get_request.rb index 76be00d81..e7c033927 100644 --- a/lib/plaid/models/application_get_request.rb +++ b/lib/plaid/models/application_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/application_get_response.rb b/lib/plaid/models/application_get_response.rb index e36d682d0..5095fef1b 100644 --- a/lib/plaid/models/application_get_response.rb +++ b/lib/plaid/models/application_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/apr.rb b/lib/plaid/models/apr.rb index 75c41605a..101eefbc4 100644 --- a/lib/plaid/models/apr.rb +++ b/lib/plaid/models/apr.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/asset.rb b/lib/plaid/models/asset.rb index f107eea96..684458388 100644 --- a/lib/plaid/models/asset.rb +++ b/lib/plaid/models/asset.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/asset_detail.rb b/lib/plaid/models/asset_detail.rb index 2758d0bb1..dedc7b94a 100644 --- a/lib/plaid/models/asset_detail.rb +++ b/lib/plaid/models/asset_detail.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/asset_holder.rb b/lib/plaid/models/asset_holder.rb index bdea70299..714abf0a0 100644 --- a/lib/plaid/models/asset_holder.rb +++ b/lib/plaid/models/asset_holder.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/asset_holder_name.rb b/lib/plaid/models/asset_holder_name.rb index 53a8f2cbf..33bbc188e 100644 --- a/lib/plaid/models/asset_holder_name.rb +++ b/lib/plaid/models/asset_holder_name.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/asset_owner.rb b/lib/plaid/models/asset_owner.rb index 331860626..44cadd194 100644 --- a/lib/plaid/models/asset_owner.rb +++ b/lib/plaid/models/asset_owner.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/asset_owners.rb b/lib/plaid/models/asset_owners.rb index 462730813..3c9224c74 100644 --- a/lib/plaid/models/asset_owners.rb +++ b/lib/plaid/models/asset_owners.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/asset_report.rb b/lib/plaid/models/asset_report.rb index 73aa7587d..afedd1449 100644 --- a/lib/plaid/models/asset_report.rb +++ b/lib/plaid/models/asset_report.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 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 53605bf6a..eaec2deb0 100644 --- a/lib/plaid/models/asset_report_audit_copy_create_request.rb +++ b/lib/plaid/models/asset_report_audit_copy_create_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 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 b8f5b4390..567199123 100644 --- a/lib/plaid/models/asset_report_audit_copy_create_response.rb +++ b/lib/plaid/models/asset_report_audit_copy_create_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 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 163397404..0ab9918c2 100644 --- a/lib/plaid/models/asset_report_audit_copy_get_request.rb +++ b/lib/plaid/models/asset_report_audit_copy_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 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 48964e2a3..0309216f5 100644 --- a/lib/plaid/models/asset_report_audit_copy_remove_request.rb +++ b/lib/plaid/models/asset_report_audit_copy_remove_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 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 51e7ff07c..159eb061c 100644 --- a/lib/plaid/models/asset_report_audit_copy_remove_response.rb +++ b/lib/plaid/models/asset_report_audit_copy_remove_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/asset_report_create_request.rb b/lib/plaid/models/asset_report_create_request.rb index 9332a3315..33386c09b 100644 --- a/lib/plaid/models/asset_report_create_request.rb +++ b/lib/plaid/models/asset_report_create_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/asset_report_create_request_options.rb b/lib/plaid/models/asset_report_create_request_options.rb index eeddffc1d..28872da77 100644 --- a/lib/plaid/models/asset_report_create_request_options.rb +++ b/lib/plaid/models/asset_report_create_request_options.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/asset_report_create_response.rb b/lib/plaid/models/asset_report_create_response.rb index c509ed81b..7ddb5d2e9 100644 --- a/lib/plaid/models/asset_report_create_response.rb +++ b/lib/plaid/models/asset_report_create_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/asset_report_filter_request.rb b/lib/plaid/models/asset_report_filter_request.rb index 918516040..760116d06 100644 --- a/lib/plaid/models/asset_report_filter_request.rb +++ b/lib/plaid/models/asset_report_filter_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/asset_report_filter_response.rb b/lib/plaid/models/asset_report_filter_response.rb index 8535f5b35..eed542111 100644 --- a/lib/plaid/models/asset_report_filter_response.rb +++ b/lib/plaid/models/asset_report_filter_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/asset_report_freddie.rb b/lib/plaid/models/asset_report_freddie.rb index ba2f0345e..85cf9ef4a 100644 --- a/lib/plaid/models/asset_report_freddie.rb +++ b/lib/plaid/models/asset_report_freddie.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/asset_report_freddie_get_request.rb b/lib/plaid/models/asset_report_freddie_get_request.rb index 87c712398..1e8894a36 100644 --- a/lib/plaid/models/asset_report_freddie_get_request.rb +++ b/lib/plaid/models/asset_report_freddie_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/asset_report_freddie_get_response.rb b/lib/plaid/models/asset_report_freddie_get_response.rb index d74e83871..485144fff 100644 --- a/lib/plaid/models/asset_report_freddie_get_response.rb +++ b/lib/plaid/models/asset_report_freddie_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/asset_report_get_request.rb b/lib/plaid/models/asset_report_get_request.rb index 6fc0c42ab..406c099f6 100644 --- a/lib/plaid/models/asset_report_get_request.rb +++ b/lib/plaid/models/asset_report_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/asset_report_get_request_options.rb b/lib/plaid/models/asset_report_get_request_options.rb index 27912a4e7..8f43173ea 100644 --- a/lib/plaid/models/asset_report_get_request_options.rb +++ b/lib/plaid/models/asset_report_get_request_options.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/asset_report_get_response.rb b/lib/plaid/models/asset_report_get_response.rb index a64a1c48d..662d7fc2b 100644 --- a/lib/plaid/models/asset_report_get_response.rb +++ b/lib/plaid/models/asset_report_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/asset_report_item.rb b/lib/plaid/models/asset_report_item.rb index bbe5f3965..d11f4c26f 100644 --- a/lib/plaid/models/asset_report_item.rb +++ b/lib/plaid/models/asset_report_item.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/asset_report_pdf_get_request.rb b/lib/plaid/models/asset_report_pdf_get_request.rb index 1e4a34a2c..6e8ff3e07 100644 --- a/lib/plaid/models/asset_report_pdf_get_request.rb +++ b/lib/plaid/models/asset_report_pdf_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/asset_report_pdf_get_request_options.rb b/lib/plaid/models/asset_report_pdf_get_request_options.rb index 180fd0f0a..bc6eca111 100644 --- a/lib/plaid/models/asset_report_pdf_get_request_options.rb +++ b/lib/plaid/models/asset_report_pdf_get_request_options.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/asset_report_refresh_request.rb b/lib/plaid/models/asset_report_refresh_request.rb index 71436f01f..fbdb53418 100644 --- a/lib/plaid/models/asset_report_refresh_request.rb +++ b/lib/plaid/models/asset_report_refresh_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/asset_report_refresh_request_options.rb b/lib/plaid/models/asset_report_refresh_request_options.rb index 3bc9c8a81..b4463b115 100644 --- a/lib/plaid/models/asset_report_refresh_request_options.rb +++ b/lib/plaid/models/asset_report_refresh_request_options.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/asset_report_refresh_response.rb b/lib/plaid/models/asset_report_refresh_response.rb index 1e14bed13..52bd7e98d 100644 --- a/lib/plaid/models/asset_report_refresh_response.rb +++ b/lib/plaid/models/asset_report_refresh_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/asset_report_remove_request.rb b/lib/plaid/models/asset_report_remove_request.rb index b7f9d2679..80863d950 100644 --- a/lib/plaid/models/asset_report_remove_request.rb +++ b/lib/plaid/models/asset_report_remove_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/asset_report_remove_response.rb b/lib/plaid/models/asset_report_remove_response.rb index fafceb019..6aea36fb1 100644 --- a/lib/plaid/models/asset_report_remove_response.rb +++ b/lib/plaid/models/asset_report_remove_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/asset_report_transaction.rb b/lib/plaid/models/asset_report_transaction.rb index c12e400ad..f8be1e91d 100644 --- a/lib/plaid/models/asset_report_transaction.rb +++ b/lib/plaid/models/asset_report_transaction.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/asset_report_transaction_all_of.rb b/lib/plaid/models/asset_report_transaction_all_of.rb index 1fb70a372..0c4698232 100644 --- a/lib/plaid/models/asset_report_transaction_all_of.rb +++ b/lib/plaid/models/asset_report_transaction_all_of.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/asset_report_user.rb b/lib/plaid/models/asset_report_user.rb index a4544639c..452ebf90a 100644 --- a/lib/plaid/models/asset_report_user.rb +++ b/lib/plaid/models/asset_report_user.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/asset_transaction.rb b/lib/plaid/models/asset_transaction.rb index 6c866aeab..ed12c69f2 100644 --- a/lib/plaid/models/asset_transaction.rb +++ b/lib/plaid/models/asset_transaction.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/asset_transaction_category_type.rb b/lib/plaid/models/asset_transaction_category_type.rb index 8a36e9714..56cc643c5 100644 --- a/lib/plaid/models/asset_transaction_category_type.rb +++ b/lib/plaid/models/asset_transaction_category_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/asset_transaction_description.rb b/lib/plaid/models/asset_transaction_description.rb index b513a0983..f5a188a8b 100644 --- a/lib/plaid/models/asset_transaction_description.rb +++ b/lib/plaid/models/asset_transaction_description.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/asset_transaction_detail.rb b/lib/plaid/models/asset_transaction_detail.rb index d97b0ca23..3f5f652d6 100644 --- a/lib/plaid/models/asset_transaction_detail.rb +++ b/lib/plaid/models/asset_transaction_detail.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/asset_transaction_type.rb b/lib/plaid/models/asset_transaction_type.rb index e396e37e7..8069fbc85 100644 --- a/lib/plaid/models/asset_transaction_type.rb +++ b/lib/plaid/models/asset_transaction_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/asset_transactions.rb b/lib/plaid/models/asset_transactions.rb index f34d253c3..5954445f4 100644 --- a/lib/plaid/models/asset_transactions.rb +++ b/lib/plaid/models/asset_transactions.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/asset_type.rb b/lib/plaid/models/asset_type.rb index 442ed66bf..60f16ed55 100644 --- a/lib/plaid/models/asset_type.rb +++ b/lib/plaid/models/asset_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/assets.rb b/lib/plaid/models/assets.rb index c3c83b846..45a2bfb42 100644 --- a/lib/plaid/models/assets.rb +++ b/lib/plaid/models/assets.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/assets_error_webhook.rb b/lib/plaid/models/assets_error_webhook.rb index 83edffc38..c97dd4c86 100644 --- a/lib/plaid/models/assets_error_webhook.rb +++ b/lib/plaid/models/assets_error_webhook.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/assets_product_ready_webhook.rb b/lib/plaid/models/assets_product_ready_webhook.rb index c198ecd33..abc9cbc1b 100644 --- a/lib/plaid/models/assets_product_ready_webhook.rb +++ b/lib/plaid/models/assets_product_ready_webhook.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/auth_get_numbers.rb b/lib/plaid/models/auth_get_numbers.rb index cff332150..a55fee735 100644 --- a/lib/plaid/models/auth_get_numbers.rb +++ b/lib/plaid/models/auth_get_numbers.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/auth_get_request.rb b/lib/plaid/models/auth_get_request.rb index 4ac808666..4a4683e03 100644 --- a/lib/plaid/models/auth_get_request.rb +++ b/lib/plaid/models/auth_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/auth_get_request_options.rb b/lib/plaid/models/auth_get_request_options.rb index 63fa9d857..6ebfe6da3 100644 --- a/lib/plaid/models/auth_get_request_options.rb +++ b/lib/plaid/models/auth_get_request_options.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/auth_get_response.rb b/lib/plaid/models/auth_get_response.rb index bb5e30ab6..08335f69a 100644 --- a/lib/plaid/models/auth_get_response.rb +++ b/lib/plaid/models/auth_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/auth_metadata.rb b/lib/plaid/models/auth_metadata.rb index ebf575dbf..86414b08a 100644 --- a/lib/plaid/models/auth_metadata.rb +++ b/lib/plaid/models/auth_metadata.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/auth_supported_methods.rb b/lib/plaid/models/auth_supported_methods.rb index 730bc1899..80b95ca5d 100644 --- a/lib/plaid/models/auth_supported_methods.rb +++ b/lib/plaid/models/auth_supported_methods.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/automatically_verified_webhook.rb b/lib/plaid/models/automatically_verified_webhook.rb index 1ab2630e3..292dcf9d2 100644 --- a/lib/plaid/models/automatically_verified_webhook.rb +++ b/lib/plaid/models/automatically_verified_webhook.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/bank_initiated_return_risk.rb b/lib/plaid/models/bank_initiated_return_risk.rb index 1b3be7e6e..53946dd77 100644 --- a/lib/plaid/models/bank_initiated_return_risk.rb +++ b/lib/plaid/models/bank_initiated_return_risk.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/bank_transfer.rb b/lib/plaid/models/bank_transfer.rb index dc765fe25..bfd41023f 100644 --- a/lib/plaid/models/bank_transfer.rb +++ b/lib/plaid/models/bank_transfer.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/bank_transfer_balance.rb b/lib/plaid/models/bank_transfer_balance.rb index deda9eb20..00bf505cd 100644 --- a/lib/plaid/models/bank_transfer_balance.rb +++ b/lib/plaid/models/bank_transfer_balance.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/bank_transfer_balance_get_request.rb b/lib/plaid/models/bank_transfer_balance_get_request.rb index 0ab6017a6..8ce5659a1 100644 --- a/lib/plaid/models/bank_transfer_balance_get_request.rb +++ b/lib/plaid/models/bank_transfer_balance_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/bank_transfer_balance_get_response.rb b/lib/plaid/models/bank_transfer_balance_get_response.rb index e869abbdc..f8443f8ff 100644 --- a/lib/plaid/models/bank_transfer_balance_get_response.rb +++ b/lib/plaid/models/bank_transfer_balance_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/bank_transfer_cancel_request.rb b/lib/plaid/models/bank_transfer_cancel_request.rb index 7f1b48816..f0b7fc137 100644 --- a/lib/plaid/models/bank_transfer_cancel_request.rb +++ b/lib/plaid/models/bank_transfer_cancel_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/bank_transfer_cancel_response.rb b/lib/plaid/models/bank_transfer_cancel_response.rb index ab884c03a..35b1dc2a3 100644 --- a/lib/plaid/models/bank_transfer_cancel_response.rb +++ b/lib/plaid/models/bank_transfer_cancel_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/bank_transfer_create_request.rb b/lib/plaid/models/bank_transfer_create_request.rb index 5b8bcecc7..e5dd056b9 100644 --- a/lib/plaid/models/bank_transfer_create_request.rb +++ b/lib/plaid/models/bank_transfer_create_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/bank_transfer_create_response.rb b/lib/plaid/models/bank_transfer_create_response.rb index 611d21b78..8d44d6c4a 100644 --- a/lib/plaid/models/bank_transfer_create_response.rb +++ b/lib/plaid/models/bank_transfer_create_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/bank_transfer_direction.rb b/lib/plaid/models/bank_transfer_direction.rb index 8efa171a9..3222c6a3f 100644 --- a/lib/plaid/models/bank_transfer_direction.rb +++ b/lib/plaid/models/bank_transfer_direction.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/bank_transfer_event.rb b/lib/plaid/models/bank_transfer_event.rb index 296a54c43..70e940a01 100644 --- a/lib/plaid/models/bank_transfer_event.rb +++ b/lib/plaid/models/bank_transfer_event.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 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 ca19eaab8..7ba57a0dc 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,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/bank_transfer_event_list_direction.rb b/lib/plaid/models/bank_transfer_event_list_direction.rb index 7db99ba1a..f43bd171f 100644 --- a/lib/plaid/models/bank_transfer_event_list_direction.rb +++ b/lib/plaid/models/bank_transfer_event_list_direction.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/bank_transfer_event_list_request.rb b/lib/plaid/models/bank_transfer_event_list_request.rb index f4c624e84..2a03c6949 100644 --- a/lib/plaid/models/bank_transfer_event_list_request.rb +++ b/lib/plaid/models/bank_transfer_event_list_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/bank_transfer_event_list_response.rb b/lib/plaid/models/bank_transfer_event_list_response.rb index d6583cdbb..add79d2f2 100644 --- a/lib/plaid/models/bank_transfer_event_list_response.rb +++ b/lib/plaid/models/bank_transfer_event_list_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/bank_transfer_event_sync_request.rb b/lib/plaid/models/bank_transfer_event_sync_request.rb index 4178cbb2c..828c739d4 100644 --- a/lib/plaid/models/bank_transfer_event_sync_request.rb +++ b/lib/plaid/models/bank_transfer_event_sync_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/bank_transfer_event_sync_response.rb b/lib/plaid/models/bank_transfer_event_sync_response.rb index aa78f0bc1..8663324c1 100644 --- a/lib/plaid/models/bank_transfer_event_sync_response.rb +++ b/lib/plaid/models/bank_transfer_event_sync_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/bank_transfer_event_type.rb b/lib/plaid/models/bank_transfer_event_type.rb index db4da7a21..1b025a25f 100644 --- a/lib/plaid/models/bank_transfer_event_type.rb +++ b/lib/plaid/models/bank_transfer_event_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/bank_transfer_failure.rb b/lib/plaid/models/bank_transfer_failure.rb index 47617cad3..057b4be5d 100644 --- a/lib/plaid/models/bank_transfer_failure.rb +++ b/lib/plaid/models/bank_transfer_failure.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/bank_transfer_get_request.rb b/lib/plaid/models/bank_transfer_get_request.rb index 47638e35b..8707c8fec 100644 --- a/lib/plaid/models/bank_transfer_get_request.rb +++ b/lib/plaid/models/bank_transfer_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/bank_transfer_get_response.rb b/lib/plaid/models/bank_transfer_get_response.rb index 14dbe658d..7802a9263 100644 --- a/lib/plaid/models/bank_transfer_get_response.rb +++ b/lib/plaid/models/bank_transfer_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/bank_transfer_list_request.rb b/lib/plaid/models/bank_transfer_list_request.rb index 72e1f1ab5..97f384877 100644 --- a/lib/plaid/models/bank_transfer_list_request.rb +++ b/lib/plaid/models/bank_transfer_list_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/bank_transfer_list_response.rb b/lib/plaid/models/bank_transfer_list_response.rb index 0611f288b..37dcf77dc 100644 --- a/lib/plaid/models/bank_transfer_list_response.rb +++ b/lib/plaid/models/bank_transfer_list_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/bank_transfer_migrate_account_request.rb b/lib/plaid/models/bank_transfer_migrate_account_request.rb index 9aead9736..9fe760674 100644 --- a/lib/plaid/models/bank_transfer_migrate_account_request.rb +++ b/lib/plaid/models/bank_transfer_migrate_account_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/bank_transfer_migrate_account_response.rb b/lib/plaid/models/bank_transfer_migrate_account_response.rb index 9d8cb1bd5..42676a417 100644 --- a/lib/plaid/models/bank_transfer_migrate_account_response.rb +++ b/lib/plaid/models/bank_transfer_migrate_account_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/bank_transfer_network.rb b/lib/plaid/models/bank_transfer_network.rb index 12942c5a8..05ce6d1dd 100644 --- a/lib/plaid/models/bank_transfer_network.rb +++ b/lib/plaid/models/bank_transfer_network.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/bank_transfer_status.rb b/lib/plaid/models/bank_transfer_status.rb index 320fdc09d..44ca55563 100644 --- a/lib/plaid/models/bank_transfer_status.rb +++ b/lib/plaid/models/bank_transfer_status.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/bank_transfer_sweep.rb b/lib/plaid/models/bank_transfer_sweep.rb index f15556691..52fdfb655 100644 --- a/lib/plaid/models/bank_transfer_sweep.rb +++ b/lib/plaid/models/bank_transfer_sweep.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/bank_transfer_sweep_get_request.rb b/lib/plaid/models/bank_transfer_sweep_get_request.rb index 2572c1475..786047c26 100644 --- a/lib/plaid/models/bank_transfer_sweep_get_request.rb +++ b/lib/plaid/models/bank_transfer_sweep_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/bank_transfer_sweep_get_response.rb b/lib/plaid/models/bank_transfer_sweep_get_response.rb index 9550051f4..597be7409 100644 --- a/lib/plaid/models/bank_transfer_sweep_get_response.rb +++ b/lib/plaid/models/bank_transfer_sweep_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/bank_transfer_sweep_list_request.rb b/lib/plaid/models/bank_transfer_sweep_list_request.rb index 983149c81..6e33f4d35 100644 --- a/lib/plaid/models/bank_transfer_sweep_list_request.rb +++ b/lib/plaid/models/bank_transfer_sweep_list_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/bank_transfer_sweep_list_response.rb b/lib/plaid/models/bank_transfer_sweep_list_response.rb index d8faab1d6..9857e5d70 100644 --- a/lib/plaid/models/bank_transfer_sweep_list_response.rb +++ b/lib/plaid/models/bank_transfer_sweep_list_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/bank_transfer_type.rb b/lib/plaid/models/bank_transfer_type.rb index bea1ac274..228fef509 100644 --- a/lib/plaid/models/bank_transfer_type.rb +++ b/lib/plaid/models/bank_transfer_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/bank_transfer_user.rb b/lib/plaid/models/bank_transfer_user.rb index 54cb21932..c3b46f575 100644 --- a/lib/plaid/models/bank_transfer_user.rb +++ b/lib/plaid/models/bank_transfer_user.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/bank_transfers_events_update_webhook.rb b/lib/plaid/models/bank_transfers_events_update_webhook.rb index 9dffb1650..0c0ff23f6 100644 --- a/lib/plaid/models/bank_transfers_events_update_webhook.rb +++ b/lib/plaid/models/bank_transfers_events_update_webhook.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/categories_get_response.rb b/lib/plaid/models/categories_get_response.rb index 33b4fcc26..8942f3977 100644 --- a/lib/plaid/models/categories_get_response.rb +++ b/lib/plaid/models/categories_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/category.rb b/lib/plaid/models/category.rb index 038bee0f5..fff403940 100644 --- a/lib/plaid/models/category.rb +++ b/lib/plaid/models/category.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/cause.rb b/lib/plaid/models/cause.rb index 55143dc62..50ec5ddeb 100644 --- a/lib/plaid/models/cause.rb +++ b/lib/plaid/models/cause.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/cause_all_of.rb b/lib/plaid/models/cause_all_of.rb index 9d063b663..343e80bf8 100644 --- a/lib/plaid/models/cause_all_of.rb +++ b/lib/plaid/models/cause_all_of.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/client_provided_enhanced_transaction.rb b/lib/plaid/models/client_provided_enhanced_transaction.rb index 256895301..16555e916 100644 --- a/lib/plaid/models/client_provided_enhanced_transaction.rb +++ b/lib/plaid/models/client_provided_enhanced_transaction.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/client_provided_enriched_transaction.rb b/lib/plaid/models/client_provided_enriched_transaction.rb new file mode 100644 index 000000000..7d263fa63 --- /dev/null +++ b/lib/plaid/models/client_provided_enriched_transaction.rb @@ -0,0 +1,293 @@ +=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.205.3 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # A client-provided transaction that Plaid has enriched. + class ClientProvidedEnrichedTransaction + # The unique ID for the transaction as provided by you in the request. + attr_accessor :id + + # The raw description of the transaction. + attr_accessor :description + + # The absolute value of the transaction (>= 0) + attr_accessor :amount + + attr_accessor :direction + + # The ISO-4217 currency code of the transaction, e.g., USD. + attr_accessor :iso_currency_code + + attr_accessor :enrichments + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'id' => :'id', + :'description' => :'description', + :'amount' => :'amount', + :'direction' => :'direction', + :'iso_currency_code' => :'iso_currency_code', + :'enrichments' => :'enrichments' + } + 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' => :'String', + :'description' => :'String', + :'amount' => :'Float', + :'direction' => :'EnrichTransactionDirection', + :'iso_currency_code' => :'String', + :'enrichments' => :'Enrichments' + } + 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::ClientProvidedEnrichedTransaction` 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::ClientProvidedEnrichedTransaction`. 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') + self.id = attributes[:'id'] + end + + if attributes.key?(:'description') + self.description = attributes[:'description'] + end + + if attributes.key?(:'amount') + self.amount = attributes[:'amount'] + end + + if attributes.key?(:'direction') + self.direction = attributes[:'direction'] + end + + if attributes.key?(:'iso_currency_code') + self.iso_currency_code = attributes[:'iso_currency_code'] + end + + if attributes.key?(:'enrichments') + self.enrichments = attributes[:'enrichments'] + 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 @id.nil? + invalid_properties.push('invalid value for "id", id cannot be nil.') + end + + if @description.nil? + invalid_properties.push('invalid value for "description", description cannot be nil.') + end + + if @amount.nil? + invalid_properties.push('invalid value for "amount", amount cannot be nil.') + end + + if @iso_currency_code.nil? + invalid_properties.push('invalid value for "iso_currency_code", iso_currency_code cannot be nil.') + end + + if @enrichments.nil? + invalid_properties.push('invalid value for "enrichments", enrichments 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 @id.nil? + return false if @description.nil? + return false if @amount.nil? + return false if @iso_currency_code.nil? + return false if @enrichments.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 && + id == o.id && + description == o.description && + amount == o.amount && + direction == o.direction && + iso_currency_code == o.iso_currency_code && + enrichments == o.enrichments + 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, description, amount, direction, iso_currency_code, enrichments].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_raw_transaction.rb b/lib/plaid/models/client_provided_raw_transaction.rb index 909c3b1d3..7cd994fc2 100644 --- a/lib/plaid/models/client_provided_raw_transaction.rb +++ b/lib/plaid/models/client_provided_raw_transaction.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -16,16 +16,16 @@ module Plaid # A client-provided transaction for Plaid to enhance. class ClientProvidedRawTransaction - # Unique transaction identifier to tie transactions back to clients' systems. + # A unique ID for the transaction used to help you tie data back to your systems. attr_accessor :id # The raw description of the transaction. attr_accessor :description - # The value of the transaction, denominated in the account's currency, as stated in `iso_currency_code`. Positive values when money moves out of the account; negative values when money moves in. For example, debit card purchases are positive; credit card payments, direct deposits, and refunds are negative. + # The value of the transaction with direction. (NOTE: this will affect enrichment results, so directions are important):. Negative (-) for credits (e.g., incoming transfers, refunds) Positive (+) for debits (e.g., purchases, fees, outgoing transfers) attr_accessor :amount - # The ISO-4217 currency code of the transaction. + # The ISO-4217 currency code of the transaction, e.g., USD. attr_accessor :iso_currency_code # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/plaid/models/client_provided_transaction.rb b/lib/plaid/models/client_provided_transaction.rb new file mode 100644 index 000000000..20be22082 --- /dev/null +++ b/lib/plaid/models/client_provided_transaction.rb @@ -0,0 +1,279 @@ +=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.205.3 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # A client-provided transaction for Plaid to enrich. + class ClientProvidedTransaction + # A unique ID for the transaction used to help you tie data back to your systems. + attr_accessor :id + + # The raw description of the transaction. + attr_accessor :description + + # The absolute value of the transaction (>= 0) + attr_accessor :amount + + attr_accessor :direction + + # The ISO-4217 currency code of the transaction, e.g., USD. + attr_accessor :iso_currency_code + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'id' => :'id', + :'description' => :'description', + :'amount' => :'amount', + :'direction' => :'direction', + :'iso_currency_code' => :'iso_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 + { + :'id' => :'String', + :'description' => :'String', + :'amount' => :'Float', + :'direction' => :'EnrichTransactionDirection', + :'iso_currency_code' => :'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::ClientProvidedTransaction` 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::ClientProvidedTransaction`. 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') + self.id = attributes[:'id'] + end + + if attributes.key?(:'description') + self.description = attributes[:'description'] + end + + if attributes.key?(:'amount') + self.amount = attributes[:'amount'] + end + + if attributes.key?(:'direction') + self.direction = attributes[:'direction'] + end + + if attributes.key?(:'iso_currency_code') + self.iso_currency_code = attributes[:'iso_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 @id.nil? + invalid_properties.push('invalid value for "id", id cannot be nil.') + end + + if @description.nil? + invalid_properties.push('invalid value for "description", description cannot be nil.') + end + + if @amount.nil? + invalid_properties.push('invalid value for "amount", amount cannot be nil.') + end + + if @iso_currency_code.nil? + invalid_properties.push('invalid value for "iso_currency_code", iso_currency_code 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 @id.nil? + return false if @description.nil? + return false if @amount.nil? + return false if @iso_currency_code.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 && + id == o.id && + description == o.description && + amount == o.amount && + direction == o.direction && + iso_currency_code == o.iso_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 + [id, description, amount, direction, iso_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/connected_application.rb b/lib/plaid/models/connected_application.rb index f2eef4fde..90af99b07 100644 --- a/lib/plaid/models/connected_application.rb +++ b/lib/plaid/models/connected_application.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/counterparty.rb b/lib/plaid/models/counterparty.rb index 64ec96765..144d0080a 100644 --- a/lib/plaid/models/counterparty.rb +++ b/lib/plaid/models/counterparty.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/counterparty_type.rb b/lib/plaid/models/counterparty_type.rb index 38eda612e..c86a865d9 100644 --- a/lib/plaid/models/counterparty_type.rb +++ b/lib/plaid/models/counterparty_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/country_code.rb b/lib/plaid/models/country_code.rb index 719772553..2f561e576 100644 --- a/lib/plaid/models/country_code.rb +++ b/lib/plaid/models/country_code.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit1099.rb b/lib/plaid/models/credit1099.rb index 369a8e458..4d019a024 100644 --- a/lib/plaid/models/credit1099.rb +++ b/lib/plaid/models/credit1099.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit1099_filer.rb b/lib/plaid/models/credit1099_filer.rb index ab2accdf4..7829ec20e 100644 --- a/lib/plaid/models/credit1099_filer.rb +++ b/lib/plaid/models/credit1099_filer.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit1099_payer.rb b/lib/plaid/models/credit1099_payer.rb index 2c0f9cafb..c92573fa3 100644 --- a/lib/plaid/models/credit1099_payer.rb +++ b/lib/plaid/models/credit1099_payer.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit1099_recipient.rb b/lib/plaid/models/credit1099_recipient.rb index 81d5813e9..19798a52a 100644 --- a/lib/plaid/models/credit1099_recipient.rb +++ b/lib/plaid/models/credit1099_recipient.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_account_subtype.rb b/lib/plaid/models/credit_account_subtype.rb index 4f5cdc31c..57ab4a4c1 100644 --- a/lib/plaid/models/credit_account_subtype.rb +++ b/lib/plaid/models/credit_account_subtype.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_audit_copy_token_create_request.rb b/lib/plaid/models/credit_audit_copy_token_create_request.rb index 9845a15ff..177d449d0 100644 --- a/lib/plaid/models/credit_audit_copy_token_create_request.rb +++ b/lib/plaid/models/credit_audit_copy_token_create_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_audit_copy_token_create_response.rb b/lib/plaid/models/credit_audit_copy_token_create_response.rb index fd57a4938..4be4b479d 100644 --- a/lib/plaid/models/credit_audit_copy_token_create_response.rb +++ b/lib/plaid/models/credit_audit_copy_token_create_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_audit_copy_token_remove_request.rb b/lib/plaid/models/credit_audit_copy_token_remove_request.rb index 48bbc82cb..2ed9e894e 100644 --- a/lib/plaid/models/credit_audit_copy_token_remove_request.rb +++ b/lib/plaid/models/credit_audit_copy_token_remove_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_audit_copy_token_remove_response.rb b/lib/plaid/models/credit_audit_copy_token_remove_response.rb index 454366e96..aa89fa721 100644 --- a/lib/plaid/models/credit_audit_copy_token_remove_response.rb +++ b/lib/plaid/models/credit_audit_copy_token_remove_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_bank_income.rb b/lib/plaid/models/credit_bank_income.rb index 233c71858..a8af3f9bf 100644 --- a/lib/plaid/models/credit_bank_income.rb +++ b/lib/plaid/models/credit_bank_income.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_bank_income_account.rb b/lib/plaid/models/credit_bank_income_account.rb index 534fceac8..f40714e0e 100644 --- a/lib/plaid/models/credit_bank_income_account.rb +++ b/lib/plaid/models/credit_bank_income_account.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_bank_income_account_type.rb b/lib/plaid/models/credit_bank_income_account_type.rb index 44e1f8efc..b90f18ab0 100644 --- a/lib/plaid/models/credit_bank_income_account_type.rb +++ b/lib/plaid/models/credit_bank_income_account_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_bank_income_category.rb b/lib/plaid/models/credit_bank_income_category.rb index 515a4d1fa..1ecb03a84 100644 --- a/lib/plaid/models/credit_bank_income_category.rb +++ b/lib/plaid/models/credit_bank_income_category.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_bank_income_cause.rb b/lib/plaid/models/credit_bank_income_cause.rb index 84526b53b..758c4a378 100644 --- a/lib/plaid/models/credit_bank_income_cause.rb +++ b/lib/plaid/models/credit_bank_income_cause.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_bank_income_error_type.rb b/lib/plaid/models/credit_bank_income_error_type.rb index 8d4534cb6..ac458153f 100644 --- a/lib/plaid/models/credit_bank_income_error_type.rb +++ b/lib/plaid/models/credit_bank_income_error_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_bank_income_get_request.rb b/lib/plaid/models/credit_bank_income_get_request.rb index 7cd8d8135..3541b4b4f 100644 --- a/lib/plaid/models/credit_bank_income_get_request.rb +++ b/lib/plaid/models/credit_bank_income_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 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 53eec60bb..b7abb6d43 100644 --- a/lib/plaid/models/credit_bank_income_get_request_options.rb +++ b/lib/plaid/models/credit_bank_income_get_request_options.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_bank_income_get_response.rb b/lib/plaid/models/credit_bank_income_get_response.rb index 480ab1e2b..d5cf96044 100644 --- a/lib/plaid/models/credit_bank_income_get_response.rb +++ b/lib/plaid/models/credit_bank_income_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_bank_income_historical_summary.rb b/lib/plaid/models/credit_bank_income_historical_summary.rb index b8a5927e1..b06d81f90 100644 --- a/lib/plaid/models/credit_bank_income_historical_summary.rb +++ b/lib/plaid/models/credit_bank_income_historical_summary.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_bank_income_item.rb b/lib/plaid/models/credit_bank_income_item.rb index 46fd21ce1..7dc364da4 100644 --- a/lib/plaid/models/credit_bank_income_item.rb +++ b/lib/plaid/models/credit_bank_income_item.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_bank_income_pay_frequency.rb b/lib/plaid/models/credit_bank_income_pay_frequency.rb index ef7e79be6..7abfd1d44 100644 --- a/lib/plaid/models/credit_bank_income_pay_frequency.rb +++ b/lib/plaid/models/credit_bank_income_pay_frequency.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_bank_income_pdf_get_request.rb b/lib/plaid/models/credit_bank_income_pdf_get_request.rb index 47ed44894..23de47c7e 100644 --- a/lib/plaid/models/credit_bank_income_pdf_get_request.rb +++ b/lib/plaid/models/credit_bank_income_pdf_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_bank_income_refresh_request.rb b/lib/plaid/models/credit_bank_income_refresh_request.rb index 0af4a6da3..c28aa6dc1 100644 --- a/lib/plaid/models/credit_bank_income_refresh_request.rb +++ b/lib/plaid/models/credit_bank_income_refresh_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_bank_income_refresh_request_options.rb b/lib/plaid/models/credit_bank_income_refresh_request_options.rb index ffcd2ae6e..e8162e16f 100644 --- a/lib/plaid/models/credit_bank_income_refresh_request_options.rb +++ b/lib/plaid/models/credit_bank_income_refresh_request_options.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_bank_income_refresh_response.rb b/lib/plaid/models/credit_bank_income_refresh_response.rb index 50e948a28..80dfbf533 100644 --- a/lib/plaid/models/credit_bank_income_refresh_response.rb +++ b/lib/plaid/models/credit_bank_income_refresh_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_bank_income_source.rb b/lib/plaid/models/credit_bank_income_source.rb index 880665429..75b8417e0 100644 --- a/lib/plaid/models/credit_bank_income_source.rb +++ b/lib/plaid/models/credit_bank_income_source.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_bank_income_summary.rb b/lib/plaid/models/credit_bank_income_summary.rb index 221d9d09a..6106981d9 100644 --- a/lib/plaid/models/credit_bank_income_summary.rb +++ b/lib/plaid/models/credit_bank_income_summary.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_bank_income_transaction.rb b/lib/plaid/models/credit_bank_income_transaction.rb index 90aca73cb..ef0cfd9fa 100644 --- a/lib/plaid/models/credit_bank_income_transaction.rb +++ b/lib/plaid/models/credit_bank_income_transaction.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_bank_income_warning.rb b/lib/plaid/models/credit_bank_income_warning.rb index 49b2ab387..780271922 100644 --- a/lib/plaid/models/credit_bank_income_warning.rb +++ b/lib/plaid/models/credit_bank_income_warning.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_bank_income_warning_code.rb b/lib/plaid/models/credit_bank_income_warning_code.rb index 005914061..122920783 100644 --- a/lib/plaid/models/credit_bank_income_warning_code.rb +++ b/lib/plaid/models/credit_bank_income_warning_code.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_bank_income_warning_type.rb b/lib/plaid/models/credit_bank_income_warning_type.rb index f7e1c73e6..10c1b1ea4 100644 --- a/lib/plaid/models/credit_bank_income_warning_type.rb +++ b/lib/plaid/models/credit_bank_income_warning_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_card_liability.rb b/lib/plaid/models/credit_card_liability.rb index 7906989f3..f4636ca7a 100644 --- a/lib/plaid/models/credit_card_liability.rb +++ b/lib/plaid/models/credit_card_liability.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_category.rb b/lib/plaid/models/credit_category.rb index 5ffc7bb15..b54acd768 100644 --- a/lib/plaid/models/credit_category.rb +++ b/lib/plaid/models/credit_category.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_document_metadata.rb b/lib/plaid/models/credit_document_metadata.rb index 24e5a7cdf..fea3448c1 100644 --- a/lib/plaid/models/credit_document_metadata.rb +++ b/lib/plaid/models/credit_document_metadata.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_employer_verification.rb b/lib/plaid/models/credit_employer_verification.rb index 79a31ec8b..8705e7dbe 100644 --- a/lib/plaid/models/credit_employer_verification.rb +++ b/lib/plaid/models/credit_employer_verification.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_employment_get_request.rb b/lib/plaid/models/credit_employment_get_request.rb index 6cc4e5d1e..3c190512a 100644 --- a/lib/plaid/models/credit_employment_get_request.rb +++ b/lib/plaid/models/credit_employment_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_employment_get_response.rb b/lib/plaid/models/credit_employment_get_response.rb index d35e13b75..1bdd1b12c 100644 --- a/lib/plaid/models/credit_employment_get_response.rb +++ b/lib/plaid/models/credit_employment_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_employment_item.rb b/lib/plaid/models/credit_employment_item.rb index f19fdde7d..5c2fc0c29 100644 --- a/lib/plaid/models/credit_employment_item.rb +++ b/lib/plaid/models/credit_employment_item.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_employment_verification.rb b/lib/plaid/models/credit_employment_verification.rb index 85ed48a26..255c946a1 100644 --- a/lib/plaid/models/credit_employment_verification.rb +++ b/lib/plaid/models/credit_employment_verification.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_filter.rb b/lib/plaid/models/credit_filter.rb index 71ac9354b..12fdd8844 100644 --- a/lib/plaid/models/credit_filter.rb +++ b/lib/plaid/models/credit_filter.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_pay_stub.rb b/lib/plaid/models/credit_pay_stub.rb index a23433c82..a8520e10b 100644 --- a/lib/plaid/models/credit_pay_stub.rb +++ b/lib/plaid/models/credit_pay_stub.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_pay_stub_address.rb b/lib/plaid/models/credit_pay_stub_address.rb index 5d18a1199..c311d33a5 100644 --- a/lib/plaid/models/credit_pay_stub_address.rb +++ b/lib/plaid/models/credit_pay_stub_address.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_pay_stub_deductions.rb b/lib/plaid/models/credit_pay_stub_deductions.rb index 8e6afd39f..7ce113717 100644 --- a/lib/plaid/models/credit_pay_stub_deductions.rb +++ b/lib/plaid/models/credit_pay_stub_deductions.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_pay_stub_earnings.rb b/lib/plaid/models/credit_pay_stub_earnings.rb index 8e88c7e3c..63fe24ab5 100644 --- a/lib/plaid/models/credit_pay_stub_earnings.rb +++ b/lib/plaid/models/credit_pay_stub_earnings.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_pay_stub_employee.rb b/lib/plaid/models/credit_pay_stub_employee.rb index 1f7f10121..13875760a 100644 --- a/lib/plaid/models/credit_pay_stub_employee.rb +++ b/lib/plaid/models/credit_pay_stub_employee.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_pay_stub_employer.rb b/lib/plaid/models/credit_pay_stub_employer.rb index 3df542ba6..d5cc79cf4 100644 --- a/lib/plaid/models/credit_pay_stub_employer.rb +++ b/lib/plaid/models/credit_pay_stub_employer.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_pay_stub_net_pay.rb b/lib/plaid/models/credit_pay_stub_net_pay.rb index 021c00320..33b19d2e6 100644 --- a/lib/plaid/models/credit_pay_stub_net_pay.rb +++ b/lib/plaid/models/credit_pay_stub_net_pay.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_payroll_income_get_request.rb b/lib/plaid/models/credit_payroll_income_get_request.rb index 7a965ef11..8904f73f2 100644 --- a/lib/plaid/models/credit_payroll_income_get_request.rb +++ b/lib/plaid/models/credit_payroll_income_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_payroll_income_get_response.rb b/lib/plaid/models/credit_payroll_income_get_response.rb index 608a221c6..ee10378c4 100644 --- a/lib/plaid/models/credit_payroll_income_get_response.rb +++ b/lib/plaid/models/credit_payroll_income_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_payroll_income_precheck_request.rb b/lib/plaid/models/credit_payroll_income_precheck_request.rb index cea2f68f8..96ff427c2 100644 --- a/lib/plaid/models/credit_payroll_income_precheck_request.rb +++ b/lib/plaid/models/credit_payroll_income_precheck_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_payroll_income_precheck_response.rb b/lib/plaid/models/credit_payroll_income_precheck_response.rb index 399e9f9ce..0d9634fbd 100644 --- a/lib/plaid/models/credit_payroll_income_precheck_response.rb +++ b/lib/plaid/models/credit_payroll_income_precheck_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_payroll_income_refresh_request.rb b/lib/plaid/models/credit_payroll_income_refresh_request.rb index 0751a76e7..c91b85ebf 100644 --- a/lib/plaid/models/credit_payroll_income_refresh_request.rb +++ b/lib/plaid/models/credit_payroll_income_refresh_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_payroll_income_refresh_response.rb b/lib/plaid/models/credit_payroll_income_refresh_response.rb index 3d8bbca59..c356d0a10 100644 --- a/lib/plaid/models/credit_payroll_income_refresh_response.rb +++ b/lib/plaid/models/credit_payroll_income_refresh_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_payroll_income_risk_signals_get_request.rb b/lib/plaid/models/credit_payroll_income_risk_signals_get_request.rb index e106ec326..6cd5ca9c7 100644 --- a/lib/plaid/models/credit_payroll_income_risk_signals_get_request.rb +++ b/lib/plaid/models/credit_payroll_income_risk_signals_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_payroll_income_risk_signals_get_response.rb b/lib/plaid/models/credit_payroll_income_risk_signals_get_response.rb index 0933b3e59..8f421febe 100644 --- a/lib/plaid/models/credit_payroll_income_risk_signals_get_response.rb +++ b/lib/plaid/models/credit_payroll_income_risk_signals_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_platform_ids.rb b/lib/plaid/models/credit_platform_ids.rb index b09ca432b..cc096a03f 100644 --- a/lib/plaid/models/credit_platform_ids.rb +++ b/lib/plaid/models/credit_platform_ids.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_relay_create_request.rb b/lib/plaid/models/credit_relay_create_request.rb index 08d0bbbec..d65501f10 100644 --- a/lib/plaid/models/credit_relay_create_request.rb +++ b/lib/plaid/models/credit_relay_create_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_relay_create_response.rb b/lib/plaid/models/credit_relay_create_response.rb index 42f6a399e..85f3de52d 100644 --- a/lib/plaid/models/credit_relay_create_response.rb +++ b/lib/plaid/models/credit_relay_create_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_relay_get_request.rb b/lib/plaid/models/credit_relay_get_request.rb index bf6b40e19..7d8157d29 100644 --- a/lib/plaid/models/credit_relay_get_request.rb +++ b/lib/plaid/models/credit_relay_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_relay_refresh_request.rb b/lib/plaid/models/credit_relay_refresh_request.rb index b1dc76c17..22c381bf9 100644 --- a/lib/plaid/models/credit_relay_refresh_request.rb +++ b/lib/plaid/models/credit_relay_refresh_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_relay_refresh_response.rb b/lib/plaid/models/credit_relay_refresh_response.rb index cf9dea489..41ca2f23a 100644 --- a/lib/plaid/models/credit_relay_refresh_response.rb +++ b/lib/plaid/models/credit_relay_refresh_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_relay_remove_request.rb b/lib/plaid/models/credit_relay_remove_request.rb index 409da2191..af2cc8113 100644 --- a/lib/plaid/models/credit_relay_remove_request.rb +++ b/lib/plaid/models/credit_relay_remove_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_relay_remove_response.rb b/lib/plaid/models/credit_relay_remove_response.rb index a0ebcb75b..96c2bd97f 100644 --- a/lib/plaid/models/credit_relay_remove_response.rb +++ b/lib/plaid/models/credit_relay_remove_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_session.rb b/lib/plaid/models/credit_session.rb index 4be265e5a..852612a3d 100644 --- a/lib/plaid/models/credit_session.rb +++ b/lib/plaid/models/credit_session.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_session_bank_income_result.rb b/lib/plaid/models/credit_session_bank_income_result.rb index 844d66a51..3b0c6c4ee 100644 --- a/lib/plaid/models/credit_session_bank_income_result.rb +++ b/lib/plaid/models/credit_session_bank_income_result.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_session_bank_income_status.rb b/lib/plaid/models/credit_session_bank_income_status.rb index 9a932e55e..54013a29d 100644 --- a/lib/plaid/models/credit_session_bank_income_status.rb +++ b/lib/plaid/models/credit_session_bank_income_status.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_session_document_income_result.rb b/lib/plaid/models/credit_session_document_income_result.rb index 1e63971e4..028083ddc 100644 --- a/lib/plaid/models/credit_session_document_income_result.rb +++ b/lib/plaid/models/credit_session_document_income_result.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_session_error.rb b/lib/plaid/models/credit_session_error.rb index 9e0efc6c2..ef6d8ebaf 100644 --- a/lib/plaid/models/credit_session_error.rb +++ b/lib/plaid/models/credit_session_error.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_session_item_add_result.rb b/lib/plaid/models/credit_session_item_add_result.rb index 6def6df87..1c0224402 100644 --- a/lib/plaid/models/credit_session_item_add_result.rb +++ b/lib/plaid/models/credit_session_item_add_result.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_session_payroll_income_result.rb b/lib/plaid/models/credit_session_payroll_income_result.rb index 1f456dab3..2ddbcb644 100644 --- a/lib/plaid/models/credit_session_payroll_income_result.rb +++ b/lib/plaid/models/credit_session_payroll_income_result.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_session_results.rb b/lib/plaid/models/credit_session_results.rb index 4cc53b868..1249eceee 100644 --- a/lib/plaid/models/credit_session_results.rb +++ b/lib/plaid/models/credit_session_results.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_sessions_get_request.rb b/lib/plaid/models/credit_sessions_get_request.rb index d423f2e09..cbe951b9d 100644 --- a/lib/plaid/models/credit_sessions_get_request.rb +++ b/lib/plaid/models/credit_sessions_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_sessions_get_response.rb b/lib/plaid/models/credit_sessions_get_response.rb index 4999bfbc3..eefb9d897 100644 --- a/lib/plaid/models/credit_sessions_get_response.rb +++ b/lib/plaid/models/credit_sessions_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/credit_w2.rb b/lib/plaid/models/credit_w2.rb index 3c81dcf07..cb7a80b84 100644 --- a/lib/plaid/models/credit_w2.rb +++ b/lib/plaid/models/credit_w2.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/customer_initiated_return_risk.rb b/lib/plaid/models/customer_initiated_return_risk.rb index 92fa82636..2e463337b 100644 --- a/lib/plaid/models/customer_initiated_return_risk.rb +++ b/lib/plaid/models/customer_initiated_return_risk.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/dashboard_user.rb b/lib/plaid/models/dashboard_user.rb index 79cbbc608..9e86d6ed7 100644 --- a/lib/plaid/models/dashboard_user.rb +++ b/lib/plaid/models/dashboard_user.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/dashboard_user_get_request.rb b/lib/plaid/models/dashboard_user_get_request.rb index d21484ddd..2090721b4 100644 --- a/lib/plaid/models/dashboard_user_get_request.rb +++ b/lib/plaid/models/dashboard_user_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/dashboard_user_get_response.rb b/lib/plaid/models/dashboard_user_get_response.rb index d5d553155..60d5ac97e 100644 --- a/lib/plaid/models/dashboard_user_get_response.rb +++ b/lib/plaid/models/dashboard_user_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/dashboard_user_list_request.rb b/lib/plaid/models/dashboard_user_list_request.rb index efbeb4e59..71d167f58 100644 --- a/lib/plaid/models/dashboard_user_list_request.rb +++ b/lib/plaid/models/dashboard_user_list_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/dashboard_user_list_response.rb b/lib/plaid/models/dashboard_user_list_response.rb index 3d8d942b0..07b408d8b 100644 --- a/lib/plaid/models/dashboard_user_list_response.rb +++ b/lib/plaid/models/dashboard_user_list_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/dashboard_user_status.rb b/lib/plaid/models/dashboard_user_status.rb index 276f98ecd..26b9374f9 100644 --- a/lib/plaid/models/dashboard_user_status.rb +++ b/lib/plaid/models/dashboard_user_status.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/date_range.rb b/lib/plaid/models/date_range.rb index f2f874f90..c7ca2259d 100644 --- a/lib/plaid/models/date_range.rb +++ b/lib/plaid/models/date_range.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/deductions.rb b/lib/plaid/models/deductions.rb index 6ae5ca706..aa4d8e3ff 100644 --- a/lib/plaid/models/deductions.rb +++ b/lib/plaid/models/deductions.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/deductions_breakdown.rb b/lib/plaid/models/deductions_breakdown.rb index fbb405648..96779dac0 100644 --- a/lib/plaid/models/deductions_breakdown.rb +++ b/lib/plaid/models/deductions_breakdown.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/deductions_total.rb b/lib/plaid/models/deductions_total.rb index c83f9f9ef..e651791b9 100644 --- a/lib/plaid/models/deductions_total.rb +++ b/lib/plaid/models/deductions_total.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/default_update_webhook.rb b/lib/plaid/models/default_update_webhook.rb index 0adf11863..1206ddb7e 100644 --- a/lib/plaid/models/default_update_webhook.rb +++ b/lib/plaid/models/default_update_webhook.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/deposit_switch_address_data.rb b/lib/plaid/models/deposit_switch_address_data.rb index f07acb9bb..90bebc0a3 100644 --- a/lib/plaid/models/deposit_switch_address_data.rb +++ b/lib/plaid/models/deposit_switch_address_data.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/deposit_switch_alt_create_request.rb b/lib/plaid/models/deposit_switch_alt_create_request.rb index 5fa753255..510ca0920 100644 --- a/lib/plaid/models/deposit_switch_alt_create_request.rb +++ b/lib/plaid/models/deposit_switch_alt_create_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/deposit_switch_alt_create_response.rb b/lib/plaid/models/deposit_switch_alt_create_response.rb index f744667bc..2e8953700 100644 --- a/lib/plaid/models/deposit_switch_alt_create_response.rb +++ b/lib/plaid/models/deposit_switch_alt_create_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/deposit_switch_create_request.rb b/lib/plaid/models/deposit_switch_create_request.rb index 5fb6dfabe..dd2991473 100644 --- a/lib/plaid/models/deposit_switch_create_request.rb +++ b/lib/plaid/models/deposit_switch_create_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/deposit_switch_create_request_options.rb b/lib/plaid/models/deposit_switch_create_request_options.rb index 368eb1f2c..9f60af179 100644 --- a/lib/plaid/models/deposit_switch_create_request_options.rb +++ b/lib/plaid/models/deposit_switch_create_request_options.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/deposit_switch_create_response.rb b/lib/plaid/models/deposit_switch_create_response.rb index 0c8c297fa..d1df68f0c 100644 --- a/lib/plaid/models/deposit_switch_create_response.rb +++ b/lib/plaid/models/deposit_switch_create_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/deposit_switch_get_request.rb b/lib/plaid/models/deposit_switch_get_request.rb index 3dfa44d03..cc22c7976 100644 --- a/lib/plaid/models/deposit_switch_get_request.rb +++ b/lib/plaid/models/deposit_switch_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/deposit_switch_get_response.rb b/lib/plaid/models/deposit_switch_get_response.rb index 606e25fdc..c8b3e47a2 100644 --- a/lib/plaid/models/deposit_switch_get_response.rb +++ b/lib/plaid/models/deposit_switch_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/deposit_switch_state_update_webhook.rb b/lib/plaid/models/deposit_switch_state_update_webhook.rb index 07e4ac3bf..0032aa2b4 100644 --- a/lib/plaid/models/deposit_switch_state_update_webhook.rb +++ b/lib/plaid/models/deposit_switch_state_update_webhook.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/deposit_switch_target_account.rb b/lib/plaid/models/deposit_switch_target_account.rb index 2639c4177..10b050865 100644 --- a/lib/plaid/models/deposit_switch_target_account.rb +++ b/lib/plaid/models/deposit_switch_target_account.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/deposit_switch_target_user.rb b/lib/plaid/models/deposit_switch_target_user.rb index a88ea6f4a..e9356b3af 100644 --- a/lib/plaid/models/deposit_switch_target_user.rb +++ b/lib/plaid/models/deposit_switch_target_user.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/deposit_switch_token_create_request.rb b/lib/plaid/models/deposit_switch_token_create_request.rb index 887b5f46a..b3d9da854 100644 --- a/lib/plaid/models/deposit_switch_token_create_request.rb +++ b/lib/plaid/models/deposit_switch_token_create_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/deposit_switch_token_create_response.rb b/lib/plaid/models/deposit_switch_token_create_response.rb index d6d5de38c..7ce94f5e4 100644 --- a/lib/plaid/models/deposit_switch_token_create_response.rb +++ b/lib/plaid/models/deposit_switch_token_create_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/depository_account_subtype.rb b/lib/plaid/models/depository_account_subtype.rb index fb0d3eaba..be590b963 100644 --- a/lib/plaid/models/depository_account_subtype.rb +++ b/lib/plaid/models/depository_account_subtype.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/depository_filter.rb b/lib/plaid/models/depository_filter.rb index 1de3e40a3..51e63ccda 100644 --- a/lib/plaid/models/depository_filter.rb +++ b/lib/plaid/models/depository_filter.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/disbursement_limits.rb b/lib/plaid/models/disbursement_limits.rb new file mode 100644 index 000000000..7171d75e5 --- /dev/null +++ b/lib/plaid/models/disbursement_limits.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.205.3 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # Requested disbursement (i.e. sending money) limits for the end customer. + class DisbursementLimits + # Average disbursement amount in a single transaction, in dollars. + attr_accessor :average_amount + + # Maximum disbursement amount in a single transaction, in dollars. + attr_accessor :maximum_amount + + # Monthly disbursement amount, in dollars. + attr_accessor :monthly_amount + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'average_amount' => :'average_amount', + :'maximum_amount' => :'maximum_amount', + :'monthly_amount' => :'monthly_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 + { + :'average_amount' => :'Integer', + :'maximum_amount' => :'Integer', + :'monthly_amount' => :'Integer' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `Plaid::DisbursementLimits` 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::DisbursementLimits`. 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?(:'average_amount') + self.average_amount = attributes[:'average_amount'] + end + + if attributes.key?(:'maximum_amount') + self.maximum_amount = attributes[:'maximum_amount'] + end + + if attributes.key?(:'monthly_amount') + self.monthly_amount = attributes[:'monthly_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 + if @average_amount.nil? + invalid_properties.push('invalid value for "average_amount", average_amount cannot be nil.') + end + + if @maximum_amount.nil? + invalid_properties.push('invalid value for "maximum_amount", maximum_amount cannot be nil.') + end + + if @monthly_amount.nil? + invalid_properties.push('invalid value for "monthly_amount", monthly_amount 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 @average_amount.nil? + return false if @maximum_amount.nil? + return false if @monthly_amount.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 && + average_amount == o.average_amount && + maximum_amount == o.maximum_amount && + monthly_amount == o.monthly_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 + [average_amount, maximum_amount, monthly_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/distribution_breakdown.rb b/lib/plaid/models/distribution_breakdown.rb index 07f7b40b2..fccd63645 100644 --- a/lib/plaid/models/distribution_breakdown.rb +++ b/lib/plaid/models/distribution_breakdown.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/doc_type.rb b/lib/plaid/models/doc_type.rb index 6a3a573b3..a949e91e4 100644 --- a/lib/plaid/models/doc_type.rb +++ b/lib/plaid/models/doc_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/document_analysis.rb b/lib/plaid/models/document_analysis.rb index 9d59eb128..e8510aa14 100644 --- a/lib/plaid/models/document_analysis.rb +++ b/lib/plaid/models/document_analysis.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/document_authenticity_match_code.rb b/lib/plaid/models/document_authenticity_match_code.rb index 65f6eaf79..bea0dc2c7 100644 --- a/lib/plaid/models/document_authenticity_match_code.rb +++ b/lib/plaid/models/document_authenticity_match_code.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/document_date_of_birth_match_code.rb b/lib/plaid/models/document_date_of_birth_match_code.rb index af59c0b80..cc2fa15c0 100644 --- a/lib/plaid/models/document_date_of_birth_match_code.rb +++ b/lib/plaid/models/document_date_of_birth_match_code.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/document_metadata.rb b/lib/plaid/models/document_metadata.rb index 572321f4f..9877aab2e 100644 --- a/lib/plaid/models/document_metadata.rb +++ b/lib/plaid/models/document_metadata.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/document_name_match_code.rb b/lib/plaid/models/document_name_match_code.rb index 2a8830dae..36f72a990 100644 --- a/lib/plaid/models/document_name_match_code.rb +++ b/lib/plaid/models/document_name_match_code.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/document_risk_signal.rb b/lib/plaid/models/document_risk_signal.rb index ad49f4b9f..54b7c4d60 100644 --- a/lib/plaid/models/document_risk_signal.rb +++ b/lib/plaid/models/document_risk_signal.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -36,6 +36,9 @@ class DocumentRiskSignal # A human-readable explanation providing more detail into the particular risk signal attr_accessor :signal_description + # The relevant page associated with the risk signal + attr_accessor :page_number + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -45,7 +48,8 @@ def self.attribute_map :'institution_metadata' => :'institution_metadata', :'expected_value' => :'expected_value', :'actual_value' => :'actual_value', - :'signal_description' => :'signal_description' + :'signal_description' => :'signal_description', + :'page_number' => :'page_number' } end @@ -63,7 +67,8 @@ def self.openapi_types :'institution_metadata' => :'DocumentRiskSignalInstitutionMetadata', :'expected_value' => :'String', :'actual_value' => :'String', - :'signal_description' => :'String' + :'signal_description' => :'String', + :'page_number' => :'Integer' } end @@ -76,7 +81,8 @@ def self.openapi_nullable :'institution_metadata', :'expected_value', :'actual_value', - :'signal_description' + :'signal_description', + :'page_number' ]) end @@ -122,6 +128,10 @@ def initialize(attributes = {}) if attributes.key?(:'signal_description') self.signal_description = attributes[:'signal_description'] end + + if attributes.key?(:'page_number') + self.page_number = attributes[:'page_number'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -148,7 +158,8 @@ def ==(o) institution_metadata == o.institution_metadata && expected_value == o.expected_value && actual_value == o.actual_value && - signal_description == o.signal_description + signal_description == o.signal_description && + page_number == o.page_number end # @see the `==` method @@ -160,7 +171,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [type, field, has_fraud_risk, institution_metadata, expected_value, actual_value, signal_description].hash + [type, field, has_fraud_risk, institution_metadata, expected_value, actual_value, signal_description, page_number].hash end # Builds the object from hash diff --git a/lib/plaid/models/document_risk_signal_institution_metadata.rb b/lib/plaid/models/document_risk_signal_institution_metadata.rb index bbc67f09e..fc0d9a6f8 100644 --- a/lib/plaid/models/document_risk_signal_institution_metadata.rb +++ b/lib/plaid/models/document_risk_signal_institution_metadata.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/document_risk_signals_object.rb b/lib/plaid/models/document_risk_signals_object.rb index 30f6677fa..5160d3819 100644 --- a/lib/plaid/models/document_risk_signals_object.rb +++ b/lib/plaid/models/document_risk_signals_object.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/document_risk_summary.rb b/lib/plaid/models/document_risk_summary.rb new file mode 100644 index 000000000..1e418f75a --- /dev/null +++ b/lib/plaid/models/document_risk_summary.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.205.3 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # A summary across all risk signals associated with a document + class DocumentRiskSummary + # A number between 0 and 100, inclusive, where a score closer to 0 indicates a document is likely to be trustworthy and a score closer to 100 indicates a document is likely to be fraudulent + attr_accessor :risk_score + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'risk_score' => :'risk_score' + } + 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 + { + :'risk_score' => :'Float' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'risk_score' + ]) + 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::DocumentRiskSummary` 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::DocumentRiskSummary`. 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?(:'risk_score') + self.risk_score = attributes[:'risk_score'] + 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 && + risk_score == o.risk_score + 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 + [risk_score].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/document_status.rb b/lib/plaid/models/document_status.rb index 2c4291dbc..97709ce85 100644 --- a/lib/plaid/models/document_status.rb +++ b/lib/plaid/models/document_status.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/documentary_verification.rb b/lib/plaid/models/documentary_verification.rb index ce9bcdb67..e2c0b5f9d 100644 --- a/lib/plaid/models/documentary_verification.rb +++ b/lib/plaid/models/documentary_verification.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/documentary_verification_document.rb b/lib/plaid/models/documentary_verification_document.rb index 0315f8a6b..266d837f1 100644 --- a/lib/plaid/models/documentary_verification_document.rb +++ b/lib/plaid/models/documentary_verification_document.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/earnings.rb b/lib/plaid/models/earnings.rb index 17d8ff346..450ed9fe7 100644 --- a/lib/plaid/models/earnings.rb +++ b/lib/plaid/models/earnings.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/earnings_breakdown.rb b/lib/plaid/models/earnings_breakdown.rb index ebd95782d..7baafc399 100644 --- a/lib/plaid/models/earnings_breakdown.rb +++ b/lib/plaid/models/earnings_breakdown.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/earnings_breakdown_canonical_description.rb b/lib/plaid/models/earnings_breakdown_canonical_description.rb index ed5bdecae..6d014ad53 100644 --- a/lib/plaid/models/earnings_breakdown_canonical_description.rb +++ b/lib/plaid/models/earnings_breakdown_canonical_description.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/earnings_total.rb b/lib/plaid/models/earnings_total.rb index 023b644b6..e55c83d88 100644 --- a/lib/plaid/models/earnings_total.rb +++ b/lib/plaid/models/earnings_total.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/email.rb b/lib/plaid/models/email.rb index 1317280ec..48292a713 100644 --- a/lib/plaid/models/email.rb +++ b/lib/plaid/models/email.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/email_address_match_score.rb b/lib/plaid/models/email_address_match_score.rb index 925eb83c8..106b43c47 100644 --- a/lib/plaid/models/email_address_match_score.rb +++ b/lib/plaid/models/email_address_match_score.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -17,12 +17,12 @@ module Plaid # Score found by matching email provided by the API with the email on the account at the financial institution. If the account contains multiple owners, the maximum match score is filled. class EmailAddressMatchScore # Match score for normalized email. 100 is a perfect match and 0 is a no match. If the email is missing from either the API or financial institution, this is empty. - attr_accessor :scores + attr_accessor :score # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'scores' => :'scores' + :'score' => :'score' } end @@ -34,14 +34,14 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types { - :'scores' => :'Integer' + :'score' => :'Integer' } end # List of attributes with nullable: true def self.openapi_nullable Set.new([ - :'scores' + :'score' ]) end @@ -60,8 +60,8 @@ def initialize(attributes = {}) h[k.to_sym] = v } - if attributes.key?(:'scores') - self.scores = attributes[:'scores'] + if attributes.key?(:'score') + self.score = attributes[:'score'] end end @@ -83,7 +83,7 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - scores == o.scores + score == o.score end # @see the `==` method @@ -95,7 +95,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [scores].hash + [score].hash end # Builds the object from hash diff --git a/lib/plaid/models/employee.rb b/lib/plaid/models/employee.rb index d63111d99..52d755c63 100644 --- a/lib/plaid/models/employee.rb +++ b/lib/plaid/models/employee.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/employee_income_summary_field_string.rb b/lib/plaid/models/employee_income_summary_field_string.rb index edc022a72..12b5f6818 100644 --- a/lib/plaid/models/employee_income_summary_field_string.rb +++ b/lib/plaid/models/employee_income_summary_field_string.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/employer.rb b/lib/plaid/models/employer.rb index 0a2920e0e..176163fb8 100644 --- a/lib/plaid/models/employer.rb +++ b/lib/plaid/models/employer.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/employer_income_summary_field_string.rb b/lib/plaid/models/employer_income_summary_field_string.rb index 69db33445..ce28b944d 100644 --- a/lib/plaid/models/employer_income_summary_field_string.rb +++ b/lib/plaid/models/employer_income_summary_field_string.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/employer_verification.rb b/lib/plaid/models/employer_verification.rb index 2a5c33272..25e3336b0 100644 --- a/lib/plaid/models/employer_verification.rb +++ b/lib/plaid/models/employer_verification.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/employers_search_request.rb b/lib/plaid/models/employers_search_request.rb index 794ad5d55..08f617a05 100644 --- a/lib/plaid/models/employers_search_request.rb +++ b/lib/plaid/models/employers_search_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/employers_search_response.rb b/lib/plaid/models/employers_search_response.rb index ad9f28d8d..51276e3ee 100644 --- a/lib/plaid/models/employers_search_response.rb +++ b/lib/plaid/models/employers_search_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/employment_details.rb b/lib/plaid/models/employment_details.rb index 34a9fa44f..dfda09051 100644 --- a/lib/plaid/models/employment_details.rb +++ b/lib/plaid/models/employment_details.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/employment_verification.rb b/lib/plaid/models/employment_verification.rb index ddeed59c6..a3817bcde 100644 --- a/lib/plaid/models/employment_verification.rb +++ b/lib/plaid/models/employment_verification.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/employment_verification_get_request.rb b/lib/plaid/models/employment_verification_get_request.rb index 8e15ac8cf..f9d0fd6f9 100644 --- a/lib/plaid/models/employment_verification_get_request.rb +++ b/lib/plaid/models/employment_verification_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/employment_verification_get_response.rb b/lib/plaid/models/employment_verification_get_response.rb index e8b8dc9ef..b008705fc 100644 --- a/lib/plaid/models/employment_verification_get_response.rb +++ b/lib/plaid/models/employment_verification_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/employment_verification_status.rb b/lib/plaid/models/employment_verification_status.rb index 53af666ba..30c088e44 100644 --- a/lib/plaid/models/employment_verification_status.rb +++ b/lib/plaid/models/employment_verification_status.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/enhancements.rb b/lib/plaid/models/enhancements.rb index 167aada1d..5649a7764 100644 --- a/lib/plaid/models/enhancements.rb +++ b/lib/plaid/models/enhancements.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/enrich_transaction_direction.rb b/lib/plaid/models/enrich_transaction_direction.rb new file mode 100644 index 000000000..370e6717f --- /dev/null +++ b/lib/plaid/models/enrich_transaction_direction.rb @@ -0,0 +1,39 @@ +=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.205.3 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + class EnrichTransactionDirection + INFLOW = "INFLOW".freeze + OUTFLOW = "OUTFLOW".freeze + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def self.build_from_hash(value) + new.build_from_hash(value) + end + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def build_from_hash(value) + # We do not validate that the value is one of the enums set in the OpenAPI + # file because we want to be able to add to our list of enums without + # breaking this client library. + value + end + end + +end diff --git a/lib/plaid/models/enrichments.rb b/lib/plaid/models/enrichments.rb new file mode 100644 index 000000000..d77feb1ac --- /dev/null +++ b/lib/plaid/models/enrichments.rb @@ -0,0 +1,342 @@ +=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.205.3 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # A grouping of the Plaid produced transaction enrichment fields. + class Enrichments + # The name of the primary counterparty, such as the merchant or the financial institution, as extracted by Plaid from the raw description. + attr_accessor :merchant_name + + # The website associated with this transaction. + attr_accessor :website + + # A link to the logo associated with this transaction. The logo will always be 100x100 resolution. + attr_accessor :logo_url + + # The check number of the transaction. This field is only populated for check transactions. + attr_accessor :check_number + + 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/transactions/#categoriesget). + attr_accessor :legacy_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/transactions/#categoriesget). + attr_accessor :legacy_category + + attr_accessor :location + + attr_accessor :personal_finance_category + + # A link to the icon associated with the primary personal finance category. The logo will always be 100x100 resolution. + attr_accessor :personal_finance_category_icon_url + + # The counterparties present in the transaction. Counterparties, such as the merchant or the financial institution, are extracted by Plaid from the raw description. + attr_accessor :counterparties + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'merchant_name' => :'merchant_name', + :'website' => :'website', + :'logo_url' => :'logo_url', + :'check_number' => :'check_number', + :'payment_channel' => :'payment_channel', + :'legacy_category_id' => :'legacy_category_id', + :'legacy_category' => :'legacy_category', + :'location' => :'location', + :'personal_finance_category' => :'personal_finance_category', + :'personal_finance_category_icon_url' => :'personal_finance_category_icon_url', + :'counterparties' => :'counterparties' + } + 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 + { + :'merchant_name' => :'String', + :'website' => :'String', + :'logo_url' => :'String', + :'check_number' => :'String', + :'payment_channel' => :'PaymentChannel', + :'legacy_category_id' => :'String', + :'legacy_category' => :'Array', + :'location' => :'Location', + :'personal_finance_category' => :'PersonalFinanceCategory', + :'personal_finance_category_icon_url' => :'String', + :'counterparties' => :'Array' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'merchant_name', + :'website', + :'logo_url', + :'check_number', + :'legacy_category_id', + :'personal_finance_category', + ]) + 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::Enrichments` 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::Enrichments`. 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?(:'merchant_name') + self.merchant_name = attributes[:'merchant_name'] + end + + if attributes.key?(:'website') + self.website = attributes[:'website'] + end + + if attributes.key?(:'logo_url') + self.logo_url = attributes[:'logo_url'] + end + + if attributes.key?(:'check_number') + self.check_number = attributes[:'check_number'] + end + + if attributes.key?(:'payment_channel') + self.payment_channel = attributes[:'payment_channel'] + end + + if attributes.key?(:'legacy_category_id') + self.legacy_category_id = attributes[:'legacy_category_id'] + end + + if attributes.key?(:'legacy_category') + if (value = attributes[:'legacy_category']).is_a?(Array) + self.legacy_category = value + end + end + + if attributes.key?(:'location') + self.location = attributes[:'location'] + end + + if attributes.key?(:'personal_finance_category') + self.personal_finance_category = attributes[:'personal_finance_category'] + end + + if attributes.key?(:'personal_finance_category_icon_url') + self.personal_finance_category_icon_url = attributes[:'personal_finance_category_icon_url'] + end + + if attributes.key?(:'counterparties') + if (value = attributes[:'counterparties']).is_a?(Array) + self.counterparties = 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 @payment_channel.nil? + invalid_properties.push('invalid value for "payment_channel", payment_channel cannot be nil.') + end + + if @location.nil? + invalid_properties.push('invalid value for "location", location cannot be nil.') + end + + if @personal_finance_category_icon_url.nil? + invalid_properties.push('invalid value for "personal_finance_category_icon_url", personal_finance_category_icon_url 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 @payment_channel.nil? + return false if @location.nil? + return false if @personal_finance_category_icon_url.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 && + merchant_name == o.merchant_name && + website == o.website && + logo_url == o.logo_url && + check_number == o.check_number && + payment_channel == o.payment_channel && + legacy_category_id == o.legacy_category_id && + legacy_category == o.legacy_category && + location == o.location && + personal_finance_category == o.personal_finance_category && + personal_finance_category_icon_url == o.personal_finance_category_icon_url && + counterparties == o.counterparties + 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 + [merchant_name, website, logo_url, check_number, payment_channel, legacy_category_id, legacy_category, location, personal_finance_category, personal_finance_category_icon_url, counterparties].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/entity_document.rb b/lib/plaid/models/entity_document.rb index 3c47ab783..85bd417a2 100644 --- a/lib/plaid/models/entity_document.rb +++ b/lib/plaid/models/entity_document.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/entity_document_type.rb b/lib/plaid/models/entity_document_type.rb index 7720f4da8..3e351f0ab 100644 --- a/lib/plaid/models/entity_document_type.rb +++ b/lib/plaid/models/entity_document_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/entity_screening_hit_analysis.rb b/lib/plaid/models/entity_screening_hit_analysis.rb index 3a7195fa3..ee8cf23d7 100644 --- a/lib/plaid/models/entity_screening_hit_analysis.rb +++ b/lib/plaid/models/entity_screening_hit_analysis.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/entity_screening_hit_data.rb b/lib/plaid/models/entity_screening_hit_data.rb index 5c973ea83..0b9cf1d10 100644 --- a/lib/plaid/models/entity_screening_hit_data.rb +++ b/lib/plaid/models/entity_screening_hit_data.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/entity_screening_hit_documents_items.rb b/lib/plaid/models/entity_screening_hit_documents_items.rb index 63fdfe897..68d850561 100644 --- a/lib/plaid/models/entity_screening_hit_documents_items.rb +++ b/lib/plaid/models/entity_screening_hit_documents_items.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/entity_screening_hit_emails.rb b/lib/plaid/models/entity_screening_hit_emails.rb index c71d51e7b..8f92f22c2 100644 --- a/lib/plaid/models/entity_screening_hit_emails.rb +++ b/lib/plaid/models/entity_screening_hit_emails.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/entity_screening_hit_emails_items.rb b/lib/plaid/models/entity_screening_hit_emails_items.rb index 528efa387..52458e2c1 100644 --- a/lib/plaid/models/entity_screening_hit_emails_items.rb +++ b/lib/plaid/models/entity_screening_hit_emails_items.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/entity_screening_hit_names.rb b/lib/plaid/models/entity_screening_hit_names.rb index def3d5944..41a5c06fc 100644 --- a/lib/plaid/models/entity_screening_hit_names.rb +++ b/lib/plaid/models/entity_screening_hit_names.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/entity_screening_hit_names_items.rb b/lib/plaid/models/entity_screening_hit_names_items.rb index dbe451bc6..fdaa4fc74 100644 --- a/lib/plaid/models/entity_screening_hit_names_items.rb +++ b/lib/plaid/models/entity_screening_hit_names_items.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/entity_screening_hit_phone_numbers.rb b/lib/plaid/models/entity_screening_hit_phone_numbers.rb index a3fcc2b66..451e952a5 100644 --- a/lib/plaid/models/entity_screening_hit_phone_numbers.rb +++ b/lib/plaid/models/entity_screening_hit_phone_numbers.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/entity_screening_hit_urls.rb b/lib/plaid/models/entity_screening_hit_urls.rb index 3c7e6e180..d110fecf7 100644 --- a/lib/plaid/models/entity_screening_hit_urls.rb +++ b/lib/plaid/models/entity_screening_hit_urls.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/entity_screening_hit_urls_items.rb b/lib/plaid/models/entity_screening_hit_urls_items.rb index ca08eb651..660840685 100644 --- a/lib/plaid/models/entity_screening_hit_urls_items.rb +++ b/lib/plaid/models/entity_screening_hit_urls_items.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/entity_screening_hits_phone_number_items.rb b/lib/plaid/models/entity_screening_hits_phone_number_items.rb index 63abfda29..274011c25 100644 --- a/lib/plaid/models/entity_screening_hits_phone_number_items.rb +++ b/lib/plaid/models/entity_screening_hits_phone_number_items.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/entity_screening_status_updated_webhook.rb b/lib/plaid/models/entity_screening_status_updated_webhook.rb index ff15ed130..e1d2ae296 100644 --- a/lib/plaid/models/entity_screening_status_updated_webhook.rb +++ b/lib/plaid/models/entity_screening_status_updated_webhook.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/entity_watchlist_code.rb b/lib/plaid/models/entity_watchlist_code.rb index 99b5cf561..97a0d7324 100644 --- a/lib/plaid/models/entity_watchlist_code.rb +++ b/lib/plaid/models/entity_watchlist_code.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/entity_watchlist_program.rb b/lib/plaid/models/entity_watchlist_program.rb index 3db6c2746..8e1f1d5cc 100644 --- a/lib/plaid/models/entity_watchlist_program.rb +++ b/lib/plaid/models/entity_watchlist_program.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/entity_watchlist_screening.rb b/lib/plaid/models/entity_watchlist_screening.rb index 7cc730fa1..762fc3a4c 100644 --- a/lib/plaid/models/entity_watchlist_screening.rb +++ b/lib/plaid/models/entity_watchlist_screening.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/entity_watchlist_screening_hit.rb b/lib/plaid/models/entity_watchlist_screening_hit.rb index 5ed0f3cb5..8014ec77c 100644 --- a/lib/plaid/models/entity_watchlist_screening_hit.rb +++ b/lib/plaid/models/entity_watchlist_screening_hit.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/entity_watchlist_screening_review.rb b/lib/plaid/models/entity_watchlist_screening_review.rb index e364321a0..1459d2f32 100644 --- a/lib/plaid/models/entity_watchlist_screening_review.rb +++ b/lib/plaid/models/entity_watchlist_screening_review.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/entity_watchlist_screening_search_terms.rb b/lib/plaid/models/entity_watchlist_screening_search_terms.rb index 89baabb21..ab7721192 100644 --- a/lib/plaid/models/entity_watchlist_screening_search_terms.rb +++ b/lib/plaid/models/entity_watchlist_screening_search_terms.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/entity_watchlist_search_terms.rb b/lib/plaid/models/entity_watchlist_search_terms.rb index 9ba2399fd..7496dc206 100644 --- a/lib/plaid/models/entity_watchlist_search_terms.rb +++ b/lib/plaid/models/entity_watchlist_search_terms.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/expiration_date.rb b/lib/plaid/models/expiration_date.rb index 17a4e3a07..c3c74d961 100644 --- a/lib/plaid/models/expiration_date.rb +++ b/lib/plaid/models/expiration_date.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/external_payment_initiation_consent_options.rb b/lib/plaid/models/external_payment_initiation_consent_options.rb index 5890acc52..1e8c29f04 100644 --- a/lib/plaid/models/external_payment_initiation_consent_options.rb +++ b/lib/plaid/models/external_payment_initiation_consent_options.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/external_payment_options.rb b/lib/plaid/models/external_payment_options.rb index 85b332ab6..46228aa37 100644 --- a/lib/plaid/models/external_payment_options.rb +++ b/lib/plaid/models/external_payment_options.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/external_payment_refund_details.rb b/lib/plaid/models/external_payment_refund_details.rb index 248623b49..0b98861f0 100644 --- a/lib/plaid/models/external_payment_refund_details.rb +++ b/lib/plaid/models/external_payment_refund_details.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/external_payment_schedule_base.rb b/lib/plaid/models/external_payment_schedule_base.rb index 0f462e52d..63be35e1f 100644 --- a/lib/plaid/models/external_payment_schedule_base.rb +++ b/lib/plaid/models/external_payment_schedule_base.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/external_payment_schedule_get.rb b/lib/plaid/models/external_payment_schedule_get.rb index b4e5a3368..00a5a9228 100644 --- a/lib/plaid/models/external_payment_schedule_get.rb +++ b/lib/plaid/models/external_payment_schedule_get.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/external_payment_schedule_request.rb b/lib/plaid/models/external_payment_schedule_request.rb index 5ea3d0755..748a4554b 100644 --- a/lib/plaid/models/external_payment_schedule_request.rb +++ b/lib/plaid/models/external_payment_schedule_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/fdx_content_types.rb b/lib/plaid/models/fdx_content_types.rb index 0a499da77..ef8a1a48b 100644 --- a/lib/plaid/models/fdx_content_types.rb +++ b/lib/plaid/models/fdx_content_types.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/fdx_hateoas_link.rb b/lib/plaid/models/fdx_hateoas_link.rb index d677cf8fb..3e3674b24 100644 --- a/lib/plaid/models/fdx_hateoas_link.rb +++ b/lib/plaid/models/fdx_hateoas_link.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/fdx_hateoas_link_action.rb b/lib/plaid/models/fdx_hateoas_link_action.rb index 90b7ec5a9..6c15eb2e1 100644 --- a/lib/plaid/models/fdx_hateoas_link_action.rb +++ b/lib/plaid/models/fdx_hateoas_link_action.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/fdx_notification.rb b/lib/plaid/models/fdx_notification.rb index 96e0c8356..a747e9e5c 100644 --- a/lib/plaid/models/fdx_notification.rb +++ b/lib/plaid/models/fdx_notification.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/fdx_notification_category.rb b/lib/plaid/models/fdx_notification_category.rb index d39a14adb..5203f6eda 100644 --- a/lib/plaid/models/fdx_notification_category.rb +++ b/lib/plaid/models/fdx_notification_category.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/fdx_notification_payload.rb b/lib/plaid/models/fdx_notification_payload.rb index 2b908edb4..dd8c8f413 100644 --- a/lib/plaid/models/fdx_notification_payload.rb +++ b/lib/plaid/models/fdx_notification_payload.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/fdx_notification_payload_id_type.rb b/lib/plaid/models/fdx_notification_payload_id_type.rb index 10cbd2f99..d3f9634b4 100644 --- a/lib/plaid/models/fdx_notification_payload_id_type.rb +++ b/lib/plaid/models/fdx_notification_payload_id_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/fdx_notification_priority.rb b/lib/plaid/models/fdx_notification_priority.rb index bf0178452..2b82a5614 100644 --- a/lib/plaid/models/fdx_notification_priority.rb +++ b/lib/plaid/models/fdx_notification_priority.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/fdx_notification_severity.rb b/lib/plaid/models/fdx_notification_severity.rb index 3f7ea38e6..43435963b 100644 --- a/lib/plaid/models/fdx_notification_severity.rb +++ b/lib/plaid/models/fdx_notification_severity.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/fdx_notification_type.rb b/lib/plaid/models/fdx_notification_type.rb index 15726c6f6..5ce03e3c0 100644 --- a/lib/plaid/models/fdx_notification_type.rb +++ b/lib/plaid/models/fdx_notification_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/fdx_party.rb b/lib/plaid/models/fdx_party.rb index 1b8995dee..6457024aa 100644 --- a/lib/plaid/models/fdx_party.rb +++ b/lib/plaid/models/fdx_party.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/fdx_party_registry.rb b/lib/plaid/models/fdx_party_registry.rb index ab858b426..63f9d1afa 100644 --- a/lib/plaid/models/fdx_party_registry.rb +++ b/lib/plaid/models/fdx_party_registry.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/fdx_party_type.rb b/lib/plaid/models/fdx_party_type.rb index f46e0e4cc..1a92a50cd 100644 --- a/lib/plaid/models/fdx_party_type.rb +++ b/lib/plaid/models/fdx_party_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/fdxfi_attribute.rb b/lib/plaid/models/fdxfi_attribute.rb index 70cc5f756..2f1f9ee00 100644 --- a/lib/plaid/models/fdxfi_attribute.rb +++ b/lib/plaid/models/fdxfi_attribute.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/form1099_type.rb b/lib/plaid/models/form1099_type.rb index 7c50bde1c..95ad8e1ed 100644 --- a/lib/plaid/models/form1099_type.rb +++ b/lib/plaid/models/form1099_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/generic_screening_hit_location_items.rb b/lib/plaid/models/generic_screening_hit_location_items.rb index b2b63b1c2..fe4dd82b5 100644 --- a/lib/plaid/models/generic_screening_hit_location_items.rb +++ b/lib/plaid/models/generic_screening_hit_location_items.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/health_incident.rb b/lib/plaid/models/health_incident.rb index 9bf64cfe3..bf464bf49 100644 --- a/lib/plaid/models/health_incident.rb +++ b/lib/plaid/models/health_incident.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/historical_balance.rb b/lib/plaid/models/historical_balance.rb index 26762727f..e8fe9b87d 100644 --- a/lib/plaid/models/historical_balance.rb +++ b/lib/plaid/models/historical_balance.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/historical_update_webhook.rb b/lib/plaid/models/historical_update_webhook.rb index 85a1d12cb..fd81091f0 100644 --- a/lib/plaid/models/historical_update_webhook.rb +++ b/lib/plaid/models/historical_update_webhook.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/holding.rb b/lib/plaid/models/holding.rb index 2a3347832..aa6ff35a3 100644 --- a/lib/plaid/models/holding.rb +++ b/lib/plaid/models/holding.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/holdings_default_update_webhook.rb b/lib/plaid/models/holdings_default_update_webhook.rb index d64beadc5..93f166a59 100644 --- a/lib/plaid/models/holdings_default_update_webhook.rb +++ b/lib/plaid/models/holdings_default_update_webhook.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/holdings_override.rb b/lib/plaid/models/holdings_override.rb index c0d9d3df5..4afc79116 100644 --- a/lib/plaid/models/holdings_override.rb +++ b/lib/plaid/models/holdings_override.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/id_number_type.rb b/lib/plaid/models/id_number_type.rb index 9275bef9c..c747d2c44 100644 --- a/lib/plaid/models/id_number_type.rb +++ b/lib/plaid/models/id_number_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/identity_default_update_webhook.rb b/lib/plaid/models/identity_default_update_webhook.rb index 273374f6d..ff99a9ecc 100644 --- a/lib/plaid/models/identity_default_update_webhook.rb +++ b/lib/plaid/models/identity_default_update_webhook.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/identity_get_request.rb b/lib/plaid/models/identity_get_request.rb index 2c81e8d87..b531233de 100644 --- a/lib/plaid/models/identity_get_request.rb +++ b/lib/plaid/models/identity_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/identity_get_request_options.rb b/lib/plaid/models/identity_get_request_options.rb index fbf7c4a3a..cb26e06f7 100644 --- a/lib/plaid/models/identity_get_request_options.rb +++ b/lib/plaid/models/identity_get_request_options.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/identity_get_response.rb b/lib/plaid/models/identity_get_response.rb index b53f7306c..a609de378 100644 --- a/lib/plaid/models/identity_get_response.rb +++ b/lib/plaid/models/identity_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/identity_match_request.rb b/lib/plaid/models/identity_match_request.rb index 3d9ad54c3..9aa8e4c35 100644 --- a/lib/plaid/models/identity_match_request.rb +++ b/lib/plaid/models/identity_match_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/identity_match_request_options.rb b/lib/plaid/models/identity_match_request_options.rb index b80f2b320..d161bbb3b 100644 --- a/lib/plaid/models/identity_match_request_options.rb +++ b/lib/plaid/models/identity_match_request_options.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/identity_match_response.rb b/lib/plaid/models/identity_match_response.rb index ca3cb43ed..e7c55105c 100644 --- a/lib/plaid/models/identity_match_response.rb +++ b/lib/plaid/models/identity_match_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/identity_match_user.rb b/lib/plaid/models/identity_match_user.rb index c6293acbd..b5f052012 100644 --- a/lib/plaid/models/identity_match_user.rb +++ b/lib/plaid/models/identity_match_user.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/identity_update_types.rb b/lib/plaid/models/identity_update_types.rb index ae7ec9c89..ca1a0e4eb 100644 --- a/lib/plaid/models/identity_update_types.rb +++ b/lib/plaid/models/identity_update_types.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/identity_verification.rb b/lib/plaid/models/identity_verification.rb index acfaba482..f5bcf75f1 100644 --- a/lib/plaid/models/identity_verification.rb +++ b/lib/plaid/models/identity_verification.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/identity_verification_create_request.rb b/lib/plaid/models/identity_verification_create_request.rb index 4bcdc5436..e41ba2330 100644 --- a/lib/plaid/models/identity_verification_create_request.rb +++ b/lib/plaid/models/identity_verification_create_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/identity_verification_create_response.rb b/lib/plaid/models/identity_verification_create_response.rb index 189fa3922..98d616869 100644 --- a/lib/plaid/models/identity_verification_create_response.rb +++ b/lib/plaid/models/identity_verification_create_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/identity_verification_get_request.rb b/lib/plaid/models/identity_verification_get_request.rb index e142d9759..3357493cd 100644 --- a/lib/plaid/models/identity_verification_get_request.rb +++ b/lib/plaid/models/identity_verification_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/identity_verification_get_response.rb b/lib/plaid/models/identity_verification_get_response.rb index 13c3517b3..d8d12b322 100644 --- a/lib/plaid/models/identity_verification_get_response.rb +++ b/lib/plaid/models/identity_verification_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/identity_verification_list_request.rb b/lib/plaid/models/identity_verification_list_request.rb index 7e1283840..43fbc1424 100644 --- a/lib/plaid/models/identity_verification_list_request.rb +++ b/lib/plaid/models/identity_verification_list_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/identity_verification_list_response.rb b/lib/plaid/models/identity_verification_list_response.rb index e924e7fb4..2d334a18a 100644 --- a/lib/plaid/models/identity_verification_list_response.rb +++ b/lib/plaid/models/identity_verification_list_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/identity_verification_request_user.rb b/lib/plaid/models/identity_verification_request_user.rb index bdadce7d1..3502c0cc1 100644 --- a/lib/plaid/models/identity_verification_request_user.rb +++ b/lib/plaid/models/identity_verification_request_user.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/identity_verification_retried_webhook.rb b/lib/plaid/models/identity_verification_retried_webhook.rb index 2fa7b1d9c..b29b8adec 100644 --- a/lib/plaid/models/identity_verification_retried_webhook.rb +++ b/lib/plaid/models/identity_verification_retried_webhook.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/identity_verification_retry_request.rb b/lib/plaid/models/identity_verification_retry_request.rb index 62e2bb2d0..01629ee8f 100644 --- a/lib/plaid/models/identity_verification_retry_request.rb +++ b/lib/plaid/models/identity_verification_retry_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/identity_verification_retry_request_steps_object.rb b/lib/plaid/models/identity_verification_retry_request_steps_object.rb index a9243958c..7a81a75ac 100644 --- a/lib/plaid/models/identity_verification_retry_request_steps_object.rb +++ b/lib/plaid/models/identity_verification_retry_request_steps_object.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/identity_verification_retry_response.rb b/lib/plaid/models/identity_verification_retry_response.rb index 7c16c4925..e1707d9c6 100644 --- a/lib/plaid/models/identity_verification_retry_response.rb +++ b/lib/plaid/models/identity_verification_retry_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/identity_verification_status.rb b/lib/plaid/models/identity_verification_status.rb index 2ff974ea2..024b637e5 100644 --- a/lib/plaid/models/identity_verification_status.rb +++ b/lib/plaid/models/identity_verification_status.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/identity_verification_status_updated_webhook.rb b/lib/plaid/models/identity_verification_status_updated_webhook.rb index 86529797d..79c3fe3a6 100644 --- a/lib/plaid/models/identity_verification_status_updated_webhook.rb +++ b/lib/plaid/models/identity_verification_status_updated_webhook.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/identity_verification_step_status.rb b/lib/plaid/models/identity_verification_step_status.rb index 3a4d5303f..e99836178 100644 --- a/lib/plaid/models/identity_verification_step_status.rb +++ b/lib/plaid/models/identity_verification_step_status.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/identity_verification_step_summary.rb b/lib/plaid/models/identity_verification_step_summary.rb index 5af0275f1..28e9057f1 100644 --- a/lib/plaid/models/identity_verification_step_summary.rb +++ b/lib/plaid/models/identity_verification_step_summary.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/identity_verification_step_updated_webhook.rb b/lib/plaid/models/identity_verification_step_updated_webhook.rb index 19d1562a9..b41e1033a 100644 --- a/lib/plaid/models/identity_verification_step_updated_webhook.rb +++ b/lib/plaid/models/identity_verification_step_updated_webhook.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/identity_verification_template_reference.rb b/lib/plaid/models/identity_verification_template_reference.rb index 40c949e12..08f8bad3e 100644 --- a/lib/plaid/models/identity_verification_template_reference.rb +++ b/lib/plaid/models/identity_verification_template_reference.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/identity_verification_user_address.rb b/lib/plaid/models/identity_verification_user_address.rb index 8115bbae7..baed815c4 100644 --- a/lib/plaid/models/identity_verification_user_address.rb +++ b/lib/plaid/models/identity_verification_user_address.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/identity_verification_user_data.rb b/lib/plaid/models/identity_verification_user_data.rb index 755c2c867..ed2aabba5 100644 --- a/lib/plaid/models/identity_verification_user_data.rb +++ b/lib/plaid/models/identity_verification_user_data.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/image_quality.rb b/lib/plaid/models/image_quality.rb index e2aa6c7ec..4fe8f756f 100644 --- a/lib/plaid/models/image_quality.rb +++ b/lib/plaid/models/image_quality.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/incident_update.rb b/lib/plaid/models/incident_update.rb index bcae7d09c..3e03a5df2 100644 --- a/lib/plaid/models/incident_update.rb +++ b/lib/plaid/models/incident_update.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/income_breakdown.rb b/lib/plaid/models/income_breakdown.rb index 2d88a52f4..3d2e9eeea 100644 --- a/lib/plaid/models/income_breakdown.rb +++ b/lib/plaid/models/income_breakdown.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/income_breakdown_type.rb b/lib/plaid/models/income_breakdown_type.rb index ed91c2a42..9018756a9 100644 --- a/lib/plaid/models/income_breakdown_type.rb +++ b/lib/plaid/models/income_breakdown_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/income_override.rb b/lib/plaid/models/income_override.rb index 3e7cf1fe2..80152cb9d 100644 --- a/lib/plaid/models/income_override.rb +++ b/lib/plaid/models/income_override.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/income_summary.rb b/lib/plaid/models/income_summary.rb index 8ad794fed..f4aeea905 100644 --- a/lib/plaid/models/income_summary.rb +++ b/lib/plaid/models/income_summary.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/income_summary_field_number.rb b/lib/plaid/models/income_summary_field_number.rb index 77abb51ba..af8a4c3b0 100644 --- a/lib/plaid/models/income_summary_field_number.rb +++ b/lib/plaid/models/income_summary_field_number.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/income_summary_field_string.rb b/lib/plaid/models/income_summary_field_string.rb index 86347cfc7..074ac7878 100644 --- a/lib/plaid/models/income_summary_field_string.rb +++ b/lib/plaid/models/income_summary_field_string.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/income_verification_create_request.rb b/lib/plaid/models/income_verification_create_request.rb index 7c419ecbd..4085aff42 100644 --- a/lib/plaid/models/income_verification_create_request.rb +++ b/lib/plaid/models/income_verification_create_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/income_verification_create_request_options.rb b/lib/plaid/models/income_verification_create_request_options.rb index 004ade75f..3b51f92f2 100644 --- a/lib/plaid/models/income_verification_create_request_options.rb +++ b/lib/plaid/models/income_verification_create_request_options.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/income_verification_create_response.rb b/lib/plaid/models/income_verification_create_response.rb index c150570ca..792651c45 100644 --- a/lib/plaid/models/income_verification_create_response.rb +++ b/lib/plaid/models/income_verification_create_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/income_verification_documents_download_request.rb b/lib/plaid/models/income_verification_documents_download_request.rb index de72ac21e..6d88b0548 100644 --- a/lib/plaid/models/income_verification_documents_download_request.rb +++ b/lib/plaid/models/income_verification_documents_download_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/income_verification_payroll_flow_type.rb b/lib/plaid/models/income_verification_payroll_flow_type.rb index 019478816..9498db8cb 100644 --- a/lib/plaid/models/income_verification_payroll_flow_type.rb +++ b/lib/plaid/models/income_verification_payroll_flow_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/income_verification_paystubs_get_request.rb b/lib/plaid/models/income_verification_paystubs_get_request.rb index 303d1d61a..3c182749e 100644 --- a/lib/plaid/models/income_verification_paystubs_get_request.rb +++ b/lib/plaid/models/income_verification_paystubs_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/income_verification_paystubs_get_response.rb b/lib/plaid/models/income_verification_paystubs_get_response.rb index 4899042fc..0fe6a02c0 100644 --- a/lib/plaid/models/income_verification_paystubs_get_response.rb +++ b/lib/plaid/models/income_verification_paystubs_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/income_verification_precheck_confidence.rb b/lib/plaid/models/income_verification_precheck_confidence.rb index 31269b9f4..c2e4380d7 100644 --- a/lib/plaid/models/income_verification_precheck_confidence.rb +++ b/lib/plaid/models/income_verification_precheck_confidence.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/income_verification_precheck_employer.rb b/lib/plaid/models/income_verification_precheck_employer.rb index 5e69fcc8d..07b02512f 100644 --- a/lib/plaid/models/income_verification_precheck_employer.rb +++ b/lib/plaid/models/income_verification_precheck_employer.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/income_verification_precheck_employer_address.rb b/lib/plaid/models/income_verification_precheck_employer_address.rb index a74a3d269..25d5d4cc2 100644 --- a/lib/plaid/models/income_verification_precheck_employer_address.rb +++ b/lib/plaid/models/income_verification_precheck_employer_address.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 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 ae8cd2364..81f963bdc 100644 --- a/lib/plaid/models/income_verification_precheck_employer_address_data.rb +++ b/lib/plaid/models/income_verification_precheck_employer_address_data.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/income_verification_precheck_military_info.rb b/lib/plaid/models/income_verification_precheck_military_info.rb index 05506b288..cba9a60f8 100644 --- a/lib/plaid/models/income_verification_precheck_military_info.rb +++ b/lib/plaid/models/income_verification_precheck_military_info.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/income_verification_precheck_payroll_institution.rb b/lib/plaid/models/income_verification_precheck_payroll_institution.rb index 856eb9625..a10686c3a 100644 --- a/lib/plaid/models/income_verification_precheck_payroll_institution.rb +++ b/lib/plaid/models/income_verification_precheck_payroll_institution.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/income_verification_precheck_request.rb b/lib/plaid/models/income_verification_precheck_request.rb index 6dfcf927a..f0eceb7b4 100644 --- a/lib/plaid/models/income_verification_precheck_request.rb +++ b/lib/plaid/models/income_verification_precheck_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/income_verification_precheck_response.rb b/lib/plaid/models/income_verification_precheck_response.rb index a32a11d19..2cecbade5 100644 --- a/lib/plaid/models/income_verification_precheck_response.rb +++ b/lib/plaid/models/income_verification_precheck_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/income_verification_precheck_user.rb b/lib/plaid/models/income_verification_precheck_user.rb index 6ba60f3eb..8b96eeeee 100644 --- a/lib/plaid/models/income_verification_precheck_user.rb +++ b/lib/plaid/models/income_verification_precheck_user.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/income_verification_source_type.rb b/lib/plaid/models/income_verification_source_type.rb index 895072038..793d596bb 100644 --- a/lib/plaid/models/income_verification_source_type.rb +++ b/lib/plaid/models/income_verification_source_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/income_verification_status_webhook.rb b/lib/plaid/models/income_verification_status_webhook.rb index 613df6ece..a18a32962 100644 --- a/lib/plaid/models/income_verification_status_webhook.rb +++ b/lib/plaid/models/income_verification_status_webhook.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/income_verification_taxforms_get_request.rb b/lib/plaid/models/income_verification_taxforms_get_request.rb index e0a78c3af..0f2650399 100644 --- a/lib/plaid/models/income_verification_taxforms_get_request.rb +++ b/lib/plaid/models/income_verification_taxforms_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/income_verification_taxforms_get_response.rb b/lib/plaid/models/income_verification_taxforms_get_response.rb index 36ea9e4b8..2c3519172 100644 --- a/lib/plaid/models/income_verification_taxforms_get_response.rb +++ b/lib/plaid/models/income_verification_taxforms_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/income_verification_webhook_status.rb b/lib/plaid/models/income_verification_webhook_status.rb index ca651dcb5..d91d0d35d 100644 --- a/lib/plaid/models/income_verification_webhook_status.rb +++ b/lib/plaid/models/income_verification_webhook_status.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/individual_name.rb b/lib/plaid/models/individual_name.rb index 4498dd422..9cd1e1d91 100644 --- a/lib/plaid/models/individual_name.rb +++ b/lib/plaid/models/individual_name.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/individual_screening_hit_names.rb b/lib/plaid/models/individual_screening_hit_names.rb index 0372667dd..38ca3060c 100644 --- a/lib/plaid/models/individual_screening_hit_names.rb +++ b/lib/plaid/models/individual_screening_hit_names.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/individual_watchlist_code.rb b/lib/plaid/models/individual_watchlist_code.rb index 58e6768ee..59a14fb1b 100644 --- a/lib/plaid/models/individual_watchlist_code.rb +++ b/lib/plaid/models/individual_watchlist_code.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/individual_watchlist_program.rb b/lib/plaid/models/individual_watchlist_program.rb index 67263743b..9a72be4eb 100644 --- a/lib/plaid/models/individual_watchlist_program.rb +++ b/lib/plaid/models/individual_watchlist_program.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/inflow_model.rb b/lib/plaid/models/inflow_model.rb index a0b7aefc5..9b4ccff90 100644 --- a/lib/plaid/models/inflow_model.rb +++ b/lib/plaid/models/inflow_model.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/initial_update_webhook.rb b/lib/plaid/models/initial_update_webhook.rb index cfa1369b7..aee8579e4 100644 --- a/lib/plaid/models/initial_update_webhook.rb +++ b/lib/plaid/models/initial_update_webhook.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/institution.rb b/lib/plaid/models/institution.rb index ae012767f..7ffb29ff7 100644 --- a/lib/plaid/models/institution.rb +++ b/lib/plaid/models/institution.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/institution_status.rb b/lib/plaid/models/institution_status.rb index e2adf812c..9eff21c69 100644 --- a/lib/plaid/models/institution_status.rb +++ b/lib/plaid/models/institution_status.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -73,6 +73,14 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'item_logins', + :'transactions_updates', + :'auth', + :'identity', + :'investments_updates', + :'liabilities_updates', + :'liabilities', + :'investments', :'health_incidents' ]) end diff --git a/lib/plaid/models/institutions_get_by_id_request.rb b/lib/plaid/models/institutions_get_by_id_request.rb index e2dfa39ae..401b3108a 100644 --- a/lib/plaid/models/institutions_get_by_id_request.rb +++ b/lib/plaid/models/institutions_get_by_id_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 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 b69300e31..1a7fbe1bc 100644 --- a/lib/plaid/models/institutions_get_by_id_request_options.rb +++ b/lib/plaid/models/institutions_get_by_id_request_options.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/institutions_get_by_id_response.rb b/lib/plaid/models/institutions_get_by_id_response.rb index 526b1d1d5..4ade7f8be 100644 --- a/lib/plaid/models/institutions_get_by_id_response.rb +++ b/lib/plaid/models/institutions_get_by_id_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/institutions_get_request.rb b/lib/plaid/models/institutions_get_request.rb index 8ab9ffdc1..94c561fd7 100644 --- a/lib/plaid/models/institutions_get_request.rb +++ b/lib/plaid/models/institutions_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/institutions_get_request_options.rb b/lib/plaid/models/institutions_get_request_options.rb index e33815fa8..8db35c913 100644 --- a/lib/plaid/models/institutions_get_request_options.rb +++ b/lib/plaid/models/institutions_get_request_options.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/institutions_get_response.rb b/lib/plaid/models/institutions_get_response.rb index beb821129..b14231164 100644 --- a/lib/plaid/models/institutions_get_response.rb +++ b/lib/plaid/models/institutions_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/institutions_search_account_filter.rb b/lib/plaid/models/institutions_search_account_filter.rb index b73660cca..2d123de4e 100644 --- a/lib/plaid/models/institutions_search_account_filter.rb +++ b/lib/plaid/models/institutions_search_account_filter.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/institutions_search_payment_initiation_options.rb b/lib/plaid/models/institutions_search_payment_initiation_options.rb index 7ea5d6ac1..67c366f69 100644 --- a/lib/plaid/models/institutions_search_payment_initiation_options.rb +++ b/lib/plaid/models/institutions_search_payment_initiation_options.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/institutions_search_request.rb b/lib/plaid/models/institutions_search_request.rb index ecb3926d8..efb9d5347 100644 --- a/lib/plaid/models/institutions_search_request.rb +++ b/lib/plaid/models/institutions_search_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/institutions_search_request_options.rb b/lib/plaid/models/institutions_search_request_options.rb index f4a4b68e1..3e268d337 100644 --- a/lib/plaid/models/institutions_search_request_options.rb +++ b/lib/plaid/models/institutions_search_request_options.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/institutions_search_response.rb b/lib/plaid/models/institutions_search_response.rb index 35b5ca53a..fe8e3b55a 100644 --- a/lib/plaid/models/institutions_search_response.rb +++ b/lib/plaid/models/institutions_search_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/investment_account_subtype.rb b/lib/plaid/models/investment_account_subtype.rb index 2d33a3974..d33aa33a2 100644 --- a/lib/plaid/models/investment_account_subtype.rb +++ b/lib/plaid/models/investment_account_subtype.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/investment_filter.rb b/lib/plaid/models/investment_filter.rb index 8a75b50f1..e3859e651 100644 --- a/lib/plaid/models/investment_filter.rb +++ b/lib/plaid/models/investment_filter.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/investment_holdings_get_request_options.rb b/lib/plaid/models/investment_holdings_get_request_options.rb index bc09dc99e..df29876a6 100644 --- a/lib/plaid/models/investment_holdings_get_request_options.rb +++ b/lib/plaid/models/investment_holdings_get_request_options.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/investment_transaction.rb b/lib/plaid/models/investment_transaction.rb index e132c5551..510bd6ee9 100644 --- a/lib/plaid/models/investment_transaction.rb +++ b/lib/plaid/models/investment_transaction.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/investment_transaction_subtype.rb b/lib/plaid/models/investment_transaction_subtype.rb index 991a0bd7a..dcf6d5799 100644 --- a/lib/plaid/models/investment_transaction_subtype.rb +++ b/lib/plaid/models/investment_transaction_subtype.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/investment_transaction_type.rb b/lib/plaid/models/investment_transaction_type.rb index 9a2bfc9d9..1144a78a5 100644 --- a/lib/plaid/models/investment_transaction_type.rb +++ b/lib/plaid/models/investment_transaction_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/investments_default_update_webhook.rb b/lib/plaid/models/investments_default_update_webhook.rb index 8808246e5..f62f78be3 100644 --- a/lib/plaid/models/investments_default_update_webhook.rb +++ b/lib/plaid/models/investments_default_update_webhook.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/investments_holdings_get_request.rb b/lib/plaid/models/investments_holdings_get_request.rb index 25b843f1d..ad5943b22 100644 --- a/lib/plaid/models/investments_holdings_get_request.rb +++ b/lib/plaid/models/investments_holdings_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/investments_holdings_get_response.rb b/lib/plaid/models/investments_holdings_get_response.rb index 7077a6cf3..f90e15e33 100644 --- a/lib/plaid/models/investments_holdings_get_response.rb +++ b/lib/plaid/models/investments_holdings_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/investments_transactions_get_request.rb b/lib/plaid/models/investments_transactions_get_request.rb index 0da26b315..187d2f787 100644 --- a/lib/plaid/models/investments_transactions_get_request.rb +++ b/lib/plaid/models/investments_transactions_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/investments_transactions_get_request_options.rb b/lib/plaid/models/investments_transactions_get_request_options.rb index b929604b0..028e617bc 100644 --- a/lib/plaid/models/investments_transactions_get_request_options.rb +++ b/lib/plaid/models/investments_transactions_get_request_options.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/investments_transactions_get_response.rb b/lib/plaid/models/investments_transactions_get_response.rb index f1539462c..50145c524 100644 --- a/lib/plaid/models/investments_transactions_get_response.rb +++ b/lib/plaid/models/investments_transactions_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/investments_transactions_override.rb b/lib/plaid/models/investments_transactions_override.rb index 9063264b5..7fb4cef49 100644 --- a/lib/plaid/models/investments_transactions_override.rb +++ b/lib/plaid/models/investments_transactions_override.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/issuing_country.rb b/lib/plaid/models/issuing_country.rb index e7a7aa05b..3916f85d3 100644 --- a/lib/plaid/models/issuing_country.rb +++ b/lib/plaid/models/issuing_country.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/item.rb b/lib/plaid/models/item.rb index 58d03f9eb..6e7ee7761 100644 --- a/lib/plaid/models/item.rb +++ b/lib/plaid/models/item.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/item_access_token_invalidate_request.rb b/lib/plaid/models/item_access_token_invalidate_request.rb index 190c48712..11588d644 100644 --- a/lib/plaid/models/item_access_token_invalidate_request.rb +++ b/lib/plaid/models/item_access_token_invalidate_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/item_access_token_invalidate_response.rb b/lib/plaid/models/item_access_token_invalidate_response.rb index 473435e70..ab6542cca 100644 --- a/lib/plaid/models/item_access_token_invalidate_response.rb +++ b/lib/plaid/models/item_access_token_invalidate_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/item_application_list_request.rb b/lib/plaid/models/item_application_list_request.rb index d7d572a40..3e2053906 100644 --- a/lib/plaid/models/item_application_list_request.rb +++ b/lib/plaid/models/item_application_list_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/item_application_list_response.rb b/lib/plaid/models/item_application_list_response.rb index ce9f0f55d..4466a7f6d 100644 --- a/lib/plaid/models/item_application_list_response.rb +++ b/lib/plaid/models/item_application_list_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/item_application_list_user_auth.rb b/lib/plaid/models/item_application_list_user_auth.rb index 90ef90f47..cb4b9740f 100644 --- a/lib/plaid/models/item_application_list_user_auth.rb +++ b/lib/plaid/models/item_application_list_user_auth.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/item_application_scopes_update_request.rb b/lib/plaid/models/item_application_scopes_update_request.rb index d131aa094..1ad0d0faa 100644 --- a/lib/plaid/models/item_application_scopes_update_request.rb +++ b/lib/plaid/models/item_application_scopes_update_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/item_application_scopes_update_response.rb b/lib/plaid/models/item_application_scopes_update_response.rb index 2a932d8cd..a44dcb159 100644 --- a/lib/plaid/models/item_application_scopes_update_response.rb +++ b/lib/plaid/models/item_application_scopes_update_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/item_error_webhook.rb b/lib/plaid/models/item_error_webhook.rb index 756d8385b..88d340323 100644 --- a/lib/plaid/models/item_error_webhook.rb +++ b/lib/plaid/models/item_error_webhook.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/item_get_request.rb b/lib/plaid/models/item_get_request.rb index 0b0a3bfcf..e3a8115c5 100644 --- a/lib/plaid/models/item_get_request.rb +++ b/lib/plaid/models/item_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/item_get_response.rb b/lib/plaid/models/item_get_response.rb index ab0d28d6a..1ea10e641 100644 --- a/lib/plaid/models/item_get_response.rb +++ b/lib/plaid/models/item_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/item_import_request.rb b/lib/plaid/models/item_import_request.rb index 506981818..6f3414ebb 100644 --- a/lib/plaid/models/item_import_request.rb +++ b/lib/plaid/models/item_import_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/item_import_request_options.rb b/lib/plaid/models/item_import_request_options.rb index 084f41f2d..764fb6880 100644 --- a/lib/plaid/models/item_import_request_options.rb +++ b/lib/plaid/models/item_import_request_options.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/item_import_request_user_auth.rb b/lib/plaid/models/item_import_request_user_auth.rb index 012adfa05..d80414d52 100644 --- a/lib/plaid/models/item_import_request_user_auth.rb +++ b/lib/plaid/models/item_import_request_user_auth.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/item_import_response.rb b/lib/plaid/models/item_import_response.rb index d68f70a3b..53e540993 100644 --- a/lib/plaid/models/item_import_response.rb +++ b/lib/plaid/models/item_import_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/item_product_ready_webhook.rb b/lib/plaid/models/item_product_ready_webhook.rb index 1511a1add..80643fb3a 100644 --- a/lib/plaid/models/item_product_ready_webhook.rb +++ b/lib/plaid/models/item_product_ready_webhook.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/item_public_token_create_request.rb b/lib/plaid/models/item_public_token_create_request.rb index feaba850e..5455e4ebf 100644 --- a/lib/plaid/models/item_public_token_create_request.rb +++ b/lib/plaid/models/item_public_token_create_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/item_public_token_create_response.rb b/lib/plaid/models/item_public_token_create_response.rb index 2b9e8ddf5..aed2eb2c5 100644 --- a/lib/plaid/models/item_public_token_create_response.rb +++ b/lib/plaid/models/item_public_token_create_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/item_public_token_exchange_request.rb b/lib/plaid/models/item_public_token_exchange_request.rb index 5b01de198..1189dc258 100644 --- a/lib/plaid/models/item_public_token_exchange_request.rb +++ b/lib/plaid/models/item_public_token_exchange_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/item_public_token_exchange_response.rb b/lib/plaid/models/item_public_token_exchange_response.rb index f446292f2..da0ac9808 100644 --- a/lib/plaid/models/item_public_token_exchange_response.rb +++ b/lib/plaid/models/item_public_token_exchange_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/item_remove_request.rb b/lib/plaid/models/item_remove_request.rb index 4a1bac373..7ca9e3d46 100644 --- a/lib/plaid/models/item_remove_request.rb +++ b/lib/plaid/models/item_remove_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/item_remove_response.rb b/lib/plaid/models/item_remove_response.rb index 574284cc6..5977161c7 100644 --- a/lib/plaid/models/item_remove_response.rb +++ b/lib/plaid/models/item_remove_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/item_status.rb b/lib/plaid/models/item_status.rb index b1edd7531..80772772b 100644 --- a/lib/plaid/models/item_status.rb +++ b/lib/plaid/models/item_status.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/item_status_investments.rb b/lib/plaid/models/item_status_investments.rb index fe0434593..ea2f989ef 100644 --- a/lib/plaid/models/item_status_investments.rb +++ b/lib/plaid/models/item_status_investments.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/item_status_last_webhook.rb b/lib/plaid/models/item_status_last_webhook.rb index 5f8b5dc3f..0a8d13e15 100644 --- a/lib/plaid/models/item_status_last_webhook.rb +++ b/lib/plaid/models/item_status_last_webhook.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/item_status_nullable.rb b/lib/plaid/models/item_status_nullable.rb index ad80cec5a..6f77df7e5 100644 --- a/lib/plaid/models/item_status_nullable.rb +++ b/lib/plaid/models/item_status_nullable.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/item_status_transactions.rb b/lib/plaid/models/item_status_transactions.rb index 1d792955f..86844bd61 100644 --- a/lib/plaid/models/item_status_transactions.rb +++ b/lib/plaid/models/item_status_transactions.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/item_webhook_update_request.rb b/lib/plaid/models/item_webhook_update_request.rb index b3f7a72ff..d51f2f29a 100644 --- a/lib/plaid/models/item_webhook_update_request.rb +++ b/lib/plaid/models/item_webhook_update_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/item_webhook_update_response.rb b/lib/plaid/models/item_webhook_update_response.rb index 19416f0c0..a829fbb20 100644 --- a/lib/plaid/models/item_webhook_update_response.rb +++ b/lib/plaid/models/item_webhook_update_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/jwk_public_key.rb b/lib/plaid/models/jwk_public_key.rb index 7f6fa1df2..43dc6338d 100644 --- a/lib/plaid/models/jwk_public_key.rb +++ b/lib/plaid/models/jwk_public_key.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/jwt_header.rb b/lib/plaid/models/jwt_header.rb index fcf95aaa1..9dbfddc7c 100644 --- a/lib/plaid/models/jwt_header.rb +++ b/lib/plaid/models/jwt_header.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/kyc_check_address_summary.rb b/lib/plaid/models/kyc_check_address_summary.rb index 40236e36e..2a53238ca 100644 --- a/lib/plaid/models/kyc_check_address_summary.rb +++ b/lib/plaid/models/kyc_check_address_summary.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/kyc_check_date_of_birth_summary.rb b/lib/plaid/models/kyc_check_date_of_birth_summary.rb index 9c620d1c4..8dd50728b 100644 --- a/lib/plaid/models/kyc_check_date_of_birth_summary.rb +++ b/lib/plaid/models/kyc_check_date_of_birth_summary.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/kyc_check_details.rb b/lib/plaid/models/kyc_check_details.rb index f4197a880..63e5843a2 100644 --- a/lib/plaid/models/kyc_check_details.rb +++ b/lib/plaid/models/kyc_check_details.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/kyc_check_id_number_summary.rb b/lib/plaid/models/kyc_check_id_number_summary.rb index 5b9682284..297cf5a34 100644 --- a/lib/plaid/models/kyc_check_id_number_summary.rb +++ b/lib/plaid/models/kyc_check_id_number_summary.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/kyc_check_name_summary.rb b/lib/plaid/models/kyc_check_name_summary.rb index a6ea507c9..803a27491 100644 --- a/lib/plaid/models/kyc_check_name_summary.rb +++ b/lib/plaid/models/kyc_check_name_summary.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/kyc_check_phone_summary.rb b/lib/plaid/models/kyc_check_phone_summary.rb index cd58922bc..20ad43620 100644 --- a/lib/plaid/models/kyc_check_phone_summary.rb +++ b/lib/plaid/models/kyc_check_phone_summary.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/liabilities_default_update_webhook.rb b/lib/plaid/models/liabilities_default_update_webhook.rb index bf85db2a8..1b543f414 100644 --- a/lib/plaid/models/liabilities_default_update_webhook.rb +++ b/lib/plaid/models/liabilities_default_update_webhook.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -30,7 +30,7 @@ class LiabilitiesDefaultUpdateWebhook # An array of `account_id`'s for accounts that contain new liabilities.' attr_accessor :account_ids_with_new_liabilities - # An object with keys of `account_id`'s that are mapped to their respective liabilities fields that changed. Example: `{ \"XMBvvyMGQ1UoLbKByoMqH3nXMj84ALSdE5B58\": [\"past_amount_due\"] } + # An object with keys of `account_id`'s that are mapped to their respective liabilities fields that changed. Example: `{ \"XMBvvyMGQ1UoLbKByoMqH3nXMj84ALSdE5B58\": [\"past_amount_due\"] }` attr_accessor :account_ids_with_updated_liabilities attr_accessor :environment diff --git a/lib/plaid/models/liabilities_get_request.rb b/lib/plaid/models/liabilities_get_request.rb index af002f199..33943f53c 100644 --- a/lib/plaid/models/liabilities_get_request.rb +++ b/lib/plaid/models/liabilities_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/liabilities_get_request_options.rb b/lib/plaid/models/liabilities_get_request_options.rb index 559c58435..f87259298 100644 --- a/lib/plaid/models/liabilities_get_request_options.rb +++ b/lib/plaid/models/liabilities_get_request_options.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/liabilities_get_response.rb b/lib/plaid/models/liabilities_get_response.rb index f556ca6d6..75b2082dd 100644 --- a/lib/plaid/models/liabilities_get_response.rb +++ b/lib/plaid/models/liabilities_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/liabilities_object.rb b/lib/plaid/models/liabilities_object.rb index 7189df9bb..d39d905d2 100644 --- a/lib/plaid/models/liabilities_object.rb +++ b/lib/plaid/models/liabilities_object.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/liability_override.rb b/lib/plaid/models/liability_override.rb index 228b38daa..4b53a9b5d 100644 --- a/lib/plaid/models/liability_override.rb +++ b/lib/plaid/models/liability_override.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/link_delivery_create_request.rb b/lib/plaid/models/link_delivery_create_request.rb index f8f89e035..3e548f25b 100644 --- a/lib/plaid/models/link_delivery_create_request.rb +++ b/lib/plaid/models/link_delivery_create_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/link_delivery_create_response.rb b/lib/plaid/models/link_delivery_create_response.rb index cfe08c62f..4d3921522 100644 --- a/lib/plaid/models/link_delivery_create_response.rb +++ b/lib/plaid/models/link_delivery_create_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/link_delivery_delivery_method.rb b/lib/plaid/models/link_delivery_delivery_method.rb index 012d0438c..962cc13b2 100644 --- a/lib/plaid/models/link_delivery_delivery_method.rb +++ b/lib/plaid/models/link_delivery_delivery_method.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/link_delivery_get_request.rb b/lib/plaid/models/link_delivery_get_request.rb index 421de8dff..a3043d4b7 100644 --- a/lib/plaid/models/link_delivery_get_request.rb +++ b/lib/plaid/models/link_delivery_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/link_delivery_get_response.rb b/lib/plaid/models/link_delivery_get_response.rb index 68465941d..7c274adc4 100644 --- a/lib/plaid/models/link_delivery_get_response.rb +++ b/lib/plaid/models/link_delivery_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/link_delivery_session_status.rb b/lib/plaid/models/link_delivery_session_status.rb index ed595c334..26ff90895 100644 --- a/lib/plaid/models/link_delivery_session_status.rb +++ b/lib/plaid/models/link_delivery_session_status.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/link_o_auth_correlation_id_exchange_request.rb b/lib/plaid/models/link_o_auth_correlation_id_exchange_request.rb index a71233b7d..ff332a997 100644 --- a/lib/plaid/models/link_o_auth_correlation_id_exchange_request.rb +++ b/lib/plaid/models/link_o_auth_correlation_id_exchange_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/link_o_auth_correlation_id_exchange_response.rb b/lib/plaid/models/link_o_auth_correlation_id_exchange_response.rb index 748d58927..1cd2d3397 100644 --- a/lib/plaid/models/link_o_auth_correlation_id_exchange_response.rb +++ b/lib/plaid/models/link_o_auth_correlation_id_exchange_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/link_token_account_filters.rb b/lib/plaid/models/link_token_account_filters.rb index 28d95a121..e78943398 100644 --- a/lib/plaid/models/link_token_account_filters.rb +++ b/lib/plaid/models/link_token_account_filters.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/link_token_create_credit_filter.rb b/lib/plaid/models/link_token_create_credit_filter.rb index bee0ede98..acaffd0c1 100644 --- a/lib/plaid/models/link_token_create_credit_filter.rb +++ b/lib/plaid/models/link_token_create_credit_filter.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/link_token_create_depository_filter.rb b/lib/plaid/models/link_token_create_depository_filter.rb index 392cf0f2a..5cd31ec40 100644 --- a/lib/plaid/models/link_token_create_depository_filter.rb +++ b/lib/plaid/models/link_token_create_depository_filter.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/link_token_create_institution_data.rb b/lib/plaid/models/link_token_create_institution_data.rb index 6c6c3b520..632d85456 100644 --- a/lib/plaid/models/link_token_create_institution_data.rb +++ b/lib/plaid/models/link_token_create_institution_data.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/link_token_create_investment_filter.rb b/lib/plaid/models/link_token_create_investment_filter.rb index 5c4476b88..ac688d432 100644 --- a/lib/plaid/models/link_token_create_investment_filter.rb +++ b/lib/plaid/models/link_token_create_investment_filter.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/link_token_create_loan_filter.rb b/lib/plaid/models/link_token_create_loan_filter.rb index 5499526e0..fb6adf158 100644 --- a/lib/plaid/models/link_token_create_loan_filter.rb +++ b/lib/plaid/models/link_token_create_loan_filter.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/link_token_create_request.rb b/lib/plaid/models/link_token_create_request.rb index 81080a0ed..1f1fb01d4 100644 --- a/lib/plaid/models/link_token_create_request.rb +++ b/lib/plaid/models/link_token_create_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -28,7 +28,7 @@ class LinkTokenCreateRequest # The language that Link should be displayed in. Supported languages are: - Danish (`'da'`) - Dutch (`'nl'`) - English (`'en'`) - Estonian (`'et'`) - French (`'fr'`) - German (`'de'`) - Italian (`'it'`) - Latvian (`'lv'`) - Lithuanian (`'lt'`) - Norwegian (`'no'`) - Polish (`'po'`) - Romanian (`'ro'`) - Spanish (`'es'`) - Swedish (`'se'`) When using a Link customization, the language configured here must match the setting in the customization, or the customization will not be applied. attr_accessor :language - # Specify an array of Plaid-supported country codes using the ISO-3166-1 alpha-2 country code standard. Institutions from all listed countries will be shown. Supported country codes are: `US`, `CA`, `DE`, `ES`, `FR`, `GB`, `IE`, `IT`, `NL`. For a complete mapping of supported products by country, see https://plaid.com/global/. If Link is launched with multiple country codes, only products that you are enabled for in all countries will be used by Link. Note that while all countries are enabled by default in Sandbox and Development, in Production only US and Canada are enabled by default. To gain access to European institutions in the Production environment, [file a product access Support ticket](https://dashboard.plaid.com/support/new/product-and-development/product-troubleshooting/request-product-access) via the Plaid dashboard. If you initialize with a European country code, your users will see the European consent panel during the Link flow. If using a Link customization, make sure the country codes in the customization match those specified in `country_codes`. If both `country_codes` and a Link customization are used, the value in `country_codes` may override the value in the customization. If using the Auth features Instant Match, Same-day Micro-deposits, or Automated Micro-deposits, `country_codes` must be set to `['US']`. + # Specify an array of Plaid-supported country codes using the ISO-3166-1 alpha-2 country code standard. Institutions from all listed countries will be shown. For a complete mapping of supported products by country, see https://plaid.com/global/. If Link is launched with multiple country codes, only products that you are enabled for in all countries will be used by Link. Note that while all countries are enabled by default in Sandbox and Development, in Production only US and Canada are enabled by default. To gain access to European institutions in the Production environment, [file a product access Support ticket](https://dashboard.plaid.com/support/new/product-and-development/product-troubleshooting/request-product-access) via the Plaid dashboard. If you initialize with a European country code, your users will see the European consent panel during the Link flow. If using a Link customization, make sure the country codes in the customization match those specified in `country_codes`. If both `country_codes` and a Link customization are used, the value in `country_codes` may override the value in the customization. If using the Auth features Instant Match, Same-day Micro-deposits, or Automated Micro-deposits, `country_codes` must be set to `['US']`. attr_accessor :country_codes attr_accessor :user 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 5e82f2692..0f6e0bf42 100644 --- a/lib/plaid/models/link_token_create_request_account_subtypes.rb +++ b/lib/plaid/models/link_token_create_request_account_subtypes.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/link_token_create_request_auth.rb b/lib/plaid/models/link_token_create_request_auth.rb index 8801335c9..a2054326e 100644 --- a/lib/plaid/models/link_token_create_request_auth.rb +++ b/lib/plaid/models/link_token_create_request_auth.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -22,7 +22,7 @@ class LinkTokenCreateRequestAuth # Specifies whether the Link session is enabled for the Automated Micro-deposits flow. attr_accessor :automated_microdeposits_enabled - # Specifies whether the Link session is enabled for the Instant Match flow. As of October 5th, 2022, Instant Match has been enabled by default for all new customers; this field is only necessary to enable Instant Match for customers who enabled auth before October 5th, 2022 and who have not previously enabled Instant Match via their Account Manager. + # Specifies whether the Link session is enabled for the Instant Match flow. As of November 2022, Instant Match will be enabled by default. Instant Match can be disabled by setting this field to `false`. attr_accessor :instant_match_enabled # Specifies whether the Link session is enabled for the Same Day Micro-deposits flow. 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 9bc84786e..d79c4b5ce 100644 --- a/lib/plaid/models/link_token_create_request_deposit_switch.rb +++ b/lib/plaid/models/link_token_create_request_deposit_switch.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/link_token_create_request_identity_verification.rb b/lib/plaid/models/link_token_create_request_identity_verification.rb index 4e8f3364d..c6c7f8074 100644 --- a/lib/plaid/models/link_token_create_request_identity_verification.rb +++ b/lib/plaid/models/link_token_create_request_identity_verification.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 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 7bb800c49..2a71a48f5 100644 --- a/lib/plaid/models/link_token_create_request_income_verification.rb +++ b/lib/plaid/models/link_token_create_request_income_verification.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 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 c957128ce..c2294662e 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,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 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 0f7e49ed0..dce163cab 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,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 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 bc96cb6a7..2dc7875cd 100644 --- a/lib/plaid/models/link_token_create_request_payment_initiation.rb +++ b/lib/plaid/models/link_token_create_request_payment_initiation.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/link_token_create_request_transfer.rb b/lib/plaid/models/link_token_create_request_transfer.rb index 448a585f4..17b7f2a47 100644 --- a/lib/plaid/models/link_token_create_request_transfer.rb +++ b/lib/plaid/models/link_token_create_request_transfer.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/link_token_create_request_update.rb b/lib/plaid/models/link_token_create_request_update.rb index ff8d0b550..dd37e1ae3 100644 --- a/lib/plaid/models/link_token_create_request_update.rb +++ b/lib/plaid/models/link_token_create_request_update.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/link_token_create_request_user.rb b/lib/plaid/models/link_token_create_request_user.rb index 6c36ce31a..ca24cacaf 100644 --- a/lib/plaid/models/link_token_create_request_user.rb +++ b/lib/plaid/models/link_token_create_request_user.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -22,7 +22,6 @@ class LinkTokenCreateRequestUser # The user's full legal name. Currently used only to support certain legacy flows. attr_accessor :legal_name - # The user's full name. Optional if using the [Identity Verification](https://plaid.com/docs/api/products/identity-verification) product; if not using Identity Verification, this field is not allowed. Users will not be asked for their name when this field is provided. attr_accessor :name # The user's phone number in [E.164](https://en.wikipedia.org/wiki/E.164) format. This field is optional, but required to enable the [returning user experience](https://plaid.com/docs/link/returning-user). diff --git a/lib/plaid/models/link_token_create_request_user_stated_income_source.rb b/lib/plaid/models/link_token_create_request_user_stated_income_source.rb index 0950c6986..b9fd5b922 100644 --- a/lib/plaid/models/link_token_create_request_user_stated_income_source.rb +++ b/lib/plaid/models/link_token_create_request_user_stated_income_source.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/link_token_create_response.rb b/lib/plaid/models/link_token_create_response.rb index 83d9a41be..4fe504edd 100644 --- a/lib/plaid/models/link_token_create_response.rb +++ b/lib/plaid/models/link_token_create_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/link_token_eu_config.rb b/lib/plaid/models/link_token_eu_config.rb index 79256dbb6..33824bf1e 100644 --- a/lib/plaid/models/link_token_eu_config.rb +++ b/lib/plaid/models/link_token_eu_config.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/link_token_get_metadata_response.rb b/lib/plaid/models/link_token_get_metadata_response.rb index 355306342..00487d4f0 100644 --- a/lib/plaid/models/link_token_get_metadata_response.rb +++ b/lib/plaid/models/link_token_get_metadata_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/link_token_get_request.rb b/lib/plaid/models/link_token_get_request.rb index 6e38817f1..f1a39b9ad 100644 --- a/lib/plaid/models/link_token_get_request.rb +++ b/lib/plaid/models/link_token_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/link_token_get_response.rb b/lib/plaid/models/link_token_get_response.rb index a4ed85069..4c82258d7 100644 --- a/lib/plaid/models/link_token_get_response.rb +++ b/lib/plaid/models/link_token_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/link_token_investments.rb b/lib/plaid/models/link_token_investments.rb index 84eefba80..959ae9746 100644 --- a/lib/plaid/models/link_token_investments.rb +++ b/lib/plaid/models/link_token_investments.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/loan.rb b/lib/plaid/models/loan.rb index 4144fff1b..bc5d17542 100644 --- a/lib/plaid/models/loan.rb +++ b/lib/plaid/models/loan.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/loan_account_subtype.rb b/lib/plaid/models/loan_account_subtype.rb index 76b6ae6a1..7954f4acc 100644 --- a/lib/plaid/models/loan_account_subtype.rb +++ b/lib/plaid/models/loan_account_subtype.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/loan_filter.rb b/lib/plaid/models/loan_filter.rb index 4886dd95a..f49e52d1b 100644 --- a/lib/plaid/models/loan_filter.rb +++ b/lib/plaid/models/loan_filter.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/loan_identifier.rb b/lib/plaid/models/loan_identifier.rb index 8ef1ce672..54d8a735b 100644 --- a/lib/plaid/models/loan_identifier.rb +++ b/lib/plaid/models/loan_identifier.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/loan_identifier_type.rb b/lib/plaid/models/loan_identifier_type.rb index 3d4546315..e83669126 100644 --- a/lib/plaid/models/loan_identifier_type.rb +++ b/lib/plaid/models/loan_identifier_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/loan_identifiers.rb b/lib/plaid/models/loan_identifiers.rb index 76eca0517..4e8bbf1a4 100644 --- a/lib/plaid/models/loan_identifiers.rb +++ b/lib/plaid/models/loan_identifiers.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/loans.rb b/lib/plaid/models/loans.rb index 567729400..01723cae2 100644 --- a/lib/plaid/models/loans.rb +++ b/lib/plaid/models/loans.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/location.rb b/lib/plaid/models/location.rb index e20daf97f..537142753 100644 --- a/lib/plaid/models/location.rb +++ b/lib/plaid/models/location.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/match_summary.rb b/lib/plaid/models/match_summary.rb index 0752e1a23..f7222b0bb 100644 --- a/lib/plaid/models/match_summary.rb +++ b/lib/plaid/models/match_summary.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/match_summary_code.rb b/lib/plaid/models/match_summary_code.rb index 08be4a552..11bda664a 100644 --- a/lib/plaid/models/match_summary_code.rb +++ b/lib/plaid/models/match_summary_code.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/meta.rb b/lib/plaid/models/meta.rb index 0be0e7746..f91c94efd 100644 --- a/lib/plaid/models/meta.rb +++ b/lib/plaid/models/meta.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/mfa.rb b/lib/plaid/models/mfa.rb index 1c70ddf58..730acef1b 100644 --- a/lib/plaid/models/mfa.rb +++ b/lib/plaid/models/mfa.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/mortgage_interest_rate.rb b/lib/plaid/models/mortgage_interest_rate.rb index 98a2fa67d..239371988 100644 --- a/lib/plaid/models/mortgage_interest_rate.rb +++ b/lib/plaid/models/mortgage_interest_rate.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/mortgage_liability.rb b/lib/plaid/models/mortgage_liability.rb index 759ae1370..3ad6b2d38 100644 --- a/lib/plaid/models/mortgage_liability.rb +++ b/lib/plaid/models/mortgage_liability.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/mortgage_property_address.rb b/lib/plaid/models/mortgage_property_address.rb index 6ffc8c3db..6b1561d9e 100644 --- a/lib/plaid/models/mortgage_property_address.rb +++ b/lib/plaid/models/mortgage_property_address.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/multi_document_risk_signal.rb b/lib/plaid/models/multi_document_risk_signal.rb index 9f68ac726..42d99fe13 100644 --- a/lib/plaid/models/multi_document_risk_signal.rb +++ b/lib/plaid/models/multi_document_risk_signal.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/name_match_score.rb b/lib/plaid/models/name_match_score.rb index 281ba57d9..b6305003a 100644 --- a/lib/plaid/models/name_match_score.rb +++ b/lib/plaid/models/name_match_score.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/net_pay.rb b/lib/plaid/models/net_pay.rb index 817a951cd..6cf9ca80f 100644 --- a/lib/plaid/models/net_pay.rb +++ b/lib/plaid/models/net_pay.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/new_accounts_available_webhook.rb b/lib/plaid/models/new_accounts_available_webhook.rb index a30436bf4..d27820515 100644 --- a/lib/plaid/models/new_accounts_available_webhook.rb +++ b/lib/plaid/models/new_accounts_available_webhook.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/numbers.rb b/lib/plaid/models/numbers.rb index 113db3692..2968775e2 100644 --- a/lib/plaid/models/numbers.rb +++ b/lib/plaid/models/numbers.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/numbers_ach.rb b/lib/plaid/models/numbers_ach.rb index e1b5bb65c..5b270156b 100644 --- a/lib/plaid/models/numbers_ach.rb +++ b/lib/plaid/models/numbers_ach.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -28,13 +28,21 @@ class NumbersACH # The wire transfer routing number for the account, if available attr_accessor :wire_routing + # Whether the account supports ACH transfers into the account + attr_accessor :can_transfer_in + + # Whether the account supports ACH transfers out of the account + attr_accessor :can_transfer_out + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'account_id' => :'account_id', :'account' => :'account', :'routing' => :'routing', - :'wire_routing' => :'wire_routing' + :'wire_routing' => :'wire_routing', + :'can_transfer_in' => :'can_transfer_in', + :'can_transfer_out' => :'can_transfer_out' } end @@ -49,14 +57,18 @@ def self.openapi_types :'account_id' => :'String', :'account' => :'String', :'routing' => :'String', - :'wire_routing' => :'String' + :'wire_routing' => :'String', + :'can_transfer_in' => :'Boolean', + :'can_transfer_out' => :'Boolean' } end # List of attributes with nullable: true def self.openapi_nullable Set.new([ - :'wire_routing' + :'wire_routing', + :'can_transfer_in', + :'can_transfer_out' ]) end @@ -90,6 +102,14 @@ def initialize(attributes = {}) if attributes.key?(:'wire_routing') self.wire_routing = attributes[:'wire_routing'] end + + if attributes.key?(:'can_transfer_in') + self.can_transfer_in = attributes[:'can_transfer_in'] + end + + if attributes.key?(:'can_transfer_out') + self.can_transfer_out = attributes[:'can_transfer_out'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -128,7 +148,9 @@ def ==(o) account_id == o.account_id && account == o.account && routing == o.routing && - wire_routing == o.wire_routing + wire_routing == o.wire_routing && + can_transfer_in == o.can_transfer_in && + can_transfer_out == o.can_transfer_out end # @see the `==` method @@ -140,7 +162,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [account_id, account, routing, wire_routing].hash + [account_id, account, routing, wire_routing, can_transfer_in, can_transfer_out].hash end # Builds the object from hash diff --git a/lib/plaid/models/numbers_ach_nullable.rb b/lib/plaid/models/numbers_ach_nullable.rb index ef1dcd3b1..0c4837e74 100644 --- a/lib/plaid/models/numbers_ach_nullable.rb +++ b/lib/plaid/models/numbers_ach_nullable.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -28,13 +28,21 @@ class NumbersACHNullable # The wire transfer routing number for the account, if available attr_accessor :wire_routing + # Whether the account supports ACH transfers into the account + attr_accessor :can_transfer_in + + # Whether the account supports ACH transfers out of the account + attr_accessor :can_transfer_out + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'account_id' => :'account_id', :'account' => :'account', :'routing' => :'routing', - :'wire_routing' => :'wire_routing' + :'wire_routing' => :'wire_routing', + :'can_transfer_in' => :'can_transfer_in', + :'can_transfer_out' => :'can_transfer_out' } end @@ -49,14 +57,18 @@ def self.openapi_types :'account_id' => :'String', :'account' => :'String', :'routing' => :'String', - :'wire_routing' => :'String' + :'wire_routing' => :'String', + :'can_transfer_in' => :'Boolean', + :'can_transfer_out' => :'Boolean' } end # List of attributes with nullable: true def self.openapi_nullable Set.new([ - :'wire_routing' + :'wire_routing', + :'can_transfer_in', + :'can_transfer_out' ]) end @@ -97,6 +109,14 @@ def initialize(attributes = {}) if attributes.key?(:'wire_routing') self.wire_routing = attributes[:'wire_routing'] end + + if attributes.key?(:'can_transfer_in') + self.can_transfer_in = attributes[:'can_transfer_in'] + end + + if attributes.key?(:'can_transfer_out') + self.can_transfer_out = attributes[:'can_transfer_out'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -135,7 +155,9 @@ def ==(o) account_id == o.account_id && account == o.account && routing == o.routing && - wire_routing == o.wire_routing + wire_routing == o.wire_routing && + can_transfer_in == o.can_transfer_in && + can_transfer_out == o.can_transfer_out end # @see the `==` method @@ -147,7 +169,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [account_id, account, routing, wire_routing].hash + [account_id, account, routing, wire_routing, can_transfer_in, can_transfer_out].hash end # Builds the object from hash diff --git a/lib/plaid/models/numbers_bacs.rb b/lib/plaid/models/numbers_bacs.rb index 0defb6df1..0c4e4e22c 100644 --- a/lib/plaid/models/numbers_bacs.rb +++ b/lib/plaid/models/numbers_bacs.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/numbers_bacs_nullable.rb b/lib/plaid/models/numbers_bacs_nullable.rb index b7b5c5add..46ab61a07 100644 --- a/lib/plaid/models/numbers_bacs_nullable.rb +++ b/lib/plaid/models/numbers_bacs_nullable.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/numbers_eft.rb b/lib/plaid/models/numbers_eft.rb index c00310db9..a7863c4f6 100644 --- a/lib/plaid/models/numbers_eft.rb +++ b/lib/plaid/models/numbers_eft.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/numbers_eft_nullable.rb b/lib/plaid/models/numbers_eft_nullable.rb index 47b18c113..36a4ff2f2 100644 --- a/lib/plaid/models/numbers_eft_nullable.rb +++ b/lib/plaid/models/numbers_eft_nullable.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/numbers_iban_nullable.rb b/lib/plaid/models/numbers_iban_nullable.rb index 3cbb3104e..494a69111 100644 --- a/lib/plaid/models/numbers_iban_nullable.rb +++ b/lib/plaid/models/numbers_iban_nullable.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/numbers_international.rb b/lib/plaid/models/numbers_international.rb index 346263145..386461190 100644 --- a/lib/plaid/models/numbers_international.rb +++ b/lib/plaid/models/numbers_international.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/numbers_international_iban.rb b/lib/plaid/models/numbers_international_iban.rb index 098e97368..1ee0cafa9 100644 --- a/lib/plaid/models/numbers_international_iban.rb +++ b/lib/plaid/models/numbers_international_iban.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/numbers_international_nullable.rb b/lib/plaid/models/numbers_international_nullable.rb index 4d3be2c13..10b49b611 100644 --- a/lib/plaid/models/numbers_international_nullable.rb +++ b/lib/plaid/models/numbers_international_nullable.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/originator.rb b/lib/plaid/models/originator.rb new file mode 100644 index 000000000..03f6a6d3b --- /dev/null +++ b/lib/plaid/models/originator.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.205.3 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # Originator and their status. + class Originator + # Originator’s client ID. + attr_accessor :client_id + + attr_accessor :transfer_diligence_status + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'client_id' => :'client_id', + :'transfer_diligence_status' => :'transfer_diligence_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 + { + :'client_id' => :'String', + :'transfer_diligence_status' => :'TransferDiligenceStatus' + } + 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::Originator` 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::Originator`. 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?(:'transfer_diligence_status') + self.transfer_diligence_status = attributes[:'transfer_diligence_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 @client_id.nil? + invalid_properties.push('invalid value for "client_id", client_id cannot be nil.') + end + + if @transfer_diligence_status.nil? + invalid_properties.push('invalid value for "transfer_diligence_status", transfer_diligence_status 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 @client_id.nil? + return false if @transfer_diligence_status.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 && + transfer_diligence_status == o.transfer_diligence_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 + [client_id, transfer_diligence_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/override_account_type.rb b/lib/plaid/models/override_account_type.rb index 8e850e692..89598b79c 100644 --- a/lib/plaid/models/override_account_type.rb +++ b/lib/plaid/models/override_account_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/override_accounts.rb b/lib/plaid/models/override_accounts.rb index 9684db51c..22fca4d15 100644 --- a/lib/plaid/models/override_accounts.rb +++ b/lib/plaid/models/override_accounts.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/owner.rb b/lib/plaid/models/owner.rb index 1c136d551..0bf000606 100644 --- a/lib/plaid/models/owner.rb +++ b/lib/plaid/models/owner.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/owner_override.rb b/lib/plaid/models/owner_override.rb index 777c052b6..faf12a5cd 100644 --- a/lib/plaid/models/owner_override.rb +++ b/lib/plaid/models/owner_override.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/ownership_type.rb b/lib/plaid/models/ownership_type.rb index 2149b9eb8..0495ddef5 100644 --- a/lib/plaid/models/ownership_type.rb +++ b/lib/plaid/models/ownership_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/parties.rb b/lib/plaid/models/parties.rb index 5be326a6b..7696ead84 100644 --- a/lib/plaid/models/parties.rb +++ b/lib/plaid/models/parties.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/partner_customer_create_request.rb b/lib/plaid/models/partner_customer_create_request.rb index 64e97ca60..70263ff56 100644 --- a/lib/plaid/models/partner_customer_create_request.rb +++ b/lib/plaid/models/partner_customer_create_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -34,7 +34,7 @@ class PartnerCustomerCreateRequest # If true, the end customer's default Link customization will be set to match the partner's. attr_accessor :create_link_customization - # Base64-encoded representation of the end customer's logo. Must be a PNG of size 1024x1024 under 4MB. Defaults to the partner's logo if omitted. + # Base64-encoded representation of the end customer's logo. Must be a PNG of size 1024x1024 under 4MB. The logo will be shared with financial institutions and shown to the end user during Link flows. A logo is required if `create_link_customization` is `true`. If `create_link_customization` is `false` and the logo is omitted, a stock logo will be used. attr_accessor :logo # The end customer's legal name. @@ -55,6 +55,8 @@ class PartnerCustomerCreateRequest # Denotes whether the partner has forwarded the Plaid bank addendum to the end customer. attr_accessor :is_bank_addendum_completed + attr_accessor :assets_under_management + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -71,7 +73,8 @@ def self.attribute_map :'technical_contact' => :'technical_contact', :'billing_contact' => :'billing_contact', :'address' => :'address', - :'is_bank_addendum_completed' => :'is_bank_addendum_completed' + :'is_bank_addendum_completed' => :'is_bank_addendum_completed', + :'assets_under_management' => :'assets_under_management' } end @@ -96,7 +99,8 @@ def self.openapi_types :'technical_contact' => :'PartnerEndCustomerTechnicalContact', :'billing_contact' => :'PartnerEndCustomerBillingContact', :'address' => :'PartnerEndCustomerAddress', - :'is_bank_addendum_completed' => :'Boolean' + :'is_bank_addendum_completed' => :'Boolean', + :'assets_under_management' => :'PartnerEndCustomerAssetsUnderManagement' } end @@ -178,6 +182,10 @@ def initialize(attributes = {}) if attributes.key?(:'is_bank_addendum_completed') self.is_bank_addendum_completed = attributes[:'is_bank_addendum_completed'] end + + if attributes.key?(:'assets_under_management') + self.assets_under_management = attributes[:'assets_under_management'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -251,7 +259,8 @@ def ==(o) technical_contact == o.technical_contact && billing_contact == o.billing_contact && address == o.address && - is_bank_addendum_completed == o.is_bank_addendum_completed + is_bank_addendum_completed == o.is_bank_addendum_completed && + assets_under_management == o.assets_under_management end # @see the `==` method @@ -263,7 +272,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [client_id, secret, company_name, is_diligence_attested, products, create_link_customization, logo, legal_entity_name, website, application_name, technical_contact, billing_contact, address, is_bank_addendum_completed].hash + [client_id, secret, company_name, is_diligence_attested, products, create_link_customization, logo, legal_entity_name, website, application_name, technical_contact, billing_contact, address, is_bank_addendum_completed, assets_under_management].hash end # Builds the object from hash diff --git a/lib/plaid/models/partner_customer_create_response.rb b/lib/plaid/models/partner_customer_create_response.rb index 8444e294a..843df4b18 100644 --- a/lib/plaid/models/partner_customer_create_response.rb +++ b/lib/plaid/models/partner_customer_create_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/partner_customer_enable_request.rb b/lib/plaid/models/partner_customer_enable_request.rb index 6e087c1f5..8faffacdb 100644 --- a/lib/plaid/models/partner_customer_enable_request.rb +++ b/lib/plaid/models/partner_customer_enable_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/partner_customer_enable_response.rb b/lib/plaid/models/partner_customer_enable_response.rb index d6ad8b9f5..a9adb1198 100644 --- a/lib/plaid/models/partner_customer_enable_response.rb +++ b/lib/plaid/models/partner_customer_enable_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/partner_customer_get_request.rb b/lib/plaid/models/partner_customer_get_request.rb index f43a5aa48..829e6894a 100644 --- a/lib/plaid/models/partner_customer_get_request.rb +++ b/lib/plaid/models/partner_customer_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/partner_customer_get_response.rb b/lib/plaid/models/partner_customer_get_response.rb index 4aaf6ba20..1847e3dd2 100644 --- a/lib/plaid/models/partner_customer_get_response.rb +++ b/lib/plaid/models/partner_customer_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/partner_customer_remove_request.rb b/lib/plaid/models/partner_customer_remove_request.rb new file mode 100644 index 000000000..bfd5aa325 --- /dev/null +++ b/lib/plaid/models/partner_customer_remove_request.rb @@ -0,0 +1,244 @@ +=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.205.3 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # Request schema for `/partner/customer/remove`. + class PartnerCustomerRemoveRequest + # 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 + + attr_accessor :end_customer_client_id + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'client_id' => :'client_id', + :'secret' => :'secret', + :'end_customer_client_id' => :'end_customer_client_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 + { + :'client_id' => :'String', + :'secret' => :'String', + :'end_customer_client_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::PartnerCustomerRemoveRequest` 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::PartnerCustomerRemoveRequest`. 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?(:'end_customer_client_id') + self.end_customer_client_id = attributes[:'end_customer_client_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 @end_customer_client_id.nil? + invalid_properties.push('invalid value for "end_customer_client_id", end_customer_client_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 @end_customer_client_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 && + client_id == o.client_id && + secret == o.secret && + end_customer_client_id == o.end_customer_client_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 + [client_id, secret, end_customer_client_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/partner_customer_remove_response.rb b/lib/plaid/models/partner_customer_remove_response.rb new file mode 100644 index 000000000..1955ab1ac --- /dev/null +++ b/lib/plaid/models/partner_customer_remove_response.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.205.3 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # Response schema for `/partner/customer/remove`. + class PartnerCustomerRemoveResponse + # 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::PartnerCustomerRemoveResponse` 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::PartnerCustomerRemoveResponse`. 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 + 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 && + 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/partner_end_customer.rb b/lib/plaid/models/partner_end_customer.rb index 4ed18dc7a..972efe875 100644 --- a/lib/plaid/models/partner_end_customer.rb +++ b/lib/plaid/models/partner_end_customer.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/partner_end_customer_address.rb b/lib/plaid/models/partner_end_customer_address.rb index fe097c2f3..e1dbea5a9 100644 --- a/lib/plaid/models/partner_end_customer_address.rb +++ b/lib/plaid/models/partner_end_customer_address.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/partner_end_customer_assets_under_management.rb b/lib/plaid/models/partner_end_customer_assets_under_management.rb new file mode 100644 index 000000000..b4e0055a1 --- /dev/null +++ b/lib/plaid/models/partner_end_customer_assets_under_management.rb @@ -0,0 +1,238 @@ +=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.205.3 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # Assets under management for the given end customer. Required for end customers with monthly service commitments. + class PartnerEndCustomerAssetsUnderManagement + attr_accessor :amount + + attr_accessor :iso_currency_code + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'amount' => :'amount', + :'iso_currency_code' => :'iso_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 + { + :'amount' => :'Float', + :'iso_currency_code' => :'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::PartnerEndCustomerAssetsUnderManagement` 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::PartnerEndCustomerAssetsUnderManagement`. 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?(:'amount') + self.amount = attributes[:'amount'] + end + + if attributes.key?(:'iso_currency_code') + self.iso_currency_code = attributes[:'iso_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 @amount.nil? + invalid_properties.push('invalid value for "amount", amount cannot be nil.') + end + + if @iso_currency_code.nil? + invalid_properties.push('invalid value for "iso_currency_code", iso_currency_code 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 @amount.nil? + return false if @iso_currency_code.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 && + amount == o.amount && + iso_currency_code == o.iso_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 + [amount, iso_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/partner_end_customer_billing_contact.rb b/lib/plaid/models/partner_end_customer_billing_contact.rb index 4ca124bed..f4f67e317 100644 --- a/lib/plaid/models/partner_end_customer_billing_contact.rb +++ b/lib/plaid/models/partner_end_customer_billing_contact.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/partner_end_customer_secrets.rb b/lib/plaid/models/partner_end_customer_secrets.rb index 056038689..3a61b70ae 100644 --- a/lib/plaid/models/partner_end_customer_secrets.rb +++ b/lib/plaid/models/partner_end_customer_secrets.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/partner_end_customer_status.rb b/lib/plaid/models/partner_end_customer_status.rb index 894cdd1ff..d23725050 100644 --- a/lib/plaid/models/partner_end_customer_status.rb +++ b/lib/plaid/models/partner_end_customer_status.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/partner_end_customer_technical_contact.rb b/lib/plaid/models/partner_end_customer_technical_contact.rb index 9e730c9a6..5615285a4 100644 --- a/lib/plaid/models/partner_end_customer_technical_contact.rb +++ b/lib/plaid/models/partner_end_customer_technical_contact.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/partner_end_customer_with_secrets.rb b/lib/plaid/models/partner_end_customer_with_secrets.rb index d36b4ea96..97e5e70ba 100644 --- a/lib/plaid/models/partner_end_customer_with_secrets.rb +++ b/lib/plaid/models/partner_end_customer_with_secrets.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/partner_end_customer_with_secrets_all_of.rb b/lib/plaid/models/partner_end_customer_with_secrets_all_of.rb index fd188a018..1cb4face4 100644 --- a/lib/plaid/models/partner_end_customer_with_secrets_all_of.rb +++ b/lib/plaid/models/partner_end_customer_with_secrets_all_of.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/party.rb b/lib/plaid/models/party.rb index ad7448ada..8e8eaf066 100644 --- a/lib/plaid/models/party.rb +++ b/lib/plaid/models/party.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/party_individual.rb b/lib/plaid/models/party_individual.rb index 018353715..5e7e1bd9a 100644 --- a/lib/plaid/models/party_individual.rb +++ b/lib/plaid/models/party_individual.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/party_role_type.rb b/lib/plaid/models/party_role_type.rb index c5d3dc1f1..13ed52790 100644 --- a/lib/plaid/models/party_role_type.rb +++ b/lib/plaid/models/party_role_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/pay.rb b/lib/plaid/models/pay.rb index 72ac3ec19..06854f93b 100644 --- a/lib/plaid/models/pay.rb +++ b/lib/plaid/models/pay.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/pay_frequency.rb b/lib/plaid/models/pay_frequency.rb index 663c6b2af..383bc88be 100644 --- a/lib/plaid/models/pay_frequency.rb +++ b/lib/plaid/models/pay_frequency.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/pay_frequency_value.rb b/lib/plaid/models/pay_frequency_value.rb index 11f644f2e..f921bc102 100644 --- a/lib/plaid/models/pay_frequency_value.rb +++ b/lib/plaid/models/pay_frequency_value.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/pay_period_details.rb b/lib/plaid/models/pay_period_details.rb index 362d4a8d7..4ef460f7a 100644 --- a/lib/plaid/models/pay_period_details.rb +++ b/lib/plaid/models/pay_period_details.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/pay_stub_deductions_breakdown.rb b/lib/plaid/models/pay_stub_deductions_breakdown.rb index 1bbd689f2..2993cd0a5 100644 --- a/lib/plaid/models/pay_stub_deductions_breakdown.rb +++ b/lib/plaid/models/pay_stub_deductions_breakdown.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/pay_stub_deductions_total.rb b/lib/plaid/models/pay_stub_deductions_total.rb index 9012ae045..7000d0786 100644 --- a/lib/plaid/models/pay_stub_deductions_total.rb +++ b/lib/plaid/models/pay_stub_deductions_total.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/pay_stub_distribution_breakdown.rb b/lib/plaid/models/pay_stub_distribution_breakdown.rb index e4830f7cc..14baca048 100644 --- a/lib/plaid/models/pay_stub_distribution_breakdown.rb +++ b/lib/plaid/models/pay_stub_distribution_breakdown.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/pay_stub_earnings_breakdown.rb b/lib/plaid/models/pay_stub_earnings_breakdown.rb index 382aa5f61..d50bb0e3b 100644 --- a/lib/plaid/models/pay_stub_earnings_breakdown.rb +++ b/lib/plaid/models/pay_stub_earnings_breakdown.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/pay_stub_earnings_total.rb b/lib/plaid/models/pay_stub_earnings_total.rb index 92b30ad4c..bafb8981b 100644 --- a/lib/plaid/models/pay_stub_earnings_total.rb +++ b/lib/plaid/models/pay_stub_earnings_total.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/pay_stub_pay_period_details.rb b/lib/plaid/models/pay_stub_pay_period_details.rb index a5056067c..f162ac319 100644 --- a/lib/plaid/models/pay_stub_pay_period_details.rb +++ b/lib/plaid/models/pay_stub_pay_period_details.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/pay_stub_taxpayer_id.rb b/lib/plaid/models/pay_stub_taxpayer_id.rb index 791c6bcc0..0f0da0765 100644 --- a/lib/plaid/models/pay_stub_taxpayer_id.rb +++ b/lib/plaid/models/pay_stub_taxpayer_id.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_amount.rb b/lib/plaid/models/payment_amount.rb index 3133eff9c..4b3428c06 100644 --- a/lib/plaid/models/payment_amount.rb +++ b/lib/plaid/models/payment_amount.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_amount_currency.rb b/lib/plaid/models/payment_amount_currency.rb index 62c051e43..70124cf2a 100644 --- a/lib/plaid/models/payment_amount_currency.rb +++ b/lib/plaid/models/payment_amount_currency.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_amount_nullable.rb b/lib/plaid/models/payment_amount_nullable.rb new file mode 100644 index 000000000..42bd4dd5b --- /dev/null +++ b/lib/plaid/models/payment_amount_nullable.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.205.3 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # The amount and currency of a payment + class PaymentAmountNullable + attr_accessor :currency + + # The amount of the payment. Must contain at most two digits of precision e.g. `1.23`. Minimum accepted value is `1`. + attr_accessor :value + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'currency' => :'currency', + :'value' => :'value' + } + 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 + { + :'currency' => :'PaymentAmountCurrency', + :'value' => :'Float' + } + 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::PaymentAmountNullable` 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::PaymentAmountNullable`. 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?(:'currency') + self.currency = attributes[:'currency'] + end + + if attributes.key?(:'value') + self.value = attributes[:'value'] + 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 @currency.nil? + invalid_properties.push('invalid value for "currency", currency cannot be nil.') + end + + if @value.nil? + invalid_properties.push('invalid value for "value", value 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 @currency.nil? + return false if @value.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 && + currency == o.currency && + value == o.value + 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 + [currency, value].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_refunded.rb b/lib/plaid/models/payment_amount_refunded.rb new file mode 100644 index 000000000..5deacde47 --- /dev/null +++ b/lib/plaid/models/payment_amount_refunded.rb @@ -0,0 +1,246 @@ +=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.205.3 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # The amount that has been refunded already. Subtract this from the payment amount to calculate the amount still available to refund. + class PaymentAmountRefunded + attr_accessor :currency + + # The amount of the payment. Must contain at most two digits of precision e.g. `1.23`. Minimum accepted value is `1`. + attr_accessor :value + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'currency' => :'currency', + :'value' => :'value' + } + 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 + { + :'currency' => :'PaymentAmountCurrency', + :'value' => :'Float' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # List of class defined in allOf (OpenAPI v3) + def self.openapi_all_of + [ + :'PaymentAmountNullable' + ] + 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::PaymentAmountRefunded` 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::PaymentAmountRefunded`. 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?(:'currency') + self.currency = attributes[:'currency'] + end + + if attributes.key?(:'value') + self.value = attributes[:'value'] + 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 @currency.nil? + invalid_properties.push('invalid value for "currency", currency cannot be nil.') + end + + if @value.nil? + invalid_properties.push('invalid value for "value", value 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 @currency.nil? + return false if @value.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 && + currency == o.currency && + value == o.value + 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 + [currency, value].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_to_refund.rb b/lib/plaid/models/payment_amount_to_refund.rb new file mode 100644 index 000000000..4ad24dfb5 --- /dev/null +++ b/lib/plaid/models/payment_amount_to_refund.rb @@ -0,0 +1,246 @@ +=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.205.3 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # An amount to refund the payment partially. If this amount is not specified, the payment is refunded fully for the remaining amount. + class PaymentAmountToRefund + attr_accessor :currency + + # The amount of the payment. Must contain at most two digits of precision e.g. `1.23`. Minimum accepted value is `1`. + attr_accessor :value + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'currency' => :'currency', + :'value' => :'value' + } + 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 + { + :'currency' => :'PaymentAmountCurrency', + :'value' => :'Float' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # List of class defined in allOf (OpenAPI v3) + def self.openapi_all_of + [ + :'PaymentAmountNullable' + ] + 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::PaymentAmountToRefund` 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::PaymentAmountToRefund`. 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?(:'currency') + self.currency = attributes[:'currency'] + end + + if attributes.key?(:'value') + self.value = attributes[:'value'] + 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 @currency.nil? + invalid_properties.push('invalid value for "currency", currency cannot be nil.') + end + + if @value.nil? + invalid_properties.push('invalid value for "value", value 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 @currency.nil? + return false if @value.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 && + currency == o.currency && + value == o.value + 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 + [currency, value].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_channel.rb b/lib/plaid/models/payment_channel.rb index b5203aa3f..a55e44cf8 100644 --- a/lib/plaid/models/payment_channel.rb +++ b/lib/plaid/models/payment_channel.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_consent_max_payment_amount.rb b/lib/plaid/models/payment_consent_max_payment_amount.rb index 0f9948b8e..dba84bd5d 100644 --- a/lib/plaid/models/payment_consent_max_payment_amount.rb +++ b/lib/plaid/models/payment_consent_max_payment_amount.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_consent_periodic_alignment.rb b/lib/plaid/models/payment_consent_periodic_alignment.rb index eb4bb18c1..857d2f322 100644 --- a/lib/plaid/models/payment_consent_periodic_alignment.rb +++ b/lib/plaid/models/payment_consent_periodic_alignment.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_consent_periodic_amount.rb b/lib/plaid/models/payment_consent_periodic_amount.rb index f7291eb77..0840aa701 100644 --- a/lib/plaid/models/payment_consent_periodic_amount.rb +++ b/lib/plaid/models/payment_consent_periodic_amount.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_consent_periodic_amount_amount.rb b/lib/plaid/models/payment_consent_periodic_amount_amount.rb index be4933d45..9edcd2095 100644 --- a/lib/plaid/models/payment_consent_periodic_amount_amount.rb +++ b/lib/plaid/models/payment_consent_periodic_amount_amount.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_consent_periodic_interval.rb b/lib/plaid/models/payment_consent_periodic_interval.rb index 70abc6848..cb5774a95 100644 --- a/lib/plaid/models/payment_consent_periodic_interval.rb +++ b/lib/plaid/models/payment_consent_periodic_interval.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_consent_valid_date_time.rb b/lib/plaid/models/payment_consent_valid_date_time.rb index f6db396bf..f6d94f1b3 100644 --- a/lib/plaid/models/payment_consent_valid_date_time.rb +++ b/lib/plaid/models/payment_consent_valid_date_time.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_initiation_address.rb b/lib/plaid/models/payment_initiation_address.rb index ef70f2c0d..6758390e6 100644 --- a/lib/plaid/models/payment_initiation_address.rb +++ b/lib/plaid/models/payment_initiation_address.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_initiation_consent.rb b/lib/plaid/models/payment_initiation_consent.rb index 45be36db6..52f5ada8f 100644 --- a/lib/plaid/models/payment_initiation_consent.rb +++ b/lib/plaid/models/payment_initiation_consent.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_initiation_consent_constraints.rb b/lib/plaid/models/payment_initiation_consent_constraints.rb index b8c3cdafc..b70706fdb 100644 --- a/lib/plaid/models/payment_initiation_consent_constraints.rb +++ b/lib/plaid/models/payment_initiation_consent_constraints.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_initiation_consent_create_request.rb b/lib/plaid/models/payment_initiation_consent_create_request.rb index 9837a0c55..fad862f39 100644 --- a/lib/plaid/models/payment_initiation_consent_create_request.rb +++ b/lib/plaid/models/payment_initiation_consent_create_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_initiation_consent_create_response.rb b/lib/plaid/models/payment_initiation_consent_create_response.rb index 010ff9324..68025f43a 100644 --- a/lib/plaid/models/payment_initiation_consent_create_response.rb +++ b/lib/plaid/models/payment_initiation_consent_create_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_initiation_consent_get_request.rb b/lib/plaid/models/payment_initiation_consent_get_request.rb index 6c86b4a26..efc0cea30 100644 --- a/lib/plaid/models/payment_initiation_consent_get_request.rb +++ b/lib/plaid/models/payment_initiation_consent_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_initiation_consent_get_response.rb b/lib/plaid/models/payment_initiation_consent_get_response.rb index d2c638e60..53610b7b2 100644 --- a/lib/plaid/models/payment_initiation_consent_get_response.rb +++ b/lib/plaid/models/payment_initiation_consent_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 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 f9d663fc5..a3e52e734 100644 --- a/lib/plaid/models/payment_initiation_consent_payment_execute_request.rb +++ b/lib/plaid/models/payment_initiation_consent_payment_execute_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 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 eb3972c8d..9f9f15de7 100644 --- a/lib/plaid/models/payment_initiation_consent_payment_execute_response.rb +++ b/lib/plaid/models/payment_initiation_consent_payment_execute_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_initiation_consent_revoke_request.rb b/lib/plaid/models/payment_initiation_consent_revoke_request.rb index ca2ae5bbe..70a4634d8 100644 --- a/lib/plaid/models/payment_initiation_consent_revoke_request.rb +++ b/lib/plaid/models/payment_initiation_consent_revoke_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_initiation_consent_revoke_response.rb b/lib/plaid/models/payment_initiation_consent_revoke_response.rb index d1708cdc4..edecaf605 100644 --- a/lib/plaid/models/payment_initiation_consent_revoke_response.rb +++ b/lib/plaid/models/payment_initiation_consent_revoke_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_initiation_consent_scope.rb b/lib/plaid/models/payment_initiation_consent_scope.rb index ec30c40cb..7262ceefc 100644 --- a/lib/plaid/models/payment_initiation_consent_scope.rb +++ b/lib/plaid/models/payment_initiation_consent_scope.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_initiation_consent_status.rb b/lib/plaid/models/payment_initiation_consent_status.rb index 7291a0ae1..11e815373 100644 --- a/lib/plaid/models/payment_initiation_consent_status.rb +++ b/lib/plaid/models/payment_initiation_consent_status.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_initiation_metadata.rb b/lib/plaid/models/payment_initiation_metadata.rb index 3b76d0ce1..1d768a868 100644 --- a/lib/plaid/models/payment_initiation_metadata.rb +++ b/lib/plaid/models/payment_initiation_metadata.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_initiation_optional_restriction_bacs.rb b/lib/plaid/models/payment_initiation_optional_restriction_bacs.rb index e50bde785..fa071b485 100644 --- a/lib/plaid/models/payment_initiation_optional_restriction_bacs.rb +++ b/lib/plaid/models/payment_initiation_optional_restriction_bacs.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_initiation_payment.rb b/lib/plaid/models/payment_initiation_payment.rb index 063008a37..d75bf06e8 100644 --- a/lib/plaid/models/payment_initiation_payment.rb +++ b/lib/plaid/models/payment_initiation_payment.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -47,6 +47,8 @@ class PaymentInitiationPayment # Refund IDs associated with the payment. attr_accessor :refund_ids + attr_accessor :amount_refunded + # The EMI (E-Money Institution) wallet that this payment is associated with, if any. This wallet is used as an intermediary account to enable Plaid to reconcile the settlement of funds for Payment Initiation requests. attr_accessor :wallet_id @@ -57,6 +59,9 @@ class PaymentInitiationPayment # The payment consent ID that this payment was initiated with. Is present only when payment was initiated using the payment consent. attr_accessor :consent_id + # The transaction ID that this payment is associated with, if any. This is present only when a payment was initiated using virtual accounts. + attr_accessor :transaction_id + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -72,10 +77,12 @@ def self.attribute_map :'bacs' => :'bacs', :'iban' => :'iban', :'refund_ids' => :'refund_ids', + :'amount_refunded' => :'amount_refunded', :'wallet_id' => :'wallet_id', :'scheme' => :'scheme', :'adjusted_scheme' => :'adjusted_scheme', - :'consent_id' => :'consent_id' + :'consent_id' => :'consent_id', + :'transaction_id' => :'transaction_id' } end @@ -99,10 +106,12 @@ def self.openapi_types :'bacs' => :'SenderBACSNullable', :'iban' => :'String', :'refund_ids' => :'Array', + :'amount_refunded' => :'PaymentAmountRefunded', :'wallet_id' => :'String', :'scheme' => :'PaymentScheme', :'adjusted_scheme' => :'PaymentScheme', - :'consent_id' => :'String' + :'consent_id' => :'String', + :'transaction_id' => :'String' } end @@ -118,7 +127,8 @@ def self.openapi_nullable :'wallet_id', :'scheme', :'adjusted_scheme', - :'consent_id' + :'consent_id', + :'transaction_id' ]) end @@ -187,6 +197,10 @@ def initialize(attributes = {}) end end + if attributes.key?(:'amount_refunded') + self.amount_refunded = attributes[:'amount_refunded'] + end + if attributes.key?(:'wallet_id') self.wallet_id = attributes[:'wallet_id'] end @@ -202,6 +216,10 @@ def initialize(attributes = {}) if attributes.key?(:'consent_id') self.consent_id = attributes[:'consent_id'] end + + if attributes.key?(:'transaction_id') + self.transaction_id = attributes[:'transaction_id'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -264,10 +282,12 @@ def ==(o) bacs == o.bacs && iban == o.iban && refund_ids == o.refund_ids && + amount_refunded == o.amount_refunded && wallet_id == o.wallet_id && scheme == o.scheme && adjusted_scheme == o.adjusted_scheme && - consent_id == o.consent_id + consent_id == o.consent_id && + transaction_id == o.transaction_id end # @see the `==` method @@ -279,7 +299,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [payment_id, amount, status, recipient_id, reference, adjusted_reference, last_status_update, schedule, refund_details, bacs, iban, refund_ids, wallet_id, scheme, adjusted_scheme, consent_id].hash + [payment_id, amount, status, recipient_id, reference, adjusted_reference, last_status_update, schedule, refund_details, bacs, iban, refund_ids, amount_refunded, wallet_id, scheme, adjusted_scheme, consent_id, transaction_id].hash end # Builds the object from hash diff --git a/lib/plaid/models/payment_initiation_payment_create_request.rb b/lib/plaid/models/payment_initiation_payment_create_request.rb index ac24b6d06..64af9fb8e 100644 --- a/lib/plaid/models/payment_initiation_payment_create_request.rb +++ b/lib/plaid/models/payment_initiation_payment_create_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_initiation_payment_create_response.rb b/lib/plaid/models/payment_initiation_payment_create_response.rb index f6391f58d..e98666d86 100644 --- a/lib/plaid/models/payment_initiation_payment_create_response.rb +++ b/lib/plaid/models/payment_initiation_payment_create_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_initiation_payment_create_status.rb b/lib/plaid/models/payment_initiation_payment_create_status.rb index d062b2515..85061a1d3 100644 --- a/lib/plaid/models/payment_initiation_payment_create_status.rb +++ b/lib/plaid/models/payment_initiation_payment_create_status.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_initiation_payment_get_request.rb b/lib/plaid/models/payment_initiation_payment_get_request.rb index 4170f1ded..f5b97462f 100644 --- a/lib/plaid/models/payment_initiation_payment_get_request.rb +++ b/lib/plaid/models/payment_initiation_payment_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_initiation_payment_get_response.rb b/lib/plaid/models/payment_initiation_payment_get_response.rb index cf0842bce..3797775b8 100644 --- a/lib/plaid/models/payment_initiation_payment_get_response.rb +++ b/lib/plaid/models/payment_initiation_payment_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -47,6 +47,8 @@ class PaymentInitiationPaymentGetResponse # Refund IDs associated with the payment. attr_accessor :refund_ids + attr_accessor :amount_refunded + # The EMI (E-Money Institution) wallet that this payment is associated with, if any. This wallet is used as an intermediary account to enable Plaid to reconcile the settlement of funds for Payment Initiation requests. attr_accessor :wallet_id @@ -57,6 +59,9 @@ class PaymentInitiationPaymentGetResponse # The payment consent ID that this payment was initiated with. Is present only when payment was initiated using the payment consent. attr_accessor :consent_id + # The transaction ID that this payment is associated with, if any. This is present only when a payment was initiated using virtual accounts. + attr_accessor :transaction_id + # 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 @@ -75,10 +80,12 @@ def self.attribute_map :'bacs' => :'bacs', :'iban' => :'iban', :'refund_ids' => :'refund_ids', + :'amount_refunded' => :'amount_refunded', :'wallet_id' => :'wallet_id', :'scheme' => :'scheme', :'adjusted_scheme' => :'adjusted_scheme', :'consent_id' => :'consent_id', + :'transaction_id' => :'transaction_id', :'request_id' => :'request_id' } end @@ -103,10 +110,12 @@ def self.openapi_types :'bacs' => :'SenderBACSNullable', :'iban' => :'String', :'refund_ids' => :'Array', + :'amount_refunded' => :'PaymentAmountRefunded', :'wallet_id' => :'String', :'scheme' => :'PaymentScheme', :'adjusted_scheme' => :'PaymentScheme', :'consent_id' => :'String', + :'transaction_id' => :'String', :'request_id' => :'String' } end @@ -124,6 +133,7 @@ def self.openapi_nullable :'scheme', :'adjusted_scheme', :'consent_id', + :'transaction_id', ]) end @@ -200,6 +210,10 @@ def initialize(attributes = {}) end end + if attributes.key?(:'amount_refunded') + self.amount_refunded = attributes[:'amount_refunded'] + end + if attributes.key?(:'wallet_id') self.wallet_id = attributes[:'wallet_id'] end @@ -216,6 +230,10 @@ def initialize(attributes = {}) self.consent_id = attributes[:'consent_id'] end + if attributes.key?(:'transaction_id') + self.transaction_id = attributes[:'transaction_id'] + end + if attributes.key?(:'request_id') self.request_id = attributes[:'request_id'] end @@ -286,10 +304,12 @@ def ==(o) bacs == o.bacs && iban == o.iban && refund_ids == o.refund_ids && + amount_refunded == o.amount_refunded && wallet_id == o.wallet_id && scheme == o.scheme && adjusted_scheme == o.adjusted_scheme && consent_id == o.consent_id && + transaction_id == o.transaction_id && request_id == o.request_id end @@ -302,7 +322,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [payment_id, amount, status, recipient_id, reference, adjusted_reference, last_status_update, schedule, refund_details, bacs, iban, refund_ids, wallet_id, scheme, adjusted_scheme, consent_id, request_id].hash + [payment_id, amount, status, recipient_id, reference, adjusted_reference, last_status_update, schedule, refund_details, bacs, iban, refund_ids, amount_refunded, wallet_id, scheme, adjusted_scheme, consent_id, transaction_id, request_id].hash end # Builds the object from hash diff --git a/lib/plaid/models/payment_initiation_payment_list_request.rb b/lib/plaid/models/payment_initiation_payment_list_request.rb index df523fc36..f2f4ef1c3 100644 --- a/lib/plaid/models/payment_initiation_payment_list_request.rb +++ b/lib/plaid/models/payment_initiation_payment_list_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_initiation_payment_list_response.rb b/lib/plaid/models/payment_initiation_payment_list_response.rb index 42571364c..c2174342d 100644 --- a/lib/plaid/models/payment_initiation_payment_list_response.rb +++ b/lib/plaid/models/payment_initiation_payment_list_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_initiation_payment_reverse_request.rb b/lib/plaid/models/payment_initiation_payment_reverse_request.rb index be67f3eb5..0eb74c6b8 100644 --- a/lib/plaid/models/payment_initiation_payment_reverse_request.rb +++ b/lib/plaid/models/payment_initiation_payment_reverse_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -31,6 +31,8 @@ class PaymentInitiationPaymentReverseRequest # A reference for the refund. This must be an alphanumeric string with at most 18 characters and must not contain any special characters or spaces. attr_accessor :reference + attr_accessor :amount + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -38,7 +40,8 @@ def self.attribute_map :'secret' => :'secret', :'payment_id' => :'payment_id', :'idempotency_key' => :'idempotency_key', - :'reference' => :'reference' + :'reference' => :'reference', + :'amount' => :'amount' } end @@ -54,7 +57,8 @@ def self.openapi_types :'secret' => :'String', :'payment_id' => :'String', :'idempotency_key' => :'String', - :'reference' => :'String' + :'reference' => :'String', + :'amount' => :'PaymentAmountToRefund' } end @@ -98,6 +102,10 @@ def initialize(attributes = {}) if attributes.key?(:'reference') self.reference = attributes[:'reference'] end + + if attributes.key?(:'amount') + self.amount = attributes[:'amount'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -218,7 +226,8 @@ def ==(o) secret == o.secret && payment_id == o.payment_id && idempotency_key == o.idempotency_key && - reference == o.reference + reference == o.reference && + amount == o.amount end # @see the `==` method @@ -230,7 +239,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [client_id, secret, payment_id, idempotency_key, reference].hash + [client_id, secret, payment_id, idempotency_key, reference, amount].hash end # Builds the object from hash diff --git a/lib/plaid/models/payment_initiation_payment_reverse_response.rb b/lib/plaid/models/payment_initiation_payment_reverse_response.rb index 624535a16..fc9b5a020 100644 --- a/lib/plaid/models/payment_initiation_payment_reverse_response.rb +++ b/lib/plaid/models/payment_initiation_payment_reverse_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_initiation_payment_status.rb b/lib/plaid/models/payment_initiation_payment_status.rb index 8ce592bbd..fdbb53595 100644 --- a/lib/plaid/models/payment_initiation_payment_status.rb +++ b/lib/plaid/models/payment_initiation_payment_status.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 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 64f55dd6f..e4ce655ae 100644 --- a/lib/plaid/models/payment_initiation_payment_token_create_request.rb +++ b/lib/plaid/models/payment_initiation_payment_token_create_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 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 76556717c..f69e6688b 100644 --- a/lib/plaid/models/payment_initiation_payment_token_create_response.rb +++ b/lib/plaid/models/payment_initiation_payment_token_create_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_initiation_recipient.rb b/lib/plaid/models/payment_initiation_recipient.rb index 25aff96d1..52840b396 100644 --- a/lib/plaid/models/payment_initiation_recipient.rb +++ b/lib/plaid/models/payment_initiation_recipient.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_initiation_recipient_create_request.rb b/lib/plaid/models/payment_initiation_recipient_create_request.rb index 816ffe4f2..d0f8472b4 100644 --- a/lib/plaid/models/payment_initiation_recipient_create_request.rb +++ b/lib/plaid/models/payment_initiation_recipient_create_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_initiation_recipient_create_response.rb b/lib/plaid/models/payment_initiation_recipient_create_response.rb index 18d5f358d..41b7f79ae 100644 --- a/lib/plaid/models/payment_initiation_recipient_create_response.rb +++ b/lib/plaid/models/payment_initiation_recipient_create_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_initiation_recipient_get_request.rb b/lib/plaid/models/payment_initiation_recipient_get_request.rb index 7e80a0d4e..eaaef2d32 100644 --- a/lib/plaid/models/payment_initiation_recipient_get_request.rb +++ b/lib/plaid/models/payment_initiation_recipient_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_initiation_recipient_get_response.rb b/lib/plaid/models/payment_initiation_recipient_get_response.rb index 28aad96e1..0aa97176a 100644 --- a/lib/plaid/models/payment_initiation_recipient_get_response.rb +++ b/lib/plaid/models/payment_initiation_recipient_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 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 5987a2766..c2fab86d4 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,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_initiation_recipient_list_request.rb b/lib/plaid/models/payment_initiation_recipient_list_request.rb index c4d3582ef..28c4f3b5c 100644 --- a/lib/plaid/models/payment_initiation_recipient_list_request.rb +++ b/lib/plaid/models/payment_initiation_recipient_list_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_initiation_recipient_list_response.rb b/lib/plaid/models/payment_initiation_recipient_list_response.rb index e0eeabdb8..663c02de2 100644 --- a/lib/plaid/models/payment_initiation_recipient_list_response.rb +++ b/lib/plaid/models/payment_initiation_recipient_list_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_initiation_standing_order_metadata.rb b/lib/plaid/models/payment_initiation_standing_order_metadata.rb index a194fda78..cdaef976d 100644 --- a/lib/plaid/models/payment_initiation_standing_order_metadata.rb +++ b/lib/plaid/models/payment_initiation_standing_order_metadata.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_limits.rb b/lib/plaid/models/payment_limits.rb new file mode 100644 index 000000000..f04ac4c31 --- /dev/null +++ b/lib/plaid/models/payment_limits.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.205.3 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # Requested payment (i.e. receiving money) limits for the end customer. + class PaymentLimits + # Average payment amount, in dollars. + attr_accessor :average_amount + + # Maximum payment amount, in dollars. + attr_accessor :maximum_amount + + # Monthly payment amount, in dollars. + attr_accessor :monthly_amount + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'average_amount' => :'average_amount', + :'maximum_amount' => :'maximum_amount', + :'monthly_amount' => :'monthly_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 + { + :'average_amount' => :'Integer', + :'maximum_amount' => :'Integer', + :'monthly_amount' => :'Integer' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `Plaid::PaymentLimits` 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::PaymentLimits`. 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?(:'average_amount') + self.average_amount = attributes[:'average_amount'] + end + + if attributes.key?(:'maximum_amount') + self.maximum_amount = attributes[:'maximum_amount'] + end + + if attributes.key?(:'monthly_amount') + self.monthly_amount = attributes[:'monthly_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 + if @average_amount.nil? + invalid_properties.push('invalid value for "average_amount", average_amount cannot be nil.') + end + + if @maximum_amount.nil? + invalid_properties.push('invalid value for "maximum_amount", maximum_amount cannot be nil.') + end + + if @monthly_amount.nil? + invalid_properties.push('invalid value for "monthly_amount", monthly_amount 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 @average_amount.nil? + return false if @maximum_amount.nil? + return false if @monthly_amount.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 && + average_amount == o.average_amount && + maximum_amount == o.maximum_amount && + monthly_amount == o.monthly_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 + [average_amount, maximum_amount, monthly_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/payment_meta.rb b/lib/plaid/models/payment_meta.rb index f4bc647b8..eb0b1cfb8 100644 --- a/lib/plaid/models/payment_meta.rb +++ b/lib/plaid/models/payment_meta.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_profile_create_request.rb b/lib/plaid/models/payment_profile_create_request.rb index f28691228..77b85c9b8 100644 --- a/lib/plaid/models/payment_profile_create_request.rb +++ b/lib/plaid/models/payment_profile_create_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_profile_create_response.rb b/lib/plaid/models/payment_profile_create_response.rb index e0861b190..d4345bec1 100644 --- a/lib/plaid/models/payment_profile_create_response.rb +++ b/lib/plaid/models/payment_profile_create_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_profile_get_request.rb b/lib/plaid/models/payment_profile_get_request.rb index 9e43d72ad..538f71b14 100644 --- a/lib/plaid/models/payment_profile_get_request.rb +++ b/lib/plaid/models/payment_profile_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_profile_get_response.rb b/lib/plaid/models/payment_profile_get_response.rb index 1a1974549..ab209f5d7 100644 --- a/lib/plaid/models/payment_profile_get_response.rb +++ b/lib/plaid/models/payment_profile_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -22,6 +22,9 @@ class PaymentProfileGetResponse # Timestamp in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:mm:ssZ`) indicating the time the given Payment Profile was created at attr_accessor :created_at + # Timestamp in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:mm:ssZ`) indicating the time the given Payment Profile was deleted at. Always `null` if the Payment Profile has not been deleted + attr_accessor :deleted_at + attr_accessor :status # A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive. @@ -32,6 +35,7 @@ def self.attribute_map { :'updated_at' => :'updated_at', :'created_at' => :'created_at', + :'deleted_at' => :'deleted_at', :'status' => :'status', :'request_id' => :'request_id' } @@ -47,6 +51,7 @@ def self.openapi_types { :'updated_at' => :'Time', :'created_at' => :'Time', + :'deleted_at' => :'Time', :'status' => :'PaymentProfileStatus', :'request_id' => :'String' } @@ -55,6 +60,7 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'deleted_at', ]) end @@ -81,6 +87,10 @@ def initialize(attributes = {}) self.created_at = attributes[:'created_at'] end + if attributes.key?(:'deleted_at') + self.deleted_at = attributes[:'deleted_at'] + end + if attributes.key?(:'status') self.status = attributes[:'status'] end @@ -130,6 +140,7 @@ def ==(o) self.class == o.class && updated_at == o.updated_at && created_at == o.created_at && + deleted_at == o.deleted_at && status == o.status && request_id == o.request_id end @@ -143,7 +154,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [updated_at, created_at, status, request_id].hash + [updated_at, created_at, deleted_at, status, request_id].hash end # Builds the object from hash diff --git a/lib/plaid/models/payment_profile_remove_request.rb b/lib/plaid/models/payment_profile_remove_request.rb index b58d8e8f4..56b380dc0 100644 --- a/lib/plaid/models/payment_profile_remove_request.rb +++ b/lib/plaid/models/payment_profile_remove_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_profile_remove_response.rb b/lib/plaid/models/payment_profile_remove_response.rb index 47443fdcc..5d207aae0 100644 --- a/lib/plaid/models/payment_profile_remove_response.rb +++ b/lib/plaid/models/payment_profile_remove_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_profile_status.rb b/lib/plaid/models/payment_profile_status.rb index 142c1136e..dcd5c5168 100644 --- a/lib/plaid/models/payment_profile_status.rb +++ b/lib/plaid/models/payment_profile_status.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_schedule_interval.rb b/lib/plaid/models/payment_schedule_interval.rb index 222065fe3..cda3274c9 100644 --- a/lib/plaid/models/payment_schedule_interval.rb +++ b/lib/plaid/models/payment_schedule_interval.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_scheme.rb b/lib/plaid/models/payment_scheme.rb index 6d8d793f2..e2514bcd5 100644 --- a/lib/plaid/models/payment_scheme.rb +++ b/lib/plaid/models/payment_scheme.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payment_status_update_webhook.rb b/lib/plaid/models/payment_status_update_webhook.rb index 62f3ec845..9400b28a6 100644 --- a/lib/plaid/models/payment_status_update_webhook.rb +++ b/lib/plaid/models/payment_status_update_webhook.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payroll_income_account_data.rb b/lib/plaid/models/payroll_income_account_data.rb index e365fd198..19ff83faa 100644 --- a/lib/plaid/models/payroll_income_account_data.rb +++ b/lib/plaid/models/payroll_income_account_data.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payroll_income_object.rb b/lib/plaid/models/payroll_income_object.rb index 39d6d2991..09dca025a 100644 --- a/lib/plaid/models/payroll_income_object.rb +++ b/lib/plaid/models/payroll_income_object.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payroll_income_rate_of_pay.rb b/lib/plaid/models/payroll_income_rate_of_pay.rb index b97a04001..64f03581a 100644 --- a/lib/plaid/models/payroll_income_rate_of_pay.rb +++ b/lib/plaid/models/payroll_income_rate_of_pay.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payroll_item.rb b/lib/plaid/models/payroll_item.rb index 49db30cd5..1a68f53ee 100644 --- a/lib/plaid/models/payroll_item.rb +++ b/lib/plaid/models/payroll_item.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -19,6 +19,12 @@ class PayrollItem # The `item_id` of the Item associated with this webhook, warning, or error attr_accessor :item_id + # The unique identifier of the institution associated with the Item. + attr_accessor :institution_id + + # The name of the institution associated with the Item. + attr_accessor :institution_name + attr_accessor :accounts attr_accessor :payroll_income @@ -32,6 +38,8 @@ class PayrollItem def self.attribute_map { :'item_id' => :'item_id', + :'institution_id' => :'institution_id', + :'institution_name' => :'institution_name', :'accounts' => :'accounts', :'payroll_income' => :'payroll_income', :'status' => :'status', @@ -48,6 +56,8 @@ def self.acceptable_attributes def self.openapi_types { :'item_id' => :'String', + :'institution_id' => :'String', + :'institution_name' => :'String', :'accounts' => :'Array', :'payroll_income' => :'Array', :'status' => :'PayrollItemStatus', @@ -82,6 +92,14 @@ def initialize(attributes = {}) self.item_id = attributes[:'item_id'] end + if attributes.key?(:'institution_id') + self.institution_id = attributes[:'institution_id'] + end + + if attributes.key?(:'institution_name') + self.institution_name = attributes[:'institution_name'] + end + if attributes.key?(:'accounts') if (value = attributes[:'accounts']).is_a?(Array) self.accounts = value @@ -111,6 +129,14 @@ def list_invalid_properties invalid_properties.push('invalid value for "item_id", item_id cannot be nil.') end + if @institution_id.nil? + invalid_properties.push('invalid value for "institution_id", institution_id cannot be nil.') + end + + if @institution_name.nil? + invalid_properties.push('invalid value for "institution_name", institution_name cannot be nil.') + end + if @accounts.nil? invalid_properties.push('invalid value for "accounts", accounts cannot be nil.') end @@ -126,6 +152,8 @@ def list_invalid_properties # @return true if the model is valid def valid? return false if @item_id.nil? + return false if @institution_id.nil? + return false if @institution_name.nil? return false if @accounts.nil? return false if @payroll_income.nil? true @@ -137,6 +165,8 @@ def ==(o) return true if self.equal?(o) self.class == o.class && item_id == o.item_id && + institution_id == o.institution_id && + institution_name == o.institution_name && accounts == o.accounts && payroll_income == o.payroll_income && status == o.status && @@ -152,7 +182,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [item_id, accounts, payroll_income, status, updated_at].hash + [item_id, institution_id, institution_name, accounts, payroll_income, status, updated_at].hash end # Builds the object from hash diff --git a/lib/plaid/models/payroll_item_status.rb b/lib/plaid/models/payroll_item_status.rb index 0e551f9a8..7286d4033 100644 --- a/lib/plaid/models/payroll_item_status.rb +++ b/lib/plaid/models/payroll_item_status.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/payroll_risk_signals_item.rb b/lib/plaid/models/payroll_risk_signals_item.rb index 622f70207..b0b81ff25 100644 --- a/lib/plaid/models/payroll_risk_signals_item.rb +++ b/lib/plaid/models/payroll_risk_signals_item.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/paystub.rb b/lib/plaid/models/paystub.rb index 7f79abf33..0c297bbdd 100644 --- a/lib/plaid/models/paystub.rb +++ b/lib/plaid/models/paystub.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/paystub_address.rb b/lib/plaid/models/paystub_address.rb index 30e439c54..4b57c7b0d 100644 --- a/lib/plaid/models/paystub_address.rb +++ b/lib/plaid/models/paystub_address.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/paystub_deduction.rb b/lib/plaid/models/paystub_deduction.rb index be4ef8c8a..6f1cddc34 100644 --- a/lib/plaid/models/paystub_deduction.rb +++ b/lib/plaid/models/paystub_deduction.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/paystub_details.rb b/lib/plaid/models/paystub_details.rb index 38be4a74a..b05145358 100644 --- a/lib/plaid/models/paystub_details.rb +++ b/lib/plaid/models/paystub_details.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/paystub_employer.rb b/lib/plaid/models/paystub_employer.rb index 2b2f493b4..27b2d359d 100644 --- a/lib/plaid/models/paystub_employer.rb +++ b/lib/plaid/models/paystub_employer.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/paystub_override.rb b/lib/plaid/models/paystub_override.rb index ca02f9ab3..97fcd4746 100644 --- a/lib/plaid/models/paystub_override.rb +++ b/lib/plaid/models/paystub_override.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/paystub_override_employee.rb b/lib/plaid/models/paystub_override_employee.rb index 956bbcb90..acb7d27ec 100644 --- a/lib/plaid/models/paystub_override_employee.rb +++ b/lib/plaid/models/paystub_override_employee.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/paystub_override_employee_address.rb b/lib/plaid/models/paystub_override_employee_address.rb index 5c9de3f93..14e6ae0e0 100644 --- a/lib/plaid/models/paystub_override_employee_address.rb +++ b/lib/plaid/models/paystub_override_employee_address.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/paystub_override_employer.rb b/lib/plaid/models/paystub_override_employer.rb index 4a8673a8b..5d4b5439d 100644 --- a/lib/plaid/models/paystub_override_employer.rb +++ b/lib/plaid/models/paystub_override_employer.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/paystub_pay_frequency.rb b/lib/plaid/models/paystub_pay_frequency.rb index 3d79458ad..662a348ac 100644 --- a/lib/plaid/models/paystub_pay_frequency.rb +++ b/lib/plaid/models/paystub_pay_frequency.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/paystub_ytd_details.rb b/lib/plaid/models/paystub_ytd_details.rb index 67898c150..cd626e9bd 100644 --- a/lib/plaid/models/paystub_ytd_details.rb +++ b/lib/plaid/models/paystub_ytd_details.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/pending_expiration_webhook.rb b/lib/plaid/models/pending_expiration_webhook.rb index 26fb0451f..ca1e41786 100644 --- a/lib/plaid/models/pending_expiration_webhook.rb +++ b/lib/plaid/models/pending_expiration_webhook.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/personal_finance_category.rb b/lib/plaid/models/personal_finance_category.rb index 53f42a7f8..7861719d0 100644 --- a/lib/plaid/models/personal_finance_category.rb +++ b/lib/plaid/models/personal_finance_category.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/phone_number.rb b/lib/plaid/models/phone_number.rb index 1304904b9..ab3b2ffca 100644 --- a/lib/plaid/models/phone_number.rb +++ b/lib/plaid/models/phone_number.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/phone_number_match_score.rb b/lib/plaid/models/phone_number_match_score.rb index bacb9cbe5..f1fcc2bc3 100644 --- a/lib/plaid/models/phone_number_match_score.rb +++ b/lib/plaid/models/phone_number_match_score.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -17,12 +17,12 @@ module Plaid # Score found by matching phone number provided by the API with the phone number on the account at the financial institution. If the account contains multiple owners, the maximum match score is filled. class PhoneNumberMatchScore # Match score for normalized phone number. 100 is a perfect match and 0 is a no match. If the phone number is missing from either the API or financial institution, this is empty. - attr_accessor :scores + attr_accessor :score # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'scores' => :'scores' + :'score' => :'score' } end @@ -34,14 +34,14 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types { - :'scores' => :'Integer' + :'score' => :'Integer' } end # List of attributes with nullable: true def self.openapi_nullable Set.new([ - :'scores' + :'score' ]) end @@ -60,8 +60,8 @@ def initialize(attributes = {}) h[k.to_sym] = v } - if attributes.key?(:'scores') - self.scores = attributes[:'scores'] + if attributes.key?(:'score') + self.score = attributes[:'score'] end end @@ -83,7 +83,7 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - scores == o.scores + score == o.score end # @see the `==` method @@ -95,7 +95,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [scores].hash + [score].hash end # Builds the object from hash diff --git a/lib/plaid/models/phone_type.rb b/lib/plaid/models/phone_type.rb index 3c0ddbb8d..0b5063874 100644 --- a/lib/plaid/models/phone_type.rb +++ b/lib/plaid/models/phone_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/physical_document_category.rb b/lib/plaid/models/physical_document_category.rb index 91ba7690b..51677b35e 100644 --- a/lib/plaid/models/physical_document_category.rb +++ b/lib/plaid/models/physical_document_category.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/physical_document_extracted_data.rb b/lib/plaid/models/physical_document_extracted_data.rb index 48876e052..45a42d769 100644 --- a/lib/plaid/models/physical_document_extracted_data.rb +++ b/lib/plaid/models/physical_document_extracted_data.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/physical_document_extracted_data_analysis.rb b/lib/plaid/models/physical_document_extracted_data_analysis.rb index db19d33ea..a61c1bfee 100644 --- a/lib/plaid/models/physical_document_extracted_data_analysis.rb +++ b/lib/plaid/models/physical_document_extracted_data_analysis.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/physical_document_images.rb b/lib/plaid/models/physical_document_images.rb index a30c75943..121ad6ffe 100644 --- a/lib/plaid/models/physical_document_images.rb +++ b/lib/plaid/models/physical_document_images.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/plaid_error.rb b/lib/plaid/models/plaid_error.rb index acfcdd82f..feda82b47 100644 --- a/lib/plaid/models/plaid_error.rb +++ b/lib/plaid/models/plaid_error.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/plaid_error_type.rb b/lib/plaid/models/plaid_error_type.rb index 8e500045d..3904d39be 100644 --- a/lib/plaid/models/plaid_error_type.rb +++ b/lib/plaid/models/plaid_error_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/platform_ids.rb b/lib/plaid/models/platform_ids.rb index 1c33f766c..219a7f080 100644 --- a/lib/plaid/models/platform_ids.rb +++ b/lib/plaid/models/platform_ids.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/po_box_status.rb b/lib/plaid/models/po_box_status.rb index 4d1929b39..31674653c 100644 --- a/lib/plaid/models/po_box_status.rb +++ b/lib/plaid/models/po_box_status.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 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 94cd1cfc3..1ad383990 100644 --- a/lib/plaid/models/processor_apex_processor_token_create_request.rb +++ b/lib/plaid/models/processor_apex_processor_token_create_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/processor_auth_get_request.rb b/lib/plaid/models/processor_auth_get_request.rb index 8912431ad..b504be900 100644 --- a/lib/plaid/models/processor_auth_get_request.rb +++ b/lib/plaid/models/processor_auth_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/processor_auth_get_response.rb b/lib/plaid/models/processor_auth_get_response.rb index c71553bab..fc8f21c7f 100644 --- a/lib/plaid/models/processor_auth_get_response.rb +++ b/lib/plaid/models/processor_auth_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/processor_balance_get_request.rb b/lib/plaid/models/processor_balance_get_request.rb index f326174a1..6516c8e66 100644 --- a/lib/plaid/models/processor_balance_get_request.rb +++ b/lib/plaid/models/processor_balance_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/processor_balance_get_request_options.rb b/lib/plaid/models/processor_balance_get_request_options.rb index 230169961..4299993a0 100644 --- a/lib/plaid/models/processor_balance_get_request_options.rb +++ b/lib/plaid/models/processor_balance_get_request_options.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/processor_balance_get_response.rb b/lib/plaid/models/processor_balance_get_response.rb index 06bfd24ea..3b71a8ef3 100644 --- a/lib/plaid/models/processor_balance_get_response.rb +++ b/lib/plaid/models/processor_balance_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/processor_bank_transfer_create_request.rb b/lib/plaid/models/processor_bank_transfer_create_request.rb index a325a4531..94e855fb4 100644 --- a/lib/plaid/models/processor_bank_transfer_create_request.rb +++ b/lib/plaid/models/processor_bank_transfer_create_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/processor_bank_transfer_create_response.rb b/lib/plaid/models/processor_bank_transfer_create_response.rb index d506223d0..a2062f12d 100644 --- a/lib/plaid/models/processor_bank_transfer_create_response.rb +++ b/lib/plaid/models/processor_bank_transfer_create_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/processor_identity_get_request.rb b/lib/plaid/models/processor_identity_get_request.rb index 347ea455f..9a7b5002f 100644 --- a/lib/plaid/models/processor_identity_get_request.rb +++ b/lib/plaid/models/processor_identity_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/processor_identity_get_response.rb b/lib/plaid/models/processor_identity_get_response.rb index d3e7975a7..5dfd94c8f 100644 --- a/lib/plaid/models/processor_identity_get_response.rb +++ b/lib/plaid/models/processor_identity_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/processor_number.rb b/lib/plaid/models/processor_number.rb index 832aa412a..3edc118ee 100644 --- a/lib/plaid/models/processor_number.rb +++ b/lib/plaid/models/processor_number.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 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 f13ef9b36..5bf70f535 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,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 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 d75e92248..15985abc6 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,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/processor_token_create_request.rb b/lib/plaid/models/processor_token_create_request.rb index 2f09e6eeb..ccc8b21af 100644 --- a/lib/plaid/models/processor_token_create_request.rb +++ b/lib/plaid/models/processor_token_create_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -147,7 +147,7 @@ def valid? return false if @access_token.nil? return false if @account_id.nil? return false if @processor.nil? - processor_validator = EnumAttributeValidator.new('String', ["dwolla", "galileo", "modern_treasury", "ocrolus", "prime_trust", "vesta", "drivewealth", "vopay", "achq", "check", "checkbook", "circle", "sila_money", "rize", "svb_api", "unit", "wyre", "lithic", "alpaca", "astra", "moov", "treasury_prime", "marqeta", "checkout", "solid", "highnote", "apex_clearing", "gusto", "adyen"]) + processor_validator = EnumAttributeValidator.new('String', ["dwolla", "galileo", "modern_treasury", "ocrolus", "prime_trust", "vesta", "drivewealth", "vopay", "achq", "check", "checkbook", "circle", "sila_money", "rize", "svb_api", "unit", "wyre", "lithic", "alpaca", "astra", "moov", "treasury_prime", "marqeta", "checkout", "solid", "highnote", "apex_clearing", "gusto", "adyen", "atomic", "i2c"]) return false unless processor_validator.valid?(@processor) true end @@ -155,7 +155,7 @@ def valid? # Custom attribute writer method checking allowed values (enum). # @param [Object] processor Object to be assigned def processor=(processor) - validator = EnumAttributeValidator.new('String', ["dwolla", "galileo", "modern_treasury", "ocrolus", "prime_trust", "vesta", "drivewealth", "vopay", "achq", "check", "checkbook", "circle", "sila_money", "rize", "svb_api", "unit", "wyre", "lithic", "alpaca", "astra", "moov", "treasury_prime", "marqeta", "checkout", "solid", "highnote", "apex_clearing", "gusto", "adyen"]) + validator = EnumAttributeValidator.new('String', ["dwolla", "galileo", "modern_treasury", "ocrolus", "prime_trust", "vesta", "drivewealth", "vopay", "achq", "check", "checkbook", "circle", "sila_money", "rize", "svb_api", "unit", "wyre", "lithic", "alpaca", "astra", "moov", "treasury_prime", "marqeta", "checkout", "solid", "highnote", "apex_clearing", "gusto", "adyen", "atomic", "i2c"]) 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 63d0d0b38..b8874fc73 100644 --- a/lib/plaid/models/processor_token_create_response.rb +++ b/lib/plaid/models/processor_token_create_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/product_access.rb b/lib/plaid/models/product_access.rb index b28b95139..24cc610a9 100644 --- a/lib/plaid/models/product_access.rb +++ b/lib/plaid/models/product_access.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/product_status.rb b/lib/plaid/models/product_status.rb index 8a27c631d..1d1acc9fc 100644 --- a/lib/plaid/models/product_status.rb +++ b/lib/plaid/models/product_status.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/product_status_breakdown.rb b/lib/plaid/models/product_status_breakdown.rb index e9f61c302..c2d9540f7 100644 --- a/lib/plaid/models/product_status_breakdown.rb +++ b/lib/plaid/models/product_status_breakdown.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/products.rb b/lib/plaid/models/products.rb index 8884d7608..f3df2b4b5 100644 --- a/lib/plaid/models/products.rb +++ b/lib/plaid/models/products.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/program_name_sensitivity.rb b/lib/plaid/models/program_name_sensitivity.rb index 3365dfa51..dc8255fc7 100644 --- a/lib/plaid/models/program_name_sensitivity.rb +++ b/lib/plaid/models/program_name_sensitivity.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/projected_income_summary_field_number.rb b/lib/plaid/models/projected_income_summary_field_number.rb index e279c8693..d37d41498 100644 --- a/lib/plaid/models/projected_income_summary_field_number.rb +++ b/lib/plaid/models/projected_income_summary_field_number.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/pslf_status.rb b/lib/plaid/models/pslf_status.rb index fb8898488..bad52c6d5 100644 --- a/lib/plaid/models/pslf_status.rb +++ b/lib/plaid/models/pslf_status.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/recaptcha_required_error.rb b/lib/plaid/models/recaptcha_required_error.rb index f7cf7e896..def70eb4f 100644 --- a/lib/plaid/models/recaptcha_required_error.rb +++ b/lib/plaid/models/recaptcha_required_error.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/recipient_bacs.rb b/lib/plaid/models/recipient_bacs.rb index ba5ce4906..24d88a176 100644 --- a/lib/plaid/models/recipient_bacs.rb +++ b/lib/plaid/models/recipient_bacs.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/recipient_bacs_nullable.rb b/lib/plaid/models/recipient_bacs_nullable.rb index 5662a0359..7fd47fc8d 100644 --- a/lib/plaid/models/recipient_bacs_nullable.rb +++ b/lib/plaid/models/recipient_bacs_nullable.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/recurring_transaction_frequency.rb b/lib/plaid/models/recurring_transaction_frequency.rb index da86d4875..0f7a3dc19 100644 --- a/lib/plaid/models/recurring_transaction_frequency.rb +++ b/lib/plaid/models/recurring_transaction_frequency.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/recurring_transactions_update_webhook.rb b/lib/plaid/models/recurring_transactions_update_webhook.rb index d8909bf58..45983c154 100644 --- a/lib/plaid/models/recurring_transactions_update_webhook.rb +++ b/lib/plaid/models/recurring_transactions_update_webhook.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/recurring_transfer.rb b/lib/plaid/models/recurring_transfer.rb new file mode 100644 index 000000000..709e9b261 --- /dev/null +++ b/lib/plaid/models/recurring_transfer.rb @@ -0,0 +1,431 @@ +=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.205.3 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # Represents a transfer within the Transfers API. + class RecurringTransfer + # Plaid’s unique identifier for a recurring transfer. + attr_accessor :recurring_transfer_id + + # The datetime when this transfer was created. This will be of the form `2006-01-02T15:04:05Z` + attr_accessor :created + + # A date in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format (YYYY-MM-DD). The next transfer origination date after bank holiday adjustment. + attr_accessor :next_origination_date + + # Plaid’s unique identifier for a test clock. + attr_accessor :test_clock_id + + attr_accessor :type + + # The amount of the transfer (decimal string with two digits of precision e.g. \"10.00\"). + attr_accessor :amount + + attr_accessor :status + + attr_accessor :ach_class + + attr_accessor :network + + # Plaid’s unique identifier for the origination account that was used for this transfer. + attr_accessor :origination_account_id + + # The account ID that should be credited/debited for this transfer. + attr_accessor :account_id + + # The currency of the transfer amount, e.g. \"USD\" + attr_accessor :iso_currency_code + + attr_accessor :transfer_ids + + attr_accessor :decision + + attr_accessor :decision_rationale + + attr_accessor :user + + attr_accessor :schedule + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'recurring_transfer_id' => :'recurring_transfer_id', + :'created' => :'created', + :'next_origination_date' => :'next_origination_date', + :'test_clock_id' => :'test_clock_id', + :'type' => :'type', + :'amount' => :'amount', + :'status' => :'status', + :'ach_class' => :'ach_class', + :'network' => :'network', + :'origination_account_id' => :'origination_account_id', + :'account_id' => :'account_id', + :'iso_currency_code' => :'iso_currency_code', + :'transfer_ids' => :'transfer_ids', + :'decision' => :'decision', + :'decision_rationale' => :'decision_rationale', + :'user' => :'user', + :'schedule' => :'schedule' + } + 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 + { + :'recurring_transfer_id' => :'String', + :'created' => :'Time', + :'next_origination_date' => :'Date', + :'test_clock_id' => :'String', + :'type' => :'TransferType', + :'amount' => :'String', + :'status' => :'TransferRecurringStatus', + :'ach_class' => :'ACHClass', + :'network' => :'TransferNetwork', + :'origination_account_id' => :'String', + :'account_id' => :'String', + :'iso_currency_code' => :'String', + :'transfer_ids' => :'Array', + :'decision' => :'TransferAuthorizationDecision', + :'decision_rationale' => :'TransferAuthorizationDecisionRationale', + :'user' => :'TransferUserInResponse', + :'schedule' => :'TransferRecurringSchedule' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'test_clock_id', + :'status', + :'decision_rationale', + ]) + 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::RecurringTransfer` 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::RecurringTransfer`. 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?(:'recurring_transfer_id') + self.recurring_transfer_id = attributes[:'recurring_transfer_id'] + end + + if attributes.key?(:'created') + self.created = attributes[:'created'] + end + + if attributes.key?(:'next_origination_date') + self.next_origination_date = attributes[:'next_origination_date'] + end + + if attributes.key?(:'test_clock_id') + self.test_clock_id = attributes[:'test_clock_id'] + end + + if attributes.key?(:'type') + self.type = attributes[:'type'] + end + + if attributes.key?(:'amount') + self.amount = attributes[:'amount'] + end + + if attributes.key?(:'status') + self.status = attributes[:'status'] + end + + if attributes.key?(:'ach_class') + self.ach_class = attributes[:'ach_class'] + end + + if attributes.key?(:'network') + self.network = attributes[:'network'] + end + + if attributes.key?(:'origination_account_id') + self.origination_account_id = attributes[:'origination_account_id'] + end + + if attributes.key?(:'account_id') + self.account_id = attributes[:'account_id'] + end + + if attributes.key?(:'iso_currency_code') + self.iso_currency_code = attributes[:'iso_currency_code'] + end + + if attributes.key?(:'transfer_ids') + if (value = attributes[:'transfer_ids']).is_a?(Array) + self.transfer_ids = value + end + end + + if attributes.key?(:'decision') + self.decision = attributes[:'decision'] + end + + if attributes.key?(:'decision_rationale') + self.decision_rationale = attributes[:'decision_rationale'] + end + + if attributes.key?(:'user') + self.user = attributes[:'user'] + end + + if attributes.key?(:'schedule') + self.schedule = attributes[:'schedule'] + 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 @recurring_transfer_id.nil? + invalid_properties.push('invalid value for "recurring_transfer_id", recurring_transfer_id cannot be nil.') + end + + if @created.nil? + invalid_properties.push('invalid value for "created", created cannot be nil.') + end + + if @next_origination_date.nil? + invalid_properties.push('invalid value for "next_origination_date", next_origination_date cannot be nil.') + end + + if @type.nil? + invalid_properties.push('invalid value for "type", type cannot be nil.') + end + + if @amount.nil? + invalid_properties.push('invalid value for "amount", amount cannot be nil.') + end + + if @network.nil? + invalid_properties.push('invalid value for "network", network cannot be nil.') + end + + if @origination_account_id.nil? + invalid_properties.push('invalid value for "origination_account_id", origination_account_id cannot be nil.') + end + + if @account_id.nil? + invalid_properties.push('invalid value for "account_id", account_id cannot be nil.') + end + + if @iso_currency_code.nil? + invalid_properties.push('invalid value for "iso_currency_code", iso_currency_code cannot be nil.') + end + + if @user.nil? + invalid_properties.push('invalid value for "user", user cannot be nil.') + end + + if @schedule.nil? + invalid_properties.push('invalid value for "schedule", schedule 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 @recurring_transfer_id.nil? + return false if @created.nil? + return false if @next_origination_date.nil? + return false if @type.nil? + return false if @amount.nil? + return false if @network.nil? + return false if @origination_account_id.nil? + return false if @account_id.nil? + return false if @iso_currency_code.nil? + return false if @user.nil? + return false if @schedule.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 && + recurring_transfer_id == o.recurring_transfer_id && + created == o.created && + next_origination_date == o.next_origination_date && + test_clock_id == o.test_clock_id && + type == o.type && + amount == o.amount && + status == o.status && + ach_class == o.ach_class && + network == o.network && + origination_account_id == o.origination_account_id && + account_id == o.account_id && + iso_currency_code == o.iso_currency_code && + transfer_ids == o.transfer_ids && + decision == o.decision && + decision_rationale == o.decision_rationale && + user == o.user && + schedule == o.schedule + 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 + [recurring_transfer_id, created, next_origination_date, test_clock_id, type, amount, status, ach_class, network, origination_account_id, account_id, iso_currency_code, transfer_ids, decision, decision_rationale, user, schedule].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/removed_transaction.rb b/lib/plaid/models/removed_transaction.rb index a4bff6f74..a0e419116 100644 --- a/lib/plaid/models/removed_transaction.rb +++ b/lib/plaid/models/removed_transaction.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/report_type.rb b/lib/plaid/models/report_type.rb index 1d1bdc847..48117235b 100644 --- a/lib/plaid/models/report_type.rb +++ b/lib/plaid/models/report_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/reporting_information.rb b/lib/plaid/models/reporting_information.rb index 72aec1c4a..6be12b030 100644 --- a/lib/plaid/models/reporting_information.rb +++ b/lib/plaid/models/reporting_information.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/risk_signal_document_reference.rb b/lib/plaid/models/risk_signal_document_reference.rb index da5ff06b1..e83567612 100644 --- a/lib/plaid/models/risk_signal_document_reference.rb +++ b/lib/plaid/models/risk_signal_document_reference.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/role.rb b/lib/plaid/models/role.rb index d84417fc5..04397583e 100644 --- a/lib/plaid/models/role.rb +++ b/lib/plaid/models/role.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/role_detail.rb b/lib/plaid/models/role_detail.rb index ec803fad1..98e52c165 100644 --- a/lib/plaid/models/role_detail.rb +++ b/lib/plaid/models/role_detail.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/roles.rb b/lib/plaid/models/roles.rb index 5cb969f7e..d797f7ab1 100644 --- a/lib/plaid/models/roles.rb +++ b/lib/plaid/models/roles.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 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 0545e43b6..89614d4e2 100644 --- a/lib/plaid/models/sandbox_bank_transfer_fire_webhook_request.rb +++ b/lib/plaid/models/sandbox_bank_transfer_fire_webhook_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 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 b4c539978..e35f8bb2c 100644 --- a/lib/plaid/models/sandbox_bank_transfer_fire_webhook_response.rb +++ b/lib/plaid/models/sandbox_bank_transfer_fire_webhook_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/sandbox_bank_transfer_simulate_request.rb b/lib/plaid/models/sandbox_bank_transfer_simulate_request.rb index 17194dc3b..c278052c9 100644 --- a/lib/plaid/models/sandbox_bank_transfer_simulate_request.rb +++ b/lib/plaid/models/sandbox_bank_transfer_simulate_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/sandbox_bank_transfer_simulate_response.rb b/lib/plaid/models/sandbox_bank_transfer_simulate_response.rb index 123e1642c..d753c45d2 100644 --- a/lib/plaid/models/sandbox_bank_transfer_simulate_response.rb +++ b/lib/plaid/models/sandbox_bank_transfer_simulate_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/sandbox_income_fire_webhook_request.rb b/lib/plaid/models/sandbox_income_fire_webhook_request.rb index 79d431b79..adb790f76 100644 --- a/lib/plaid/models/sandbox_income_fire_webhook_request.rb +++ b/lib/plaid/models/sandbox_income_fire_webhook_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/sandbox_income_fire_webhook_response.rb b/lib/plaid/models/sandbox_income_fire_webhook_response.rb index 193519f67..a644a98c2 100644 --- a/lib/plaid/models/sandbox_income_fire_webhook_response.rb +++ b/lib/plaid/models/sandbox_income_fire_webhook_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/sandbox_item_fire_webhook_request.rb b/lib/plaid/models/sandbox_item_fire_webhook_request.rb index 368578ac7..6f09fa26f 100644 --- a/lib/plaid/models/sandbox_item_fire_webhook_request.rb +++ b/lib/plaid/models/sandbox_item_fire_webhook_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -141,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", "AUTH_DATA_UPDATE", "RECURRING_TRANSACTIONS_UPDATE"]) + webhook_code_validator = EnumAttributeValidator.new('String', ["DEFAULT_UPDATE", "NEW_ACCOUNTS_AVAILABLE", "AUTH_DATA_UPDATE", "RECURRING_TRANSACTIONS_UPDATE", "SYNC_UPDATES_AVAILABLE"]) return false unless webhook_code_validator.valid?(@webhook_code) true end @@ -149,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", "AUTH_DATA_UPDATE", "RECURRING_TRANSACTIONS_UPDATE"]) + validator = EnumAttributeValidator.new('String', ["DEFAULT_UPDATE", "NEW_ACCOUNTS_AVAILABLE", "AUTH_DATA_UPDATE", "RECURRING_TRANSACTIONS_UPDATE", "SYNC_UPDATES_AVAILABLE"]) unless validator.valid?(webhook_code) fail ArgumentError, "invalid value for \"webhook_code\", must be one of #{validator.allowable_values}." end diff --git a/lib/plaid/models/sandbox_item_fire_webhook_response.rb b/lib/plaid/models/sandbox_item_fire_webhook_response.rb index e1878aebe..8fa02ef8a 100644 --- a/lib/plaid/models/sandbox_item_fire_webhook_response.rb +++ b/lib/plaid/models/sandbox_item_fire_webhook_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/sandbox_item_reset_login_request.rb b/lib/plaid/models/sandbox_item_reset_login_request.rb index 844fb7374..72edddac7 100644 --- a/lib/plaid/models/sandbox_item_reset_login_request.rb +++ b/lib/plaid/models/sandbox_item_reset_login_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/sandbox_item_reset_login_response.rb b/lib/plaid/models/sandbox_item_reset_login_response.rb index d1f430658..393fe84e6 100644 --- a/lib/plaid/models/sandbox_item_reset_login_response.rb +++ b/lib/plaid/models/sandbox_item_reset_login_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 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 8c89b7fea..3312d8735 100644 --- a/lib/plaid/models/sandbox_item_set_verification_status_request.rb +++ b/lib/plaid/models/sandbox_item_set_verification_status_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 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 24fc9e9f0..11d088458 100644 --- a/lib/plaid/models/sandbox_item_set_verification_status_response.rb +++ b/lib/plaid/models/sandbox_item_set_verification_status_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/sandbox_oauth_select_accounts_request.rb b/lib/plaid/models/sandbox_oauth_select_accounts_request.rb index acfa3d4b4..9b04e5d17 100644 --- a/lib/plaid/models/sandbox_oauth_select_accounts_request.rb +++ b/lib/plaid/models/sandbox_oauth_select_accounts_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/sandbox_payment_profile_reset_login_request.rb b/lib/plaid/models/sandbox_payment_profile_reset_login_request.rb index b373b063e..acb0c0f5f 100644 --- a/lib/plaid/models/sandbox_payment_profile_reset_login_request.rb +++ b/lib/plaid/models/sandbox_payment_profile_reset_login_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/sandbox_payment_profile_reset_login_response.rb b/lib/plaid/models/sandbox_payment_profile_reset_login_response.rb index 216ad0408..f6e62a957 100644 --- a/lib/plaid/models/sandbox_payment_profile_reset_login_response.rb +++ b/lib/plaid/models/sandbox_payment_profile_reset_login_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/sandbox_processor_token_create_request.rb b/lib/plaid/models/sandbox_processor_token_create_request.rb index 5b6d6aa87..823bdb1bd 100644 --- a/lib/plaid/models/sandbox_processor_token_create_request.rb +++ b/lib/plaid/models/sandbox_processor_token_create_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 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 8f9dd74cc..a93929ea9 100644 --- a/lib/plaid/models/sandbox_processor_token_create_request_options.rb +++ b/lib/plaid/models/sandbox_processor_token_create_request_options.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/sandbox_processor_token_create_response.rb b/lib/plaid/models/sandbox_processor_token_create_response.rb index bd527e653..3c6a92e0b 100644 --- a/lib/plaid/models/sandbox_processor_token_create_response.rb +++ b/lib/plaid/models/sandbox_processor_token_create_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/sandbox_public_token_create_request.rb b/lib/plaid/models/sandbox_public_token_create_request.rb index 5e4437a09..5e9ae3389 100644 --- a/lib/plaid/models/sandbox_public_token_create_request.rb +++ b/lib/plaid/models/sandbox_public_token_create_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/sandbox_public_token_create_request_income_verification_bank_income.rb b/lib/plaid/models/sandbox_public_token_create_request_income_verification_bank_income.rb index dfdfd2391..0da952e13 100644 --- a/lib/plaid/models/sandbox_public_token_create_request_income_verification_bank_income.rb +++ b/lib/plaid/models/sandbox_public_token_create_request_income_verification_bank_income.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 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 1b1ba19a0..d6c38e109 100644 --- a/lib/plaid/models/sandbox_public_token_create_request_options.rb +++ b/lib/plaid/models/sandbox_public_token_create_request_options.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/sandbox_public_token_create_request_options_income_verification.rb b/lib/plaid/models/sandbox_public_token_create_request_options_income_verification.rb index f5a37ba16..31d364538 100644 --- a/lib/plaid/models/sandbox_public_token_create_request_options_income_verification.rb +++ b/lib/plaid/models/sandbox_public_token_create_request_options_income_verification.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 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 b9eab3f05..b2c8aed67 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,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/sandbox_public_token_create_response.rb b/lib/plaid/models/sandbox_public_token_create_response.rb index ec3e251cf..746579d7f 100644 --- a/lib/plaid/models/sandbox_public_token_create_response.rb +++ b/lib/plaid/models/sandbox_public_token_create_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/sandbox_transfer_fire_webhook_request.rb b/lib/plaid/models/sandbox_transfer_fire_webhook_request.rb index 325953f30..d107f6b1b 100644 --- a/lib/plaid/models/sandbox_transfer_fire_webhook_request.rb +++ b/lib/plaid/models/sandbox_transfer_fire_webhook_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/sandbox_transfer_fire_webhook_response.rb b/lib/plaid/models/sandbox_transfer_fire_webhook_response.rb index fc79ee1bd..95759a984 100644 --- a/lib/plaid/models/sandbox_transfer_fire_webhook_response.rb +++ b/lib/plaid/models/sandbox_transfer_fire_webhook_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/sandbox_transfer_repayment_simulate_request.rb b/lib/plaid/models/sandbox_transfer_repayment_simulate_request.rb index 716d58963..216a6d994 100644 --- a/lib/plaid/models/sandbox_transfer_repayment_simulate_request.rb +++ b/lib/plaid/models/sandbox_transfer_repayment_simulate_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/sandbox_transfer_repayment_simulate_response.rb b/lib/plaid/models/sandbox_transfer_repayment_simulate_response.rb index 46fe4b291..b8397eb11 100644 --- a/lib/plaid/models/sandbox_transfer_repayment_simulate_response.rb +++ b/lib/plaid/models/sandbox_transfer_repayment_simulate_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/sandbox_transfer_simulate_request.rb b/lib/plaid/models/sandbox_transfer_simulate_request.rb index 3e8a4dccb..60043e059 100644 --- a/lib/plaid/models/sandbox_transfer_simulate_request.rb +++ b/lib/plaid/models/sandbox_transfer_simulate_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/sandbox_transfer_simulate_response.rb b/lib/plaid/models/sandbox_transfer_simulate_response.rb index 66ab71945..603f91164 100644 --- a/lib/plaid/models/sandbox_transfer_simulate_response.rb +++ b/lib/plaid/models/sandbox_transfer_simulate_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/sandbox_transfer_sweep_simulate_request.rb b/lib/plaid/models/sandbox_transfer_sweep_simulate_request.rb index 271b23386..d419737e8 100644 --- a/lib/plaid/models/sandbox_transfer_sweep_simulate_request.rb +++ b/lib/plaid/models/sandbox_transfer_sweep_simulate_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/sandbox_transfer_sweep_simulate_response.rb b/lib/plaid/models/sandbox_transfer_sweep_simulate_response.rb index a2b28f965..56d8b4476 100644 --- a/lib/plaid/models/sandbox_transfer_sweep_simulate_response.rb +++ b/lib/plaid/models/sandbox_transfer_sweep_simulate_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/sandbox_transfer_test_clock_advance_request.rb b/lib/plaid/models/sandbox_transfer_test_clock_advance_request.rb new file mode 100644 index 000000000..af2b33951 --- /dev/null +++ b/lib/plaid/models/sandbox_transfer_test_clock_advance_request.rb @@ -0,0 +1,266 @@ +=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.205.3 + +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/test_clock/advance` + class SandboxTransferTestClockAdvanceRequest + # 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 + + # Plaid’s unique identifier for a test clock. + attr_accessor :test_clock_id + + # The frozen timestamp on the test clock. This will be of the form `2006-01-02T15:04:05Z`. + attr_accessor :new_frozen_timestamp + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'client_id' => :'client_id', + :'secret' => :'secret', + :'test_clock_id' => :'test_clock_id', + :'new_frozen_timestamp' => :'new_frozen_timestamp' + } + 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', + :'test_clock_id' => :'String', + :'new_frozen_timestamp' => :'Time' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'test_clock_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::SandboxTransferTestClockAdvanceRequest` 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::SandboxTransferTestClockAdvanceRequest`. 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?(:'test_clock_id') + self.test_clock_id = attributes[:'test_clock_id'] + end + + if attributes.key?(:'new_frozen_timestamp') + self.new_frozen_timestamp = attributes[:'new_frozen_timestamp'] + 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 @client_id.nil? + invalid_properties.push('invalid value for "client_id", client_id cannot be nil.') + end + + if @secret.nil? + invalid_properties.push('invalid value for "secret", secret cannot be nil.') + end + + if @new_frozen_timestamp.nil? + invalid_properties.push('invalid value for "new_frozen_timestamp", new_frozen_timestamp 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 @client_id.nil? + return false if @secret.nil? + return false if @new_frozen_timestamp.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 && + test_clock_id == o.test_clock_id && + new_frozen_timestamp == o.new_frozen_timestamp + 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, test_clock_id, new_frozen_timestamp].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_test_clock_advance_response.rb b/lib/plaid/models/sandbox_transfer_test_clock_advance_response.rb new file mode 100644 index 000000000..d351e7d15 --- /dev/null +++ b/lib/plaid/models/sandbox_transfer_test_clock_advance_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.205.3 + +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/test_clock/advance` + class SandboxTransferTestClockAdvanceResponse + # 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::SandboxTransferTestClockAdvanceResponse` 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::SandboxTransferTestClockAdvanceResponse`. 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_test_clock_create_request.rb b/lib/plaid/models/sandbox_transfer_test_clock_create_request.rb new file mode 100644 index 000000000..46d70207c --- /dev/null +++ b/lib/plaid/models/sandbox_transfer_test_clock_create_request.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.205.3 + +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/test_clock/create` + class SandboxTransferTestClockCreateRequest + # 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 frozen timestamp on the test clock. This will be of the form `2006-01-02T15:04:05Z`. + attr_accessor :frozen_timestamp + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'client_id' => :'client_id', + :'secret' => :'secret', + :'frozen_timestamp' => :'frozen_timestamp' + } + 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', + :'frozen_timestamp' => :'Time' + } + 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::SandboxTransferTestClockCreateRequest` 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::SandboxTransferTestClockCreateRequest`. 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?(:'frozen_timestamp') + self.frozen_timestamp = attributes[:'frozen_timestamp'] + 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 @client_id.nil? + invalid_properties.push('invalid value for "client_id", client_id cannot be nil.') + end + + if @secret.nil? + invalid_properties.push('invalid value for "secret", secret cannot be nil.') + end + + if @frozen_timestamp.nil? + invalid_properties.push('invalid value for "frozen_timestamp", frozen_timestamp 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 @client_id.nil? + return false if @secret.nil? + return false if @frozen_timestamp.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 && + frozen_timestamp == o.frozen_timestamp + 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, frozen_timestamp].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/income_verification_refresh_response.rb b/lib/plaid/models/sandbox_transfer_test_clock_create_response.rb similarity index 83% rename from lib/plaid/models/income_verification_refresh_response.rb rename to lib/plaid/models/sandbox_transfer_test_clock_create_response.rb index 941c7d7ac..5d0ffd2e7 100644 --- a/lib/plaid/models/income_verification_refresh_response.rb +++ b/lib/plaid/models/sandbox_transfer_test_clock_create_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -14,18 +14,18 @@ require 'time' module Plaid - # IncomeVerificationRequestResponse defines the response schema for `/income/verification/refresh` - class IncomeVerificationRefreshResponse + # Defines the response schema for `/sandbox/transfer/test_clock/create` + class SandboxTransferTestClockCreateResponse + attr_accessor :test_clock + # 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 :verification_refresh_status - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'request_id' => :'request_id', - :'verification_refresh_status' => :'verification_refresh_status' + :'test_clock' => :'test_clock', + :'request_id' => :'request_id' } end @@ -37,8 +37,8 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types { - :'request_id' => :'String', - :'verification_refresh_status' => :'VerificationRefreshStatus' + :'test_clock' => :'TransferTestClock', + :'request_id' => :'String' } end @@ -52,23 +52,23 @@ 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::IncomeVerificationRefreshResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Plaid::SandboxTransferTestClockCreateResponse` 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::IncomeVerificationRefreshResponse`. 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::SandboxTransferTestClockCreateResponse`. 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'] + if attributes.key?(:'test_clock') + self.test_clock = attributes[:'test_clock'] end - if attributes.key?(:'verification_refresh_status') - self.verification_refresh_status = attributes[:'verification_refresh_status'] + if attributes.key?(:'request_id') + self.request_id = attributes[:'request_id'] end end @@ -76,12 +76,12 @@ def initialize(attributes = {}) # @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.') + if @test_clock.nil? + invalid_properties.push('invalid value for "test_clock", test_clock cannot be nil.') end - if @verification_refresh_status.nil? - invalid_properties.push('invalid value for "verification_refresh_status", verification_refresh_status cannot be nil.') + if @request_id.nil? + invalid_properties.push('invalid value for "request_id", request_id cannot be nil.') end invalid_properties @@ -90,8 +90,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 @test_clock.nil? return false if @request_id.nil? - return false if @verification_refresh_status.nil? true end @@ -100,8 +100,8 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - request_id == o.request_id && - verification_refresh_status == o.verification_refresh_status + test_clock == o.test_clock && + request_id == o.request_id end # @see the `==` method @@ -113,7 +113,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [request_id, verification_refresh_status].hash + [test_clock, request_id].hash end # Builds the object from hash diff --git a/lib/plaid/models/income_verification_refresh_request.rb b/lib/plaid/models/sandbox_transfer_test_clock_get_request.rb similarity index 84% rename from lib/plaid/models/income_verification_refresh_request.rb rename to lib/plaid/models/sandbox_transfer_test_clock_get_request.rb index 56f5d030d..5e0f8f15f 100644 --- a/lib/plaid/models/income_verification_refresh_request.rb +++ b/lib/plaid/models/sandbox_transfer_test_clock_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -14,27 +14,23 @@ require 'time' module Plaid - # IncomeVerificationRefreshRequest defines the request schema for `/income/verification/refresh` - class IncomeVerificationRefreshRequest + # Defines the request schema for `/sandbox/transfer/test_clock/get` + class SandboxTransferTestClockGetRequest # 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 ID of the verification. - attr_accessor :income_verification_id - - # The access token associated with the Item data is being requested for. - attr_accessor :access_token + # Plaid’s unique identifier for a test clock. + attr_accessor :test_clock_id # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'client_id' => :'client_id', :'secret' => :'secret', - :'income_verification_id' => :'income_verification_id', - :'access_token' => :'access_token' + :'test_clock_id' => :'test_clock_id' } end @@ -48,16 +44,14 @@ def self.openapi_types { :'client_id' => :'String', :'secret' => :'String', - :'income_verification_id' => :'String', - :'access_token' => :'String' + :'test_clock_id' => :'String' } end # List of attributes with nullable: true def self.openapi_nullable Set.new([ - :'income_verification_id', - :'access_token' + :'test_clock_id' ]) end @@ -65,13 +59,13 @@ 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::IncomeVerificationRefreshRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Plaid::SandboxTransferTestClockGetRequest` 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::IncomeVerificationRefreshRequest`. 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::SandboxTransferTestClockGetRequest`. 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 } @@ -84,12 +78,8 @@ def initialize(attributes = {}) self.secret = attributes[:'secret'] end - if attributes.key?(:'income_verification_id') - self.income_verification_id = attributes[:'income_verification_id'] - end - - if attributes.key?(:'access_token') - self.access_token = attributes[:'access_token'] + if attributes.key?(:'test_clock_id') + self.test_clock_id = attributes[:'test_clock_id'] end end @@ -97,12 +87,22 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new + if @client_id.nil? + invalid_properties.push('invalid value for "client_id", client_id cannot be nil.') + end + + if @secret.nil? + invalid_properties.push('invalid value for "secret", secret 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 @client_id.nil? + return false if @secret.nil? true end @@ -113,8 +113,7 @@ def ==(o) self.class == o.class && client_id == o.client_id && secret == o.secret && - income_verification_id == o.income_verification_id && - access_token == o.access_token + test_clock_id == o.test_clock_id end # @see the `==` method @@ -126,7 +125,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [client_id, secret, income_verification_id, access_token].hash + [client_id, secret, test_clock_id].hash end # Builds the object from hash diff --git a/lib/plaid/models/sandbox_transfer_test_clock_get_response.rb b/lib/plaid/models/sandbox_transfer_test_clock_get_response.rb new file mode 100644 index 000000000..3c7af1d39 --- /dev/null +++ b/lib/plaid/models/sandbox_transfer_test_clock_get_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.205.3 + +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/test_clock/get` + class SandboxTransferTestClockGetResponse + attr_accessor :test_clock + + # 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 + { + :'test_clock' => :'test_clock', + :'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 + { + :'test_clock' => :'TransferTestClock', + :'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::SandboxTransferTestClockGetResponse` 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::SandboxTransferTestClockGetResponse`. 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?(:'test_clock') + self.test_clock = attributes[:'test_clock'] + 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 @test_clock.nil? + invalid_properties.push('invalid value for "test_clock", test_clock 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 @test_clock.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 && + test_clock == o.test_clock && + 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 + [test_clock, 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/scopes.rb b/lib/plaid/models/scopes.rb index cc8c9ded6..90a2448d7 100644 --- a/lib/plaid/models/scopes.rb +++ b/lib/plaid/models/scopes.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/scopes_context.rb b/lib/plaid/models/scopes_context.rb index 3d8380926..3888ae234 100644 --- a/lib/plaid/models/scopes_context.rb +++ b/lib/plaid/models/scopes_context.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/scopes_nullable.rb b/lib/plaid/models/scopes_nullable.rb index 158645af8..cafc816af 100644 --- a/lib/plaid/models/scopes_nullable.rb +++ b/lib/plaid/models/scopes_nullable.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/screening_hit_analysis.rb b/lib/plaid/models/screening_hit_analysis.rb index c24b09b88..4890b5568 100644 --- a/lib/plaid/models/screening_hit_analysis.rb +++ b/lib/plaid/models/screening_hit_analysis.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/screening_hit_data.rb b/lib/plaid/models/screening_hit_data.rb index 5e1aa0437..05d20f37f 100644 --- a/lib/plaid/models/screening_hit_data.rb +++ b/lib/plaid/models/screening_hit_data.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/screening_hit_date_of_birth_item.rb b/lib/plaid/models/screening_hit_date_of_birth_item.rb index 1322a7318..5317a9f28 100644 --- a/lib/plaid/models/screening_hit_date_of_birth_item.rb +++ b/lib/plaid/models/screening_hit_date_of_birth_item.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/screening_hit_documents_items.rb b/lib/plaid/models/screening_hit_documents_items.rb index d7249e952..2e1c01196 100644 --- a/lib/plaid/models/screening_hit_documents_items.rb +++ b/lib/plaid/models/screening_hit_documents_items.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/screening_hit_names_items.rb b/lib/plaid/models/screening_hit_names_items.rb index 3bc448cc0..ae4b082bb 100644 --- a/lib/plaid/models/screening_hit_names_items.rb +++ b/lib/plaid/models/screening_hit_names_items.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/screening_status_updated_webhook.rb b/lib/plaid/models/screening_status_updated_webhook.rb index f8e2899c2..0f7c3ce9b 100644 --- a/lib/plaid/models/screening_status_updated_webhook.rb +++ b/lib/plaid/models/screening_status_updated_webhook.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/security.rb b/lib/plaid/models/security.rb index 2bd06cc31..c2a237302 100644 --- a/lib/plaid/models/security.rb +++ b/lib/plaid/models/security.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -19,10 +19,10 @@ class Security # A unique, Plaid-specific identifier for the security, used to associate securities with holdings. Like all Plaid identifiers, the `security_id` is case sensitive. The `security_id` may change if inherent details of the security change due to a corporate action, for example, in the event of a ticker symbol change or CUSIP change. attr_accessor :security_id - # 12-character ISIN, a globally unique securities identifier. + # 12-character ISIN, a globally unique securities identifier. Please note that CGS requires Plaid's customers to hold a license directly from them to receive CUSIP & ISIN data. This field will be null by default for new customers. For existing customers, this field will be null by default starting on Sept 15, 2023. If you would like access to this field, please contact your Plaid Account Manager or reach out to investments-vendors@plaid.com. attr_accessor :isin - # 9-character CUSIP, an identifier assigned to North American securities. + # 9-character CUSIP, an identifier assigned to North American securities. Please note that CGS requires Plaid's customers to hold a license directly from them to receive CUSIP & ISIN data. This field will be null by default for new customers. For existing customers, this field will be null by default starting on Sept 15, 2023. If you would like access to this field, please contact your Plaid Account Manager or reach out to investments-vendors@plaid.com. attr_accessor :cusip # 7-character SEDOL, an identifier assigned to securities in the UK. diff --git a/lib/plaid/models/security_override.rb b/lib/plaid/models/security_override.rb index 81716a385..3b9d9a0db 100644 --- a/lib/plaid/models/security_override.rb +++ b/lib/plaid/models/security_override.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -16,10 +16,10 @@ module Plaid # Specify the security associated with the holding or investment transaction. When inputting custom security data to the Sandbox, Plaid will perform post-data-retrieval normalization and enrichment. These processes may cause the data returned by the Sandbox to be slightly different from the data you input. An ISO-4217 currency code and a security identifier (`ticker_symbol`, `cusip`, `isin`, or `sedol`) are required. class SecurityOverride - # 12-character ISIN, a globally unique securities identifier. + # 12-character ISIN, a globally unique securities identifier. Please note that CGS requires Plaid's customers to hold a license directly from them to receive CUSIP & ISIN data. This field will be null by default for new customers. For existing customers, this field will be null by default starting on Sept 15, 2023. If you would like access to this field, please contact your Plaid Account Manager or reach out to investments-vendors@plaid.com. attr_accessor :isin - # 9-character CUSIP, an identifier assigned to North American securities. + # 9-character CUSIP, an identifier assigned to North American securities. Please note that CGS requires Plaid's customers to hold a license directly from them to receive CUSIP & ISIN data. This field will be null by default for new customers. For existing customers, this field will be null by default starting on Sept 15, 2023. If you would like access to this field, please contact your Plaid Account Manager or reach out to investments-vendors@plaid.com. attr_accessor :cusip # 7-character SEDOL, an identifier assigned to securities in the UK. diff --git a/lib/plaid/models/sender_bacs_nullable.rb b/lib/plaid/models/sender_bacs_nullable.rb index 7df5152e8..8477872cf 100644 --- a/lib/plaid/models/sender_bacs_nullable.rb +++ b/lib/plaid/models/sender_bacs_nullable.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/service.rb b/lib/plaid/models/service.rb index 3dc938e29..e7735489c 100644 --- a/lib/plaid/models/service.rb +++ b/lib/plaid/models/service.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/service_product_fulfillment.rb b/lib/plaid/models/service_product_fulfillment.rb index 6528e8ece..302d6a010 100644 --- a/lib/plaid/models/service_product_fulfillment.rb +++ b/lib/plaid/models/service_product_fulfillment.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/service_product_fulfillment_detail.rb b/lib/plaid/models/service_product_fulfillment_detail.rb index 706ff538d..44f6ffd1d 100644 --- a/lib/plaid/models/service_product_fulfillment_detail.rb +++ b/lib/plaid/models/service_product_fulfillment_detail.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/service_product_fulfillment_identifier.rb b/lib/plaid/models/service_product_fulfillment_identifier.rb index d5bf66958..bc872c191 100644 --- a/lib/plaid/models/service_product_fulfillment_identifier.rb +++ b/lib/plaid/models/service_product_fulfillment_identifier.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/servicer_address_data.rb b/lib/plaid/models/servicer_address_data.rb index 246ab5357..a2d0a07d6 100644 --- a/lib/plaid/models/servicer_address_data.rb +++ b/lib/plaid/models/servicer_address_data.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/services.rb b/lib/plaid/models/services.rb index f7f4f7067..81e8bbb20 100644 --- a/lib/plaid/models/services.rb +++ b/lib/plaid/models/services.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/signal_address_data.rb b/lib/plaid/models/signal_address_data.rb index 53020d164..8521d61c6 100644 --- a/lib/plaid/models/signal_address_data.rb +++ b/lib/plaid/models/signal_address_data.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/signal_decision_outcome.rb b/lib/plaid/models/signal_decision_outcome.rb new file mode 100644 index 000000000..6a2c23f3e --- /dev/null +++ b/lib/plaid/models/signal_decision_outcome.rb @@ -0,0 +1,42 @@ +=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.205.3 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + class SignalDecisionOutcome + APPROVE = "APPROVE".freeze + REVIEW = "REVIEW".freeze + REJECT = "REJECT".freeze + TAKE_OTHER_RISK_MEASURES = "TAKE_OTHER_RISK_MEASURES".freeze + NOT_EVALUATED = "NOT_EVALUATED".freeze + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def self.build_from_hash(value) + new.build_from_hash(value) + end + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def build_from_hash(value) + # We do not validate that the value is one of the enums set in the OpenAPI + # file because we want to be able to add to our list of enums without + # breaking this client library. + value + end + end + +end diff --git a/lib/plaid/models/signal_decision_report_request.rb b/lib/plaid/models/signal_decision_report_request.rb index ed1c44fa2..c80115ac5 100644 --- a/lib/plaid/models/signal_decision_report_request.rb +++ b/lib/plaid/models/signal_decision_report_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -25,12 +25,19 @@ class SignalDecisionReportRequest # Must be the same as the `client_transaction_id` supplied when calling `/signal/evaluate` attr_accessor :client_transaction_id - # `true` if the ACH transaction was initiated, `false` otherwise. + # `true` if the ACH transaction was initiated, `false` otherwise. This field must be returned as a boolean. If formatted incorrectly, this will result in an [`INVALID_FIELD`](/docs/errors/invalid-request/#invalid_field) error. attr_accessor :initiated - # The actual number of days (hold time) since the ACH debit transaction that you wait before making funds available to your customers. The holding time could affect the ACH return rate. For example, use 0 if you make funds available to your customers instantly or the same day following the debit transaction, or 1 if you make funds available the next day following the debit initialization. + # The actual number of days (hold time) since the ACH debit transaction that you wait before making funds available to your customers. The holding time could affect the ACH return rate. For example, use 0 if you make funds available to your customers instantly or the same day following the debit transaction, or 1 if you make funds available the next day following the debit initialization. attr_accessor :days_funds_on_hold + attr_accessor :decision_outcome + + attr_accessor :payment_method + + # The amount (in USD) made available to your customers instantly following the debit transaction. It could be a partial amount of the requested transaction (example: 102.05). + attr_accessor :amount_instantly_available + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -38,7 +45,10 @@ def self.attribute_map :'secret' => :'secret', :'client_transaction_id' => :'client_transaction_id', :'initiated' => :'initiated', - :'days_funds_on_hold' => :'days_funds_on_hold' + :'days_funds_on_hold' => :'days_funds_on_hold', + :'decision_outcome' => :'decision_outcome', + :'payment_method' => :'payment_method', + :'amount_instantly_available' => :'amount_instantly_available' } end @@ -54,14 +64,20 @@ def self.openapi_types :'secret' => :'String', :'client_transaction_id' => :'String', :'initiated' => :'Boolean', - :'days_funds_on_hold' => :'Integer' + :'days_funds_on_hold' => :'Integer', + :'decision_outcome' => :'SignalDecisionOutcome', + :'payment_method' => :'SignalPaymentMethod', + :'amount_instantly_available' => :'Float' } end # List of attributes with nullable: true def self.openapi_nullable Set.new([ - :'days_funds_on_hold' + :'days_funds_on_hold', + :'decision_outcome', + :'payment_method', + :'amount_instantly_available' ]) end @@ -99,6 +115,18 @@ def initialize(attributes = {}) if attributes.key?(:'days_funds_on_hold') self.days_funds_on_hold = attributes[:'days_funds_on_hold'] end + + if attributes.key?(:'decision_outcome') + self.decision_outcome = attributes[:'decision_outcome'] + end + + if attributes.key?(:'payment_method') + self.payment_method = attributes[:'payment_method'] + end + + if attributes.key?(:'amount_instantly_available') + self.amount_instantly_available = attributes[:'amount_instantly_available'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -180,7 +208,10 @@ def ==(o) secret == o.secret && client_transaction_id == o.client_transaction_id && initiated == o.initiated && - days_funds_on_hold == o.days_funds_on_hold + days_funds_on_hold == o.days_funds_on_hold && + decision_outcome == o.decision_outcome && + payment_method == o.payment_method && + amount_instantly_available == o.amount_instantly_available end # @see the `==` method @@ -192,7 +223,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [client_id, secret, client_transaction_id, initiated, days_funds_on_hold].hash + [client_id, secret, client_transaction_id, initiated, days_funds_on_hold, decision_outcome, payment_method, amount_instantly_available].hash end # Builds the object from hash diff --git a/lib/plaid/models/signal_decision_report_response.rb b/lib/plaid/models/signal_decision_report_response.rb index 2f360640a..06d77e459 100644 --- a/lib/plaid/models/signal_decision_report_response.rb +++ b/lib/plaid/models/signal_decision_report_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/signal_device.rb b/lib/plaid/models/signal_device.rb index 33201427a..c23d0e9a3 100644 --- a/lib/plaid/models/signal_device.rb +++ b/lib/plaid/models/signal_device.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/signal_evaluate_core_attributes.rb b/lib/plaid/models/signal_evaluate_core_attributes.rb index 604c3b802..b099a9201 100644 --- a/lib/plaid/models/signal_evaluate_core_attributes.rb +++ b/lib/plaid/models/signal_evaluate_core_attributes.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -208,6 +208,9 @@ class SignalEvaluateCoreAttributes # 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 + # Timestamp in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format (YYYY-MM-DDTHH:mm:ssZ) indicating the last time that the transactions for the given account have been updated. + attr_accessor :transactions_last_updated + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -274,7 +277,8 @@ def self.attribute_map :'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' + :'p10_eod_balance_61d_to_90d' => :'p10_eod_balance_61d_to_90d', + :'transactions_last_updated' => :'transactions_last_updated' } end @@ -349,7 +353,8 @@ def self.openapi_types :'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' + :'p10_eod_balance_61d_to_90d' => :'Float', + :'transactions_last_updated' => :'Time' } end @@ -419,7 +424,8 @@ def self.openapi_nullable :'p90_eod_balance_31d_to_60d', :'p90_eod_balance_61d_to_90d', :'p10_eod_balance_31d_to_60d', - :'p10_eod_balance_61d_to_90d' + :'p10_eod_balance_61d_to_90d', + :'transactions_last_updated' ]) end @@ -693,6 +699,10 @@ def initialize(attributes = {}) if attributes.key?(:'p10_eod_balance_61d_to_90d') self.p10_eod_balance_61d_to_90d = attributes[:'p10_eod_balance_61d_to_90d'] end + + if attributes.key?(:'transactions_last_updated') + self.transactions_last_updated = attributes[:'transactions_last_updated'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -776,7 +786,8 @@ def ==(o) 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 + p10_eod_balance_61d_to_90d == o.p10_eod_balance_61d_to_90d && + transactions_last_updated == o.transactions_last_updated end # @see the `==` method @@ -788,7 +799,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, 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 + [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, transactions_last_updated].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 cdfcc2858..60c060466 100644 --- a/lib/plaid/models/signal_evaluate_request.rb +++ b/lib/plaid/models/signal_evaluate_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -25,7 +25,7 @@ class SignalEvaluateRequest # The access token associated with the Item data is being requested for. attr_accessor :access_token - # The `account_id` of the account whose verification status is to be modified + # The Plaid `account_id` of the account whose verification status is to be modified. The `account_id` is returned in the `/accounts/get` endpoint as well as the [`onSuccess`](/docs/link/ios/#link-ios-onsuccess-linkSuccess-metadata-accounts-id) callback metadata. This will return an [`INVALID_ACCOUNT_ID`](/docs/errors/invalid-input/#invalid_account_id) error if the account has been removed at the bank or if the `account_id` is no longer valid. attr_accessor :account_id # The unique ID that you would like to use to refer to this transaction. For your convenience mapping your internal data, you could use your internal ID/identifier for this transaction. The max length for this field is 36 characters. @@ -37,9 +37,15 @@ class SignalEvaluateRequest # `true` if the end user is present while initiating the ACH transfer and the endpoint is being called; `false` otherwise (for example, when the ACH transfer is scheduled and the end user is not present, or you call this endpoint after the ACH transfer but before submitting the Nacha file for ACH processing). attr_accessor :user_present - # A unique ID that identifies the end user in your system. This ID is used to correlate requests by a user with multiple Items. The max length for this field is 36 characters. + # A unique ID that identifies the end user in your system. This ID is used to correlate requests by a user with multiple Items. The max length for this field is 36 characters. Personally identifiable information, such as an email address or phone number, should not be used in the `client_user_id`. attr_accessor :client_user_id + # **true** if the ACH transaction is a recurring transaction; **false** otherwise + attr_accessor :is_recurring + + # The default ACH or non-ACH payment method to complete the transaction. `SAME_DAY_ACH`: Same Day ACH by NACHA. The debit transaction is processed and settled on the same day `NEXT_DAY_ACH`: Next Day ACH settlement for debit transactions, offered by some payment processors `STANDARD_ACH`: standard ACH by NACHA `REAL_TIME_PAYMENTS`: real-time payments such as RTP and FedNow `DEBIT_CARD`: if the default payment is over debit card networks `MULTIPLE_PAYMENT_METHODS`: if there is no default debit rail or there are multiple payment methods Possible values: `SAME_DAY_ACH`, `NEXT_DAY_ACH`, `STANDARD_ACH`, `REAL_TIME_PAYMENTS`, `DEBIT_CARD`, `MULTIPLE_PAYMENT_METHODS` + attr_accessor :default_payment_method + attr_accessor :user attr_accessor :device @@ -55,6 +61,8 @@ def self.attribute_map :'amount' => :'amount', :'user_present' => :'user_present', :'client_user_id' => :'client_user_id', + :'is_recurring' => :'is_recurring', + :'default_payment_method' => :'default_payment_method', :'user' => :'user', :'device' => :'device' } @@ -76,6 +84,8 @@ def self.openapi_types :'amount' => :'Float', :'user_present' => :'Boolean', :'client_user_id' => :'String', + :'is_recurring' => :'Boolean', + :'default_payment_method' => :'String', :'user' => :'SignalUser', :'device' => :'SignalDevice' } @@ -85,6 +95,8 @@ def self.openapi_types def self.openapi_nullable Set.new([ :'user_present', + :'is_recurring', + :'default_payment_method', ]) end @@ -135,6 +147,14 @@ def initialize(attributes = {}) self.client_user_id = attributes[:'client_user_id'] end + if attributes.key?(:'is_recurring') + self.is_recurring = attributes[:'is_recurring'] + end + + if attributes.key?(:'default_payment_method') + self.default_payment_method = attributes[:'default_payment_method'] + end + if attributes.key?(:'user') self.user = attributes[:'user'] end @@ -237,6 +257,8 @@ def ==(o) amount == o.amount && user_present == o.user_present && client_user_id == o.client_user_id && + is_recurring == o.is_recurring && + default_payment_method == o.default_payment_method && user == o.user && device == o.device end @@ -250,7 +272,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [client_id, secret, access_token, account_id, client_transaction_id, amount, user_present, client_user_id, user, device].hash + [client_id, secret, access_token, account_id, client_transaction_id, amount, user_present, client_user_id, is_recurring, default_payment_method, user, device].hash end # Builds the object from hash diff --git a/lib/plaid/models/signal_evaluate_response.rb b/lib/plaid/models/signal_evaluate_response.rb index 55e100cbe..22f035cf2 100644 --- a/lib/plaid/models/signal_evaluate_response.rb +++ b/lib/plaid/models/signal_evaluate_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/signal_payment_method.rb b/lib/plaid/models/signal_payment_method.rb new file mode 100644 index 000000000..92a26c48a --- /dev/null +++ b/lib/plaid/models/signal_payment_method.rb @@ -0,0 +1,43 @@ +=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.205.3 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + class SignalPaymentMethod + SAME_DAY_ACH = "SAME_DAY_ACH".freeze + NEXT_DAY_ACH = "NEXT_DAY_ACH".freeze + STANDARD_ACH = "STANDARD_ACH".freeze + REAL_TIME_PAYMENTS = "REAL_TIME_PAYMENTS".freeze + DEBIT_CARD = "DEBIT_CARD".freeze + MULTIPLE_PAYMENT_METHODS = "MULTIPLE_PAYMENT_METHODS".freeze + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def self.build_from_hash(value) + new.build_from_hash(value) + end + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def build_from_hash(value) + # We do not validate that the value is one of the enums set in the OpenAPI + # file because we want to be able to add to our list of enums without + # breaking this client library. + value + end + end + +end diff --git a/lib/plaid/models/signal_person_name.rb b/lib/plaid/models/signal_person_name.rb index 8f72285df..224714bd8 100644 --- a/lib/plaid/models/signal_person_name.rb +++ b/lib/plaid/models/signal_person_name.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/signal_prepare_request.rb b/lib/plaid/models/signal_prepare_request.rb index 929a2f351..5aa724122 100644 --- a/lib/plaid/models/signal_prepare_request.rb +++ b/lib/plaid/models/signal_prepare_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/signal_prepare_response.rb b/lib/plaid/models/signal_prepare_response.rb index 5f56db6e8..01111b716 100644 --- a/lib/plaid/models/signal_prepare_response.rb +++ b/lib/plaid/models/signal_prepare_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/signal_return_report_request.rb b/lib/plaid/models/signal_return_report_request.rb index b8201eb49..44e7ced9b 100644 --- a/lib/plaid/models/signal_return_report_request.rb +++ b/lib/plaid/models/signal_return_report_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -25,16 +25,20 @@ class SignalReturnReportRequest # Must be the same as the `client_transaction_id` supplied when calling `/signal/evaluate` attr_accessor :client_transaction_id - # Must be a valid ACH return code (e.g. \"R01\") + # Must be a valid ACH return code (e.g. \"R01\") If formatted incorrectly, this will result in an [`INVALID_FIELD`](/docs/errors/invalid-request/#invalid_field) error. attr_accessor :return_code + # Date and time when you receive the returns from your payment processors, in ISO 8601 format (`YYYY-MM-DDTHH:mm:ssZ`). + attr_accessor :returned_at + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'client_id' => :'client_id', :'secret' => :'secret', :'client_transaction_id' => :'client_transaction_id', - :'return_code' => :'return_code' + :'return_code' => :'return_code', + :'returned_at' => :'returned_at' } end @@ -49,13 +53,15 @@ def self.openapi_types :'client_id' => :'String', :'secret' => :'String', :'client_transaction_id' => :'String', - :'return_code' => :'String' + :'return_code' => :'String', + :'returned_at' => :'Time' } end # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'returned_at' ]) end @@ -89,6 +95,10 @@ def initialize(attributes = {}) if attributes.key?(:'return_code') self.return_code = attributes[:'return_code'] end + + if attributes.key?(:'returned_at') + self.returned_at = attributes[:'returned_at'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -152,7 +162,8 @@ def ==(o) client_id == o.client_id && secret == o.secret && client_transaction_id == o.client_transaction_id && - return_code == o.return_code + return_code == o.return_code && + returned_at == o.returned_at end # @see the `==` method @@ -164,7 +175,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [client_id, secret, client_transaction_id, return_code].hash + [client_id, secret, client_transaction_id, return_code, returned_at].hash end # Builds the object from hash diff --git a/lib/plaid/models/signal_return_report_response.rb b/lib/plaid/models/signal_return_report_response.rb index 27b246499..f1692bb33 100644 --- a/lib/plaid/models/signal_return_report_response.rb +++ b/lib/plaid/models/signal_return_report_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/signal_scores.rb b/lib/plaid/models/signal_scores.rb index 45d95eea1..860226788 100644 --- a/lib/plaid/models/signal_scores.rb +++ b/lib/plaid/models/signal_scores.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/signal_user.rb b/lib/plaid/models/signal_user.rb index fa33992c2..92dfc1e15 100644 --- a/lib/plaid/models/signal_user.rb +++ b/lib/plaid/models/signal_user.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/simulated_transfer_sweep.rb b/lib/plaid/models/simulated_transfer_sweep.rb index d2cc33f7a..5101720c4 100644 --- a/lib/plaid/models/simulated_transfer_sweep.rb +++ b/lib/plaid/models/simulated_transfer_sweep.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/single_document_risk_signal.rb b/lib/plaid/models/single_document_risk_signal.rb index 3a68a463c..da440ca90 100644 --- a/lib/plaid/models/single_document_risk_signal.rb +++ b/lib/plaid/models/single_document_risk_signal.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -21,11 +21,14 @@ class SingleDocumentRiskSignal # Array of attributes that indicate whether or not there is fraud risk with a document attr_accessor :risk_signals + attr_accessor :risk_summary + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'document_reference' => :'document_reference', - :'risk_signals' => :'risk_signals' + :'risk_signals' => :'risk_signals', + :'risk_summary' => :'risk_summary' } end @@ -38,7 +41,8 @@ def self.acceptable_attributes def self.openapi_types { :'document_reference' => :'RiskSignalDocumentReference', - :'risk_signals' => :'Array' + :'risk_signals' => :'Array', + :'risk_summary' => :'DocumentRiskSummary' } end @@ -72,6 +76,10 @@ def initialize(attributes = {}) self.risk_signals = value end end + + if attributes.key?(:'risk_summary') + self.risk_summary = attributes[:'risk_summary'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -86,6 +94,10 @@ def list_invalid_properties invalid_properties.push('invalid value for "risk_signals", risk_signals cannot be nil.') end + if @risk_summary.nil? + invalid_properties.push('invalid value for "risk_summary", risk_summary cannot be nil.') + end + invalid_properties end @@ -94,6 +106,7 @@ def list_invalid_properties def valid? return false if @document_reference.nil? return false if @risk_signals.nil? + return false if @risk_summary.nil? true end @@ -103,7 +116,8 @@ def ==(o) return true if self.equal?(o) self.class == o.class && document_reference == o.document_reference && - risk_signals == o.risk_signals + risk_signals == o.risk_signals && + risk_summary == o.risk_summary end # @see the `==` method @@ -115,7 +129,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [document_reference, risk_signals].hash + [document_reference, risk_signals, risk_summary].hash end # Builds the object from hash diff --git a/lib/plaid/models/source.rb b/lib/plaid/models/source.rb index 9e5abf181..d01d9386c 100644 --- a/lib/plaid/models/source.rb +++ b/lib/plaid/models/source.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/standalone_account_type.rb b/lib/plaid/models/standalone_account_type.rb index 2687b1fa0..dc6c9cb7b 100644 --- a/lib/plaid/models/standalone_account_type.rb +++ b/lib/plaid/models/standalone_account_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/standalone_currency_code_list.rb b/lib/plaid/models/standalone_currency_code_list.rb index bb6f9b7e2..048188fc4 100644 --- a/lib/plaid/models/standalone_currency_code_list.rb +++ b/lib/plaid/models/standalone_currency_code_list.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/standalone_investment_transaction_type.rb b/lib/plaid/models/standalone_investment_transaction_type.rb index d79f08eca..7d6b6a81c 100644 --- a/lib/plaid/models/standalone_investment_transaction_type.rb +++ b/lib/plaid/models/standalone_investment_transaction_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/status.rb b/lib/plaid/models/status.rb index 650bb7ec0..86fa783d3 100644 --- a/lib/plaid/models/status.rb +++ b/lib/plaid/models/status.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/statuses.rb b/lib/plaid/models/statuses.rb index e181c9630..b242f4d14 100644 --- a/lib/plaid/models/statuses.rb +++ b/lib/plaid/models/statuses.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/strategy.rb b/lib/plaid/models/strategy.rb index e3556701a..3437945e2 100644 --- a/lib/plaid/models/strategy.rb +++ b/lib/plaid/models/strategy.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/student_loan.rb b/lib/plaid/models/student_loan.rb index 3847ad8db..fc5a7abc8 100644 --- a/lib/plaid/models/student_loan.rb +++ b/lib/plaid/models/student_loan.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -66,7 +66,7 @@ class StudentLoan # The total dollar amount of the accrued interest balance. For Sallie Mae ( `ins_116944`), this amount is included in the current balance of the loan, so this field will return as `null`. attr_accessor :outstanding_interest_amount - # The relevant account number that should be used to reference this loan for payments. In the majority of cases, `payment_reference_number` will match a`ccount_number,` but in some institutions, such as Great Lakes (`ins_116861`), it will be different. + # The relevant account number that should be used to reference this loan for payments. In the majority of cases, `payment_reference_number` will match `account_number,` but in some institutions, such as Great Lakes (`ins_116861`), it will be different. attr_accessor :payment_reference_number attr_accessor :pslf_status diff --git a/lib/plaid/models/student_loan_repayment_model.rb b/lib/plaid/models/student_loan_repayment_model.rb index 6be02a2a5..391adad37 100644 --- a/lib/plaid/models/student_loan_repayment_model.rb +++ b/lib/plaid/models/student_loan_repayment_model.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/student_loan_status.rb b/lib/plaid/models/student_loan_status.rb index 60ebb5059..c48002761 100644 --- a/lib/plaid/models/student_loan_status.rb +++ b/lib/plaid/models/student_loan_status.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/student_repayment_plan.rb b/lib/plaid/models/student_repayment_plan.rb index 939289414..724aef605 100644 --- a/lib/plaid/models/student_repayment_plan.rb +++ b/lib/plaid/models/student_repayment_plan.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/sync_updates_available_webhook.rb b/lib/plaid/models/sync_updates_available_webhook.rb index abba8a9ce..1dc9c0588 100644 --- a/lib/plaid/models/sync_updates_available_webhook.rb +++ b/lib/plaid/models/sync_updates_available_webhook.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -14,7 +14,7 @@ require 'time' module Plaid - # Fired when an Item's transactions change. This can be due to any event resulting in new changes, such as an initial 30-day transactions fetch upon the initialization of an Item with transactions, the backfill of historical transactions that occurs shortly after, or when changes are populated from a regularly-scheduled transactions update job. It is recommended to listen for the `SYNC_UPDATES_AVAILABLE` webhook when using the `/transactions/sync` endpoint. Note that when using `/transactions/sync` the older webhooks `INITIAL_UPDATE`, `HISTORICAL_UPDATE`, `DEFAULT_UPDATE`, and `TRANSACTIONS_REMOVED`, which are intended for use with `/transactions/get`, will also continue to be sent in order to maintain backwards compatibility. It is not necessary to listen for and respond to those webhooks when using `/transactions/sync`. After receipt of this webhook, the new changes can be fetched for the Item from `/transactions/sync`. Note that to receive this webhook for an Item, `/transactions/sync` must have been called at least once on that Item. + # Fired when an Item's transactions change. This can be due to any event resulting in new changes, such as an initial 30-day transactions fetch upon the initialization of an Item with transactions, the backfill of historical transactions that occurs shortly after, or when changes are populated from a regularly-scheduled transactions update job. It is recommended to listen for the `SYNC_UPDATES_AVAILABLE` webhook when using the `/transactions/sync` endpoint. Note that when using `/transactions/sync` the older webhooks `INITIAL_UPDATE`, `HISTORICAL_UPDATE`, `DEFAULT_UPDATE`, and `TRANSACTIONS_REMOVED`, which are intended for use with `/transactions/get`, will also continue to be sent in order to maintain backwards compatibility. It is not necessary to listen for and respond to those webhooks when using `/transactions/sync`. After receipt of this webhook, the new changes can be fetched for the Item from `/transactions/sync`. Note that to receive this webhook for an Item, `/transactions/sync` must have been called at least once on that Item. This means that, unlike the `INITIAL_UPDATE` and `HISTORICAL_UPDATE` webhooks, it will not fire immediately upon Item creation. If `/transactions/sync` is called on an Item that was *not* initialized with Transactions, the webhook will fire twice: once the first 30 days of transactions data has been fetched, and a second time when all available historical transactions data has been fetched. This webhook will typically not fire in the Sandbox environment, due to the lack of dynamic transactions data. To test this webhook in Sandbox, call `/sandbox/item/fire_webhook`. class SyncUpdatesAvailableWebhook # `TRANSACTIONS` attr_accessor :webhook_type diff --git a/lib/plaid/models/taxform.rb b/lib/plaid/models/taxform.rb index e80e850d1..c68961ffe 100644 --- a/lib/plaid/models/taxform.rb +++ b/lib/plaid/models/taxform.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/taxpayer_id.rb b/lib/plaid/models/taxpayer_id.rb index 5a3d9d754..dc9be2437 100644 --- a/lib/plaid/models/taxpayer_id.rb +++ b/lib/plaid/models/taxpayer_id.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/taxpayer_identifier.rb b/lib/plaid/models/taxpayer_identifier.rb index 4a6225e92..fbe8c4bf4 100644 --- a/lib/plaid/models/taxpayer_identifier.rb +++ b/lib/plaid/models/taxpayer_identifier.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/taxpayer_identifier_type.rb b/lib/plaid/models/taxpayer_identifier_type.rb index a776c734b..8a8f3fbb9 100644 --- a/lib/plaid/models/taxpayer_identifier_type.rb +++ b/lib/plaid/models/taxpayer_identifier_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/taxpayer_identifiers.rb b/lib/plaid/models/taxpayer_identifiers.rb index c84e2834e..3c04a07a4 100644 --- a/lib/plaid/models/taxpayer_identifiers.rb +++ b/lib/plaid/models/taxpayer_identifiers.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/total.rb b/lib/plaid/models/total.rb index 23ab78690..c32647be4 100644 --- a/lib/plaid/models/total.rb +++ b/lib/plaid/models/total.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/total_canonical_description.rb b/lib/plaid/models/total_canonical_description.rb index 4c27b33b2..b9fc20d8b 100644 --- a/lib/plaid/models/total_canonical_description.rb +++ b/lib/plaid/models/total_canonical_description.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transaction.rb b/lib/plaid/models/transaction.rb index 3cb68196a..ea473fd4d 100644 --- a/lib/plaid/models/transaction.rb +++ b/lib/plaid/models/transaction.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -71,7 +71,7 @@ class Transaction # The channel used to make a payment. `online:` transactions that took place online. `in store:` transactions that were made at a physical location. `other:` transactions that relate to banks, e.g. fees or deposits. This field replaces the `transaction_type` field. attr_accessor :payment_channel - # The date that the transaction was authorized. Dates are returned in an [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format ( `YYYY-MM-DD` ). The `authorized_date` field uses machine learning to determine a transaction date for transactions where the `date_transacted` is not available. If the `date_transacted` field is present and not `null`, the `authorized_date` field will have the same value as the `date_transacted` field. + # The date that the transaction was authorized. Dates are returned in an [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format ( `YYYY-MM-DD` ). attr_accessor :authorized_date # Date and time when a transaction was authorized in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format ( `YYYY-MM-DDTHH:mm:ssZ` ). This field is returned for select financial institutions and comes as provided by the institution. It may contain default time values (such as 00:00:00). diff --git a/lib/plaid/models/transaction_all_of.rb b/lib/plaid/models/transaction_all_of.rb index 455d0a025..62e108fc3 100644 --- a/lib/plaid/models/transaction_all_of.rb +++ b/lib/plaid/models/transaction_all_of.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -18,7 +18,7 @@ class TransactionAllOf # The channel used to make a payment. `online:` transactions that took place online. `in store:` transactions that were made at a physical location. `other:` transactions that relate to banks, e.g. fees or deposits. This field replaces the `transaction_type` field. attr_accessor :payment_channel - # The date that the transaction was authorized. Dates are returned in an [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format ( `YYYY-MM-DD` ). The `authorized_date` field uses machine learning to determine a transaction date for transactions where the `date_transacted` is not available. If the `date_transacted` field is present and not `null`, the `authorized_date` field will have the same value as the `date_transacted` field. + # The date that the transaction was authorized. Dates are returned in an [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format ( `YYYY-MM-DD` ). attr_accessor :authorized_date # Date and time when a transaction was authorized in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format ( `YYYY-MM-DDTHH:mm:ssZ` ). This field is returned for select financial institutions and comes as provided by the institution. It may contain default time values (such as 00:00:00). diff --git a/lib/plaid/models/transaction_base.rb b/lib/plaid/models/transaction_base.rb index ac48968a9..8e7ea7f76 100644 --- a/lib/plaid/models/transaction_base.rb +++ b/lib/plaid/models/transaction_base.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transaction_code.rb b/lib/plaid/models/transaction_code.rb index 89e585115..1da8ae785 100644 --- a/lib/plaid/models/transaction_code.rb +++ b/lib/plaid/models/transaction_code.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transaction_data.rb b/lib/plaid/models/transaction_data.rb index b5b0ce81a..53cca37ea 100644 --- a/lib/plaid/models/transaction_data.rb +++ b/lib/plaid/models/transaction_data.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transaction_frequency.rb b/lib/plaid/models/transaction_frequency.rb new file mode 100644 index 000000000..4f7424b53 --- /dev/null +++ b/lib/plaid/models/transaction_frequency.rb @@ -0,0 +1,41 @@ +=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.205.3 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + class TransactionFrequency + ONCE_PER_MONTH = "once_per_month".freeze + TWICE_PER_MONTH = "twice_per_month".freeze + FOUR_TIMES_PER_MONTH = "four_times_per_month".freeze + DAILY = "daily".freeze + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def self.build_from_hash(value) + new.build_from_hash(value) + end + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def build_from_hash(value) + # We do not validate that the value is one of the enums set in the OpenAPI + # file because we want to be able to add to our list of enums without + # breaking this client library. + value + end + end + +end diff --git a/lib/plaid/models/transaction_override.rb b/lib/plaid/models/transaction_override.rb index 4f19f1077..4fce8b2f6 100644 --- a/lib/plaid/models/transaction_override.rb +++ b/lib/plaid/models/transaction_override.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transaction_stream.rb b/lib/plaid/models/transaction_stream.rb index 1b4fccd02..0e00900a7 100644 --- a/lib/plaid/models/transaction_stream.rb +++ b/lib/plaid/models/transaction_stream.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transaction_stream_amount.rb b/lib/plaid/models/transaction_stream_amount.rb index ee6d3b674..ef04ce615 100644 --- a/lib/plaid/models/transaction_stream_amount.rb +++ b/lib/plaid/models/transaction_stream_amount.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transaction_stream_status.rb b/lib/plaid/models/transaction_stream_status.rb index 099e94a11..8207e45fc 100644 --- a/lib/plaid/models/transaction_stream_status.rb +++ b/lib/plaid/models/transaction_stream_status.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transactions_category_rule.rb b/lib/plaid/models/transactions_category_rule.rb index 752c5d7c1..47be724e9 100644 --- a/lib/plaid/models/transactions_category_rule.rb +++ b/lib/plaid/models/transactions_category_rule.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transactions_enhance_get_request.rb b/lib/plaid/models/transactions_enhance_get_request.rb index b576c8ebe..183e2e9d9 100644 --- a/lib/plaid/models/transactions_enhance_get_request.rb +++ b/lib/plaid/models/transactions_enhance_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transactions_enhance_get_response.rb b/lib/plaid/models/transactions_enhance_get_response.rb index 9b2f0e254..24a8d2dcc 100644 --- a/lib/plaid/models/transactions_enhance_get_response.rb +++ b/lib/plaid/models/transactions_enhance_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -14,7 +14,7 @@ require 'time' module Plaid - # TransactionsEnhanceGetResponse defines the response schema for `/transactions/enhance`. + # TransactionsEnhanceGetResponse defines the response schema for `/beta/transactions/v1/enhance`. class TransactionsEnhanceGetResponse # An array of enhanced transactions. attr_accessor :enhanced_transactions diff --git a/lib/plaid/models/transactions_enrich_get_request.rb b/lib/plaid/models/transactions_enrich_get_request.rb new file mode 100644 index 000000000..03e77a5af --- /dev/null +++ b/lib/plaid/models/transactions_enrich_get_request.rb @@ -0,0 +1,274 @@ +=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.205.3 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # TransactionsEnrichGetRequest defines the request schema for `/transactions/enrich`. + class TransactionsEnrichGetRequest + # 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 account type for the requested transactions (either `depository` or `credit`). + attr_accessor :account_type + + # An array of transaction objects to be enriched by Plaid. Maximum of 100 transactions per request. + attr_accessor :transactions + + # Include legacy categories in Enrich responses + attr_accessor :include_legacy_categories + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'client_id' => :'client_id', + :'secret' => :'secret', + :'account_type' => :'account_type', + :'transactions' => :'transactions', + :'include_legacy_categories' => :'include_legacy_categories' + } + 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_type' => :'String', + :'transactions' => :'Array', + :'include_legacy_categories' => :'Boolean' + } + 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::TransactionsEnrichGetRequest` 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::TransactionsEnrichGetRequest`. 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_type') + self.account_type = attributes[:'account_type'] + end + + if attributes.key?(:'transactions') + if (value = attributes[:'transactions']).is_a?(Array) + self.transactions = value + end + end + + if attributes.key?(:'include_legacy_categories') + self.include_legacy_categories = attributes[:'include_legacy_categories'] + else + self.include_legacy_categories = false + 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_type.nil? + invalid_properties.push('invalid value for "account_type", account_type cannot be nil.') + end + + if @transactions.nil? + invalid_properties.push('invalid value for "transactions", transactions 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_type.nil? + return false if @transactions.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_type == o.account_type && + transactions == o.transactions && + include_legacy_categories == o.include_legacy_categories + 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_type, transactions, include_legacy_categories].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/transactions_enrich_get_response.rb b/lib/plaid/models/transactions_enrich_get_response.rb new file mode 100644 index 000000000..721e9c507 --- /dev/null +++ b/lib/plaid/models/transactions_enrich_get_response.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.205.3 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # TransactionsEnrichGetResponse defines the response schema for `/transactions/enrich`. + class TransactionsEnrichGetResponse + # A list of enriched transactions. + attr_accessor :enriched_transactions + + # 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 + { + :'enriched_transactions' => :'enriched_transactions', + :'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 + { + :'enriched_transactions' => :'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::TransactionsEnrichGetResponse` 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::TransactionsEnrichGetResponse`. 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?(:'enriched_transactions') + if (value = attributes[:'enriched_transactions']).is_a?(Array) + self.enriched_transactions = 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 @enriched_transactions.nil? + invalid_properties.push('invalid value for "enriched_transactions", enriched_transactions 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 @enriched_transactions.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 && + enriched_transactions == o.enriched_transactions && + 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 + [enriched_transactions, 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/transactions_get_request.rb b/lib/plaid/models/transactions_get_request.rb index 7c7c2de6c..06d4084d8 100644 --- a/lib/plaid/models/transactions_get_request.rb +++ b/lib/plaid/models/transactions_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transactions_get_request_options.rb b/lib/plaid/models/transactions_get_request_options.rb index 792ac4f33..7db338573 100644 --- a/lib/plaid/models/transactions_get_request_options.rb +++ b/lib/plaid/models/transactions_get_request_options.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transactions_get_response.rb b/lib/plaid/models/transactions_get_response.rb index bfd71f8df..babdebf83 100644 --- a/lib/plaid/models/transactions_get_response.rb +++ b/lib/plaid/models/transactions_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transactions_recurring_get_request.rb b/lib/plaid/models/transactions_recurring_get_request.rb index a9d3eb942..729221385 100644 --- a/lib/plaid/models/transactions_recurring_get_request.rb +++ b/lib/plaid/models/transactions_recurring_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transactions_recurring_get_request_options.rb b/lib/plaid/models/transactions_recurring_get_request_options.rb index 28f7ffc5a..1ed89a13c 100644 --- a/lib/plaid/models/transactions_recurring_get_request_options.rb +++ b/lib/plaid/models/transactions_recurring_get_request_options.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transactions_recurring_get_response.rb b/lib/plaid/models/transactions_recurring_get_response.rb index f1b102f4d..b062f617c 100644 --- a/lib/plaid/models/transactions_recurring_get_response.rb +++ b/lib/plaid/models/transactions_recurring_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transactions_refresh_request.rb b/lib/plaid/models/transactions_refresh_request.rb index 60342bbb7..eac6b6477 100644 --- a/lib/plaid/models/transactions_refresh_request.rb +++ b/lib/plaid/models/transactions_refresh_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transactions_refresh_response.rb b/lib/plaid/models/transactions_refresh_response.rb index 4cb8e70a2..9e01da985 100644 --- a/lib/plaid/models/transactions_refresh_response.rb +++ b/lib/plaid/models/transactions_refresh_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transactions_removed_webhook.rb b/lib/plaid/models/transactions_removed_webhook.rb index 14c17e8e3..86c9f0549 100644 --- a/lib/plaid/models/transactions_removed_webhook.rb +++ b/lib/plaid/models/transactions_removed_webhook.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transactions_rule_details.rb b/lib/plaid/models/transactions_rule_details.rb index a09f94764..64aa5b070 100644 --- a/lib/plaid/models/transactions_rule_details.rb +++ b/lib/plaid/models/transactions_rule_details.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transactions_rule_field.rb b/lib/plaid/models/transactions_rule_field.rb index 86e517630..64da9b179 100644 --- a/lib/plaid/models/transactions_rule_field.rb +++ b/lib/plaid/models/transactions_rule_field.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transactions_rule_type.rb b/lib/plaid/models/transactions_rule_type.rb index be0833c52..59f57c918 100644 --- a/lib/plaid/models/transactions_rule_type.rb +++ b/lib/plaid/models/transactions_rule_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transactions_rules_create_request.rb b/lib/plaid/models/transactions_rules_create_request.rb index ea7ba11d1..2434d91e3 100644 --- a/lib/plaid/models/transactions_rules_create_request.rb +++ b/lib/plaid/models/transactions_rules_create_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transactions_rules_create_response.rb b/lib/plaid/models/transactions_rules_create_response.rb index ccf3381e6..2ae7b81e7 100644 --- a/lib/plaid/models/transactions_rules_create_response.rb +++ b/lib/plaid/models/transactions_rules_create_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transactions_rules_list_request.rb b/lib/plaid/models/transactions_rules_list_request.rb index 59c9364a8..ea5e1d43c 100644 --- a/lib/plaid/models/transactions_rules_list_request.rb +++ b/lib/plaid/models/transactions_rules_list_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transactions_rules_list_response.rb b/lib/plaid/models/transactions_rules_list_response.rb index 6a878084c..2fd8b47f2 100644 --- a/lib/plaid/models/transactions_rules_list_response.rb +++ b/lib/plaid/models/transactions_rules_list_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transactions_rules_remove_request.rb b/lib/plaid/models/transactions_rules_remove_request.rb index 26ffcb8bf..32a1442fc 100644 --- a/lib/plaid/models/transactions_rules_remove_request.rb +++ b/lib/plaid/models/transactions_rules_remove_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transactions_rules_remove_response.rb b/lib/plaid/models/transactions_rules_remove_response.rb index c60b63d8b..2f018b839 100644 --- a/lib/plaid/models/transactions_rules_remove_response.rb +++ b/lib/plaid/models/transactions_rules_remove_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transactions_sync_request.rb b/lib/plaid/models/transactions_sync_request.rb index 49cd6b401..e5e514b7b 100644 --- a/lib/plaid/models/transactions_sync_request.rb +++ b/lib/plaid/models/transactions_sync_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transactions_sync_request_options.rb b/lib/plaid/models/transactions_sync_request_options.rb index cdd4f0a41..54962350f 100644 --- a/lib/plaid/models/transactions_sync_request_options.rb +++ b/lib/plaid/models/transactions_sync_request_options.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transactions_sync_response.rb b/lib/plaid/models/transactions_sync_response.rb index c63ffd96a..5a56c5134 100644 --- a/lib/plaid/models/transactions_sync_response.rb +++ b/lib/plaid/models/transactions_sync_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -25,10 +25,10 @@ class TransactionsSyncResponse # Transactions that have been removed from the item since `cursor` ordered by ascending last modified time. attr_accessor :removed - # Cursor used for fetching any future updates after the latest update provided in this response. + # Cursor used for fetching any future updates after the latest update provided in this response. The cursor obtained after all pages have been pulled (indicated by `has_more` being `false`) will be valid for at least 1 year. This cursor should be persisted for later calls. attr_accessor :next_cursor - # Represents if more than requested count of transaction updates exist. If true, the additional updates can be fetched by making an additional request with `cursor` set to `next_cursor`. + # Represents if more than requested count of transaction updates exist. If true, the additional updates can be fetched by making an additional request with `cursor` set to `next_cursor`. If `has_more` is true, it’s important to pull all available pages, to make it less likely for underlying data changes to conflict with pagination. attr_accessor :has_more # A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive. diff --git a/lib/plaid/models/transfer.rb b/lib/plaid/models/transfer.rb index 0f4173dea..7e7af4703 100644 --- a/lib/plaid/models/transfer.rb +++ b/lib/plaid/models/transfer.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -67,6 +67,12 @@ class Transfer # The date 61 business days from settlement date indicating the following ACH returns can no longer happen: R05, R07, R10, R11, R51, R33, R37, R38, R51, R52, R53. This will be of the form YYYY-MM-DD. attr_accessor :unauthorized_return_window + # The Plaid client ID that is the originator of this transfer. Only present if created on behalf of another client as a third-party sender (TPS). + attr_accessor :originator_client_id + + # A list of refunds associated with this transfer. + attr_accessor :refunds + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -89,7 +95,9 @@ def self.attribute_map :'guarantee_decision_rationale' => :'guarantee_decision_rationale', :'iso_currency_code' => :'iso_currency_code', :'standard_return_window' => :'standard_return_window', - :'unauthorized_return_window' => :'unauthorized_return_window' + :'unauthorized_return_window' => :'unauthorized_return_window', + :'originator_client_id' => :'originator_client_id', + :'refunds' => :'refunds' } end @@ -120,7 +128,9 @@ def self.openapi_types :'guarantee_decision_rationale' => :'TransferAuthorizationGuaranteeDecisionRationale', :'iso_currency_code' => :'String', :'standard_return_window' => :'Date', - :'unauthorized_return_window' => :'Date' + :'unauthorized_return_window' => :'Date', + :'originator_client_id' => :'String', + :'refunds' => :'Array' } end @@ -133,7 +143,8 @@ def self.openapi_nullable :'guarantee_decision', :'guarantee_decision_rationale', :'standard_return_window', - :'unauthorized_return_window' + :'unauthorized_return_window', + :'originator_client_id', ]) end @@ -233,6 +244,16 @@ def initialize(attributes = {}) if attributes.key?(:'unauthorized_return_window') self.unauthorized_return_window = attributes[:'unauthorized_return_window'] end + + if attributes.key?(:'originator_client_id') + self.originator_client_id = attributes[:'originator_client_id'] + end + + if attributes.key?(:'refunds') + if (value = attributes[:'refunds']).is_a?(Array) + self.refunds = value + end + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -243,10 +264,6 @@ def list_invalid_properties invalid_properties.push('invalid value for "id", id cannot be nil.') end - if @account_id.nil? - invalid_properties.push('invalid value for "account_id", account_id cannot be nil.') - end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -288,6 +305,10 @@ def list_invalid_properties invalid_properties.push('invalid value for "iso_currency_code", iso_currency_code cannot be nil.') end + if @refunds.nil? + invalid_properties.push('invalid value for "refunds", refunds cannot be nil.') + end + invalid_properties end @@ -295,7 +316,6 @@ def list_invalid_properties # @return true if the model is valid def valid? return false if @id.nil? - return false if @account_id.nil? return false if @type.nil? return false if @user.nil? return false if @amount.nil? @@ -307,6 +327,7 @@ def valid? return false if @metadata.length > 50 return false if @origination_account_id.nil? return false if @iso_currency_code.nil? + return false if @refunds.nil? true end @@ -341,7 +362,9 @@ def ==(o) guarantee_decision_rationale == o.guarantee_decision_rationale && iso_currency_code == o.iso_currency_code && standard_return_window == o.standard_return_window && - unauthorized_return_window == o.unauthorized_return_window + unauthorized_return_window == o.unauthorized_return_window && + originator_client_id == o.originator_client_id && + refunds == o.refunds end # @see the `==` method @@ -353,7 +376,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [id, ach_class, account_id, type, user, amount, description, created, status, sweep_status, network, cancellable, failure_reason, metadata, origination_account_id, guarantee_decision, guarantee_decision_rationale, iso_currency_code, standard_return_window, unauthorized_return_window].hash + [id, ach_class, account_id, type, user, amount, description, created, status, sweep_status, network, cancellable, failure_reason, metadata, origination_account_id, guarantee_decision, guarantee_decision_rationale, iso_currency_code, standard_return_window, unauthorized_return_window, originator_client_id, refunds].hash end # Builds the object from hash diff --git a/lib/plaid/models/transfer_authorization.rb b/lib/plaid/models/transfer_authorization.rb index ee9310e10..0f9e92178 100644 --- a/lib/plaid/models/transfer_authorization.rb +++ b/lib/plaid/models/transfer_authorization.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_authorization_create_request.rb b/lib/plaid/models/transfer_authorization_create_request.rb index 43bb0b4c7..779be49c2 100644 --- a/lib/plaid/models/transfer_authorization_create_request.rb +++ b/lib/plaid/models/transfer_authorization_create_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -62,6 +62,9 @@ class TransferAuthorizationCreateRequest # The unique identifier returned by Plaid's [beacon](https://plaid.com/docs/transfer/guarantee/#using-a-beacon) when it is run on your webpage. Required for Guarantee customers who are not using [Transfer UI](https://plaid.com/docs/transfer/using-transfer-ui/) and have a web checkout experience. attr_accessor :beacon_session_id + # The Plaid client ID that is the originator of this transfer. Only needed if creating transfers on behalf of another client as a third-party sender (TPS). + attr_accessor :originator_client_id + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -81,7 +84,8 @@ def self.attribute_map :'idempotency_key' => :'idempotency_key', :'user_present' => :'user_present', :'with_guarantee' => :'with_guarantee', - :'beacon_session_id' => :'beacon_session_id' + :'beacon_session_id' => :'beacon_session_id', + :'originator_client_id' => :'originator_client_id' } end @@ -109,7 +113,8 @@ def self.openapi_types :'idempotency_key' => :'String', :'user_present' => :'Boolean', :'with_guarantee' => :'Boolean', - :'beacon_session_id' => :'String' + :'beacon_session_id' => :'String', + :'originator_client_id' => :'String' } end @@ -119,7 +124,8 @@ def self.openapi_nullable :'idempotency_key', :'user_present', :'with_guarantee', - :'beacon_session_id' + :'beacon_session_id', + :'originator_client_id' ]) end @@ -207,6 +213,10 @@ def initialize(attributes = {}) if attributes.key?(:'beacon_session_id') self.beacon_session_id = attributes[:'beacon_session_id'] end + + if attributes.key?(:'originator_client_id') + self.originator_client_id = attributes[:'originator_client_id'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -280,7 +290,8 @@ def ==(o) idempotency_key == o.idempotency_key && user_present == o.user_present && with_guarantee == o.with_guarantee && - beacon_session_id == o.beacon_session_id + beacon_session_id == o.beacon_session_id && + originator_client_id == o.originator_client_id end # @see the `==` method @@ -292,7 +303,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [client_id, secret, access_token, account_id, payment_profile_token, type, network, amount, ach_class, user, device, origination_account_id, iso_currency_code, idempotency_key, user_present, with_guarantee, beacon_session_id].hash + [client_id, secret, access_token, account_id, payment_profile_token, type, network, amount, ach_class, user, device, origination_account_id, iso_currency_code, idempotency_key, user_present, with_guarantee, beacon_session_id, originator_client_id].hash end # Builds the object from hash diff --git a/lib/plaid/models/transfer_authorization_create_response.rb b/lib/plaid/models/transfer_authorization_create_response.rb index d2c948f36..5b6dc796f 100644 --- a/lib/plaid/models/transfer_authorization_create_response.rb +++ b/lib/plaid/models/transfer_authorization_create_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_authorization_decision.rb b/lib/plaid/models/transfer_authorization_decision.rb index 4bdfd0745..6b0c25afa 100644 --- a/lib/plaid/models/transfer_authorization_decision.rb +++ b/lib/plaid/models/transfer_authorization_decision.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_authorization_decision_rationale.rb b/lib/plaid/models/transfer_authorization_decision_rationale.rb index ccfd4f84c..7622bb3c5 100644 --- a/lib/plaid/models/transfer_authorization_decision_rationale.rb +++ b/lib/plaid/models/transfer_authorization_decision_rationale.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_authorization_decision_rationale_code.rb b/lib/plaid/models/transfer_authorization_decision_rationale_code.rb index d8be6e133..933a7524a 100644 --- a/lib/plaid/models/transfer_authorization_decision_rationale_code.rb +++ b/lib/plaid/models/transfer_authorization_decision_rationale_code.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_authorization_device.rb b/lib/plaid/models/transfer_authorization_device.rb index d08e1c766..d15322dbc 100644 --- a/lib/plaid/models/transfer_authorization_device.rb +++ b/lib/plaid/models/transfer_authorization_device.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_authorization_guarantee_decision.rb b/lib/plaid/models/transfer_authorization_guarantee_decision.rb index 9cb61d581..494a52587 100644 --- a/lib/plaid/models/transfer_authorization_guarantee_decision.rb +++ b/lib/plaid/models/transfer_authorization_guarantee_decision.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_authorization_guarantee_decision_rationale.rb b/lib/plaid/models/transfer_authorization_guarantee_decision_rationale.rb index 4a40b70ab..5c6bc612b 100644 --- a/lib/plaid/models/transfer_authorization_guarantee_decision_rationale.rb +++ b/lib/plaid/models/transfer_authorization_guarantee_decision_rationale.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 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 425e463a4..060b8cf68 100644 --- a/lib/plaid/models/transfer_authorization_guarantee_decision_rationale_code.rb +++ b/lib/plaid/models/transfer_authorization_guarantee_decision_rationale_code.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_authorization_proposed_transfer.rb b/lib/plaid/models/transfer_authorization_proposed_transfer.rb index 669d248b1..56970ffae 100644 --- a/lib/plaid/models/transfer_authorization_proposed_transfer.rb +++ b/lib/plaid/models/transfer_authorization_proposed_transfer.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -37,6 +37,9 @@ class TransferAuthorizationProposedTransfer # The currency of the transfer amount. The default value is \"USD\". attr_accessor :iso_currency_code + # The Plaid client ID that is the originator of this transfer. Only present if created on behalf of another client as a third-party sender (TPS). + attr_accessor :originator_client_id + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -47,7 +50,8 @@ def self.attribute_map :'amount' => :'amount', :'network' => :'network', :'origination_account_id' => :'origination_account_id', - :'iso_currency_code' => :'iso_currency_code' + :'iso_currency_code' => :'iso_currency_code', + :'originator_client_id' => :'originator_client_id' } end @@ -66,13 +70,15 @@ def self.openapi_types :'amount' => :'String', :'network' => :'String', :'origination_account_id' => :'String', - :'iso_currency_code' => :'String' + :'iso_currency_code' => :'String', + :'originator_client_id' => :'String' } end # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'originator_client_id' ]) end @@ -122,16 +128,16 @@ def initialize(attributes = {}) if attributes.key?(:'iso_currency_code') self.iso_currency_code = attributes[:'iso_currency_code'] end + + if attributes.key?(:'originator_client_id') + self.originator_client_id = attributes[:'originator_client_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 @account_id.nil? - invalid_properties.push('invalid value for "account_id", account_id cannot be nil.') - end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -162,7 +168,6 @@ 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_id.nil? return false if @type.nil? return false if @user.nil? return false if @amount.nil? @@ -184,7 +189,8 @@ def ==(o) amount == o.amount && network == o.network && origination_account_id == o.origination_account_id && - iso_currency_code == o.iso_currency_code + iso_currency_code == o.iso_currency_code && + originator_client_id == o.originator_client_id end # @see the `==` method @@ -196,7 +202,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [ach_class, account_id, type, user, amount, network, origination_account_id, iso_currency_code].hash + [ach_class, account_id, type, user, amount, network, origination_account_id, iso_currency_code, originator_client_id].hash end # Builds the object from hash diff --git a/lib/plaid/models/transfer_authorization_user_in_request.rb b/lib/plaid/models/transfer_authorization_user_in_request.rb index 0e9212667..bc080b6c9 100644 --- a/lib/plaid/models/transfer_authorization_user_in_request.rb +++ b/lib/plaid/models/transfer_authorization_user_in_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_cancel_request.rb b/lib/plaid/models/transfer_cancel_request.rb index 360de0ac3..7106c2176 100644 --- a/lib/plaid/models/transfer_cancel_request.rb +++ b/lib/plaid/models/transfer_cancel_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_cancel_response.rb b/lib/plaid/models/transfer_cancel_response.rb index a620f8e86..508b6f75e 100644 --- a/lib/plaid/models/transfer_cancel_response.rb +++ b/lib/plaid/models/transfer_cancel_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_create_request.rb b/lib/plaid/models/transfer_create_request.rb index 212faf954..9076a947a 100644 --- a/lib/plaid/models/transfer_create_request.rb +++ b/lib/plaid/models/transfer_create_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_create_response.rb b/lib/plaid/models/transfer_create_response.rb index fbe96b27c..e0cfc87c5 100644 --- a/lib/plaid/models/transfer_create_response.rb +++ b/lib/plaid/models/transfer_create_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_device.rb b/lib/plaid/models/transfer_device.rb new file mode 100644 index 000000000..246dc8bbe --- /dev/null +++ b/lib/plaid/models/transfer_device.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.205.3 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # Information about the device being used to initiate the authorization. + class TransferDevice + # The IP address of the device being used to initiate the authorization. + attr_accessor :ip_address + + # The user agent of the device being used to initiate the authorization. + attr_accessor :user_agent + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'ip_address' => :'ip_address', + :'user_agent' => :'user_agent' + } + 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 + { + :'ip_address' => :'String', + :'user_agent' => :'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::TransferDevice` 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::TransferDevice`. 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?(:'ip_address') + self.ip_address = attributes[:'ip_address'] + end + + if attributes.key?(:'user_agent') + self.user_agent = attributes[:'user_agent'] + 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 @ip_address.nil? + invalid_properties.push('invalid value for "ip_address", ip_address cannot be nil.') + end + + if @user_agent.nil? + invalid_properties.push('invalid value for "user_agent", user_agent 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 @ip_address.nil? + return false if @user_agent.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 && + ip_address == o.ip_address && + user_agent == o.user_agent + 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 + [ip_address, user_agent].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_diligence_status.rb b/lib/plaid/models/transfer_diligence_status.rb new file mode 100644 index 000000000..ee6ad7ed5 --- /dev/null +++ b/lib/plaid/models/transfer_diligence_status.rb @@ -0,0 +1,40 @@ +=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.205.3 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + class TransferDiligenceStatus + UNDER_REVIEW = "under_review".freeze + APPROVED = "approved".freeze + DENIED = "denied".freeze + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def self.build_from_hash(value) + new.build_from_hash(value) + end + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def build_from_hash(value) + # We do not validate that the value is one of the enums set in the OpenAPI + # file because we want to be able to add to our list of enums without + # breaking this client library. + value + end + end + +end diff --git a/lib/plaid/models/transfer_event.rb b/lib/plaid/models/transfer_event.rb index f0e490baa..78adc6b93 100644 --- a/lib/plaid/models/transfer_event.rb +++ b/lib/plaid/models/transfer_event.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -46,6 +46,12 @@ class TransferEvent # A signed amount of how much was `swept` or `return_swept` (decimal string with two digits of precision e.g. \"-5.50\"). attr_accessor :sweep_amount + # Plaid’s unique identifier for a refund. A non-null value indicates the event is for the associated refund of the transfer. + attr_accessor :refund_id + + # The Plaid client ID that is the originator of the transfer that this event applies to. Only present if the transfer was created on behalf of another client as a third-party sender (TPS). + attr_accessor :originator_client_id + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -59,7 +65,9 @@ def self.attribute_map :'transfer_amount' => :'transfer_amount', :'failure_reason' => :'failure_reason', :'sweep_id' => :'sweep_id', - :'sweep_amount' => :'sweep_amount' + :'sweep_amount' => :'sweep_amount', + :'refund_id' => :'refund_id', + :'originator_client_id' => :'originator_client_id' } end @@ -81,7 +89,9 @@ def self.openapi_types :'transfer_amount' => :'String', :'failure_reason' => :'TransferFailure', :'sweep_id' => :'String', - :'sweep_amount' => :'String' + :'sweep_amount' => :'String', + :'refund_id' => :'String', + :'originator_client_id' => :'String' } end @@ -91,7 +101,9 @@ def self.openapi_nullable :'origination_account_id', :'failure_reason', :'sweep_id', - :'sweep_amount' + :'sweep_amount', + :'refund_id', + :'originator_client_id' ]) end @@ -153,6 +165,14 @@ def initialize(attributes = {}) if attributes.key?(:'sweep_amount') self.sweep_amount = attributes[:'sweep_amount'] end + + if attributes.key?(:'refund_id') + self.refund_id = attributes[:'refund_id'] + end + + if attributes.key?(:'originator_client_id') + self.originator_client_id = attributes[:'originator_client_id'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -239,7 +259,9 @@ def ==(o) transfer_amount == o.transfer_amount && failure_reason == o.failure_reason && sweep_id == o.sweep_id && - sweep_amount == o.sweep_amount + sweep_amount == o.sweep_amount && + refund_id == o.refund_id && + originator_client_id == o.originator_client_id end # @see the `==` method @@ -251,7 +273,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [event_id, timestamp, event_type, account_id, transfer_id, origination_account_id, transfer_type, transfer_amount, failure_reason, sweep_id, sweep_amount].hash + [event_id, timestamp, event_type, account_id, transfer_id, origination_account_id, transfer_type, transfer_amount, failure_reason, sweep_id, sweep_amount, refund_id, originator_client_id].hash end # Builds the object from hash diff --git a/lib/plaid/models/transfer_event_list_request.rb b/lib/plaid/models/transfer_event_list_request.rb index bdbc49720..54bc34764 100644 --- a/lib/plaid/models/transfer_event_list_request.rb +++ b/lib/plaid/models/transfer_event_list_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -51,6 +51,9 @@ class TransferEventListRequest # The origination account ID to get events for transfers from a specific origination account. attr_accessor :origination_account_id + # Filter transfer events to only those with the specified originator client. + attr_accessor :originator_client_id + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -65,7 +68,8 @@ def self.attribute_map :'sweep_id' => :'sweep_id', :'count' => :'count', :'offset' => :'offset', - :'origination_account_id' => :'origination_account_id' + :'origination_account_id' => :'origination_account_id', + :'originator_client_id' => :'originator_client_id' } end @@ -88,7 +92,8 @@ def self.openapi_types :'sweep_id' => :'String', :'count' => :'Integer', :'offset' => :'Integer', - :'origination_account_id' => :'String' + :'origination_account_id' => :'String', + :'originator_client_id' => :'String' } end @@ -102,7 +107,8 @@ def self.openapi_nullable :'transfer_type', :'count', :'offset', - :'origination_account_id' + :'origination_account_id', + :'originator_client_id' ]) end @@ -174,6 +180,10 @@ def initialize(attributes = {}) if attributes.key?(:'origination_account_id') self.origination_account_id = attributes[:'origination_account_id'] end + + if attributes.key?(:'originator_client_id') + self.originator_client_id = attributes[:'originator_client_id'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -248,7 +258,8 @@ def ==(o) sweep_id == o.sweep_id && count == o.count && offset == o.offset && - origination_account_id == o.origination_account_id + origination_account_id == o.origination_account_id && + originator_client_id == o.originator_client_id end # @see the `==` method @@ -260,7 +271,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [client_id, secret, start_date, end_date, transfer_id, account_id, transfer_type, event_types, sweep_id, count, offset, origination_account_id].hash + [client_id, secret, start_date, end_date, transfer_id, account_id, transfer_type, event_types, sweep_id, count, offset, origination_account_id, originator_client_id].hash end # Builds the object from hash diff --git a/lib/plaid/models/transfer_event_list_response.rb b/lib/plaid/models/transfer_event_list_response.rb index 64f2a68e4..54e6047b6 100644 --- a/lib/plaid/models/transfer_event_list_response.rb +++ b/lib/plaid/models/transfer_event_list_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_event_list_transfer_type.rb b/lib/plaid/models/transfer_event_list_transfer_type.rb index 4d5434478..acd1cb859 100644 --- a/lib/plaid/models/transfer_event_list_transfer_type.rb +++ b/lib/plaid/models/transfer_event_list_transfer_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_event_sync_request.rb b/lib/plaid/models/transfer_event_sync_request.rb index bdbdfd283..b158ddbc0 100644 --- a/lib/plaid/models/transfer_event_sync_request.rb +++ b/lib/plaid/models/transfer_event_sync_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_event_sync_response.rb b/lib/plaid/models/transfer_event_sync_response.rb index 783900038..f9521c92c 100644 --- a/lib/plaid/models/transfer_event_sync_response.rb +++ b/lib/plaid/models/transfer_event_sync_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_event_type.rb b/lib/plaid/models/transfer_event_type.rb index 7563c0cfd..894ebb55d 100644 --- a/lib/plaid/models/transfer_event_type.rb +++ b/lib/plaid/models/transfer_event_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_events_update_webhook.rb b/lib/plaid/models/transfer_events_update_webhook.rb index adb1f5451..109ebd803 100644 --- a/lib/plaid/models/transfer_events_update_webhook.rb +++ b/lib/plaid/models/transfer_events_update_webhook.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_failure.rb b/lib/plaid/models/transfer_failure.rb index 00fd59eef..52ae0d4c7 100644 --- a/lib/plaid/models/transfer_failure.rb +++ b/lib/plaid/models/transfer_failure.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_get_request.rb b/lib/plaid/models/transfer_get_request.rb index 865cfef9f..16c60fe0d 100644 --- a/lib/plaid/models/transfer_get_request.rb +++ b/lib/plaid/models/transfer_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_get_response.rb b/lib/plaid/models/transfer_get_response.rb index 7d47fd101..db3f02034 100644 --- a/lib/plaid/models/transfer_get_response.rb +++ b/lib/plaid/models/transfer_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_intent_authorization_decision.rb b/lib/plaid/models/transfer_intent_authorization_decision.rb index 64ceccf3f..c901167fc 100644 --- a/lib/plaid/models/transfer_intent_authorization_decision.rb +++ b/lib/plaid/models/transfer_intent_authorization_decision.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_intent_create.rb b/lib/plaid/models/transfer_intent_create.rb index b44810f12..fb21c31a8 100644 --- a/lib/plaid/models/transfer_intent_create.rb +++ b/lib/plaid/models/transfer_intent_create.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_intent_create_mode.rb b/lib/plaid/models/transfer_intent_create_mode.rb index da0c8b1e3..7be6d9663 100644 --- a/lib/plaid/models/transfer_intent_create_mode.rb +++ b/lib/plaid/models/transfer_intent_create_mode.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_intent_create_request.rb b/lib/plaid/models/transfer_intent_create_request.rb index 758ec2f24..80c212faa 100644 --- a/lib/plaid/models/transfer_intent_create_request.rb +++ b/lib/plaid/models/transfer_intent_create_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_intent_create_response.rb b/lib/plaid/models/transfer_intent_create_response.rb index ea648d745..99aa884ad 100644 --- a/lib/plaid/models/transfer_intent_create_response.rb +++ b/lib/plaid/models/transfer_intent_create_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_intent_get.rb b/lib/plaid/models/transfer_intent_get.rb index 2f8de5c47..2e19f0dae 100644 --- a/lib/plaid/models/transfer_intent_get.rb +++ b/lib/plaid/models/transfer_intent_get.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_intent_get_failure_reason.rb b/lib/plaid/models/transfer_intent_get_failure_reason.rb index a09eb07cd..903b16de6 100644 --- a/lib/plaid/models/transfer_intent_get_failure_reason.rb +++ b/lib/plaid/models/transfer_intent_get_failure_reason.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_intent_get_request.rb b/lib/plaid/models/transfer_intent_get_request.rb index 9af6d8ddd..122e4137d 100644 --- a/lib/plaid/models/transfer_intent_get_request.rb +++ b/lib/plaid/models/transfer_intent_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_intent_get_response.rb b/lib/plaid/models/transfer_intent_get_response.rb index 4451f174a..b48ffa752 100644 --- a/lib/plaid/models/transfer_intent_get_response.rb +++ b/lib/plaid/models/transfer_intent_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_intent_status.rb b/lib/plaid/models/transfer_intent_status.rb index d3bd61f42..44704f6b1 100644 --- a/lib/plaid/models/transfer_intent_status.rb +++ b/lib/plaid/models/transfer_intent_status.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_list_request.rb b/lib/plaid/models/transfer_list_request.rb index b192a53ec..fec215bc7 100644 --- a/lib/plaid/models/transfer_list_request.rb +++ b/lib/plaid/models/transfer_list_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -37,6 +37,9 @@ class TransferListRequest # Filter transfers to only those originated through the specified origination account. attr_accessor :origination_account_id + # Filter transfers to only those with the specified originator client. + attr_accessor :originator_client_id + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -46,7 +49,8 @@ def self.attribute_map :'end_date' => :'end_date', :'count' => :'count', :'offset' => :'offset', - :'origination_account_id' => :'origination_account_id' + :'origination_account_id' => :'origination_account_id', + :'originator_client_id' => :'originator_client_id' } end @@ -64,7 +68,8 @@ def self.openapi_types :'end_date' => :'Time', :'count' => :'Integer', :'offset' => :'Integer', - :'origination_account_id' => :'String' + :'origination_account_id' => :'String', + :'originator_client_id' => :'String' } end @@ -73,7 +78,8 @@ def self.openapi_nullable Set.new([ :'start_date', :'end_date', - :'origination_account_id' + :'origination_account_id', + :'originator_client_id' ]) end @@ -123,6 +129,10 @@ def initialize(attributes = {}) if attributes.key?(:'origination_account_id') self.origination_account_id = attributes[:'origination_account_id'] end + + if attributes.key?(:'originator_client_id') + self.originator_client_id = attributes[:'originator_client_id'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -192,7 +202,8 @@ def ==(o) end_date == o.end_date && count == o.count && offset == o.offset && - origination_account_id == o.origination_account_id + origination_account_id == o.origination_account_id && + originator_client_id == o.originator_client_id end # @see the `==` method @@ -204,7 +215,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [client_id, secret, start_date, end_date, count, offset, origination_account_id].hash + [client_id, secret, start_date, end_date, count, offset, origination_account_id, originator_client_id].hash end # Builds the object from hash diff --git a/lib/plaid/models/transfer_list_response.rb b/lib/plaid/models/transfer_list_response.rb index c71f42898..ccea0b060 100644 --- a/lib/plaid/models/transfer_list_response.rb +++ b/lib/plaid/models/transfer_list_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_migrate_account_request.rb b/lib/plaid/models/transfer_migrate_account_request.rb index 74e1fd714..1dc50631c 100644 --- a/lib/plaid/models/transfer_migrate_account_request.rb +++ b/lib/plaid/models/transfer_migrate_account_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_migrate_account_response.rb b/lib/plaid/models/transfer_migrate_account_response.rb index 29105464d..22161361d 100644 --- a/lib/plaid/models/transfer_migrate_account_response.rb +++ b/lib/plaid/models/transfer_migrate_account_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_network.rb b/lib/plaid/models/transfer_network.rb index 621b073b6..920f4c436 100644 --- a/lib/plaid/models/transfer_network.rb +++ b/lib/plaid/models/transfer_network.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_originator_create_request.rb b/lib/plaid/models/transfer_originator_create_request.rb new file mode 100644 index 000000000..9fbe88dca --- /dev/null +++ b/lib/plaid/models/transfer_originator_create_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.205.3 + +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/originator/create` + class TransferOriginatorCreateRequest + # 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 company name of the end customer being created. This will be displayed in public-facing surfaces, e.g. Plaid Dashboard. + attr_accessor :company_name + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'client_id' => :'client_id', + :'secret' => :'secret', + :'company_name' => :'company_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 + { + :'client_id' => :'String', + :'secret' => :'String', + :'company_name' => :'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::TransferOriginatorCreateRequest` 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::TransferOriginatorCreateRequest`. 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?(:'company_name') + self.company_name = attributes[:'company_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 @company_name.nil? + invalid_properties.push('invalid value for "company_name", company_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 @company_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 && + client_id == o.client_id && + secret == o.secret && + company_name == o.company_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 + [client_id, secret, company_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/transfer_originator_create_response.rb b/lib/plaid/models/transfer_originator_create_response.rb new file mode 100644 index 000000000..4b740ed3f --- /dev/null +++ b/lib/plaid/models/transfer_originator_create_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.205.3 + +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/originator/create` + class TransferOriginatorCreateResponse + # Client ID of the originator. This identifier will be used when creating transfers and should be stored associated with end user information. + attr_accessor :originator_client_id + + # The company name of the end customer. + attr_accessor :company_name + + # 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 + { + :'originator_client_id' => :'originator_client_id', + :'company_name' => :'company_name', + :'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 + { + :'originator_client_id' => :'String', + :'company_name' => :'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::TransferOriginatorCreateResponse` 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::TransferOriginatorCreateResponse`. 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?(:'originator_client_id') + self.originator_client_id = attributes[:'originator_client_id'] + end + + if attributes.key?(:'company_name') + self.company_name = attributes[:'company_name'] + 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 @originator_client_id.nil? + invalid_properties.push('invalid value for "originator_client_id", originator_client_id cannot be nil.') + end + + if @company_name.nil? + invalid_properties.push('invalid value for "company_name", company_name 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 @originator_client_id.nil? + return false if @company_name.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 && + originator_client_id == o.originator_client_id && + company_name == o.company_name && + 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 + [originator_client_id, company_name, 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_originator_get_request.rb b/lib/plaid/models/transfer_originator_get_request.rb new file mode 100644 index 000000000..a2bf2cec8 --- /dev/null +++ b/lib/plaid/models/transfer_originator_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.205.3 + +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/originator/get` + class TransferOriginatorGetRequest + # 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 + + # Client ID of the end customer (i.e. the originator). + attr_accessor :originator_client_id + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'client_id' => :'client_id', + :'secret' => :'secret', + :'originator_client_id' => :'originator_client_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 + { + :'client_id' => :'String', + :'secret' => :'String', + :'originator_client_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::TransferOriginatorGetRequest` 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::TransferOriginatorGetRequest`. 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?(:'originator_client_id') + self.originator_client_id = attributes[:'originator_client_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 @originator_client_id.nil? + invalid_properties.push('invalid value for "originator_client_id", originator_client_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 @originator_client_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 && + client_id == o.client_id && + secret == o.secret && + originator_client_id == o.originator_client_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 + [client_id, secret, originator_client_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_originator_get_response.rb b/lib/plaid/models/transfer_originator_get_response.rb new file mode 100644 index 000000000..29870dfbb --- /dev/null +++ b/lib/plaid/models/transfer_originator_get_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.205.3 + +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/originator/get` + class TransferOriginatorGetResponse + attr_accessor :originator + + # 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 + { + :'originator' => :'originator', + :'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 + { + :'originator' => :'Originator', + :'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::TransferOriginatorGetResponse` 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::TransferOriginatorGetResponse`. 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?(:'originator') + self.originator = attributes[:'originator'] + 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 @originator.nil? + invalid_properties.push('invalid value for "originator", originator 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 @originator.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 && + originator == o.originator && + 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 + [originator, 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_originator_list_request.rb b/lib/plaid/models/transfer_originator_list_request.rb new file mode 100644 index 000000000..6ebe9dbfe --- /dev/null +++ b/lib/plaid/models/transfer_originator_list_request.rb @@ -0,0 +1,297 @@ +=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.205.3 + +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/originator/list` + class TransferOriginatorListRequest + # 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 maximum number of transfers to return. + attr_accessor :count + + # The number of transfers to skip before returning results. + attr_accessor :offset + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'client_id' => :'client_id', + :'secret' => :'secret', + :'count' => :'count', + :'offset' => :'offset' + } + 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', + :'count' => :'Integer', + :'offset' => :'Integer' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `Plaid::TransferOriginatorListRequest` 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::TransferOriginatorListRequest`. 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?(:'count') + self.count = attributes[:'count'] + else + self.count = 25 + end + + if attributes.key?(:'offset') + self.offset = attributes[:'offset'] + else + self.offset = 0 + 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 !@count.nil? && @count > 25 + invalid_properties.push('invalid value for "count", must be smaller than or equal to 25.') + end + + if !@count.nil? && @count < 1 + invalid_properties.push('invalid value for "count", must be greater than or equal to 1.') + end + + + if !@offset.nil? && @offset < 0 + invalid_properties.push('invalid value for "offset", must be greater than or equal to 0.') + 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 !@count.nil? && @count > 25 + return false if !@count.nil? && @count < 1 + return false if !@offset.nil? && @offset < 0 + true + end + + # Custom attribute writer method with validation + # @param [Object] count Value to be assigned + def count=(count) + if !count.nil? && count > 25 + fail ArgumentError, 'invalid value for "count", must be smaller than or equal to 25.' + end + + if !count.nil? && count < 1 + fail ArgumentError, 'invalid value for "count", must be greater than or equal to 1.' + end + + + @count = count + end + + # Custom attribute writer method with validation + # @param [Object] offset Value to be assigned + def offset=(offset) + if !offset.nil? && offset < 0 + fail ArgumentError, 'invalid value for "offset", must be greater than or equal to 0.' + end + + + @offset = offset + 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 && + count == o.count && + offset == o.offset + 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, count, offset].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_originator_list_response.rb b/lib/plaid/models/transfer_originator_list_response.rb new file mode 100644 index 000000000..471cb7441 --- /dev/null +++ b/lib/plaid/models/transfer_originator_list_response.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.205.3 + +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/originator/list` + class TransferOriginatorListResponse + attr_accessor :originators + + # 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 + { + :'originators' => :'originators', + :'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 + { + :'originators' => :'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::TransferOriginatorListResponse` 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::TransferOriginatorListResponse`. 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?(:'originators') + if (value = attributes[:'originators']).is_a?(Array) + self.originators = 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 @originators.nil? + invalid_properties.push('invalid value for "originators", originators 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 @originators.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 && + originators == o.originators && + 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 + [originators, 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_questionnaire_create_request.rb b/lib/plaid/models/transfer_questionnaire_create_request.rb new file mode 100644 index 000000000..f26873c67 --- /dev/null +++ b/lib/plaid/models/transfer_questionnaire_create_request.rb @@ -0,0 +1,302 @@ +=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.205.3 + +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/questionnaire/create` + class TransferQuestionnaireCreateRequest + # 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 + + # Client ID of the end customer. + attr_accessor :originator_client_id + + # URL the end customer will be redirected to after completing questions in Plaid-hosted onboarding flow. + attr_accessor :redirect_uri + + attr_accessor :disbursement_limits + + attr_accessor :payment_limits + + attr_accessor :transaction_frequency + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'client_id' => :'client_id', + :'secret' => :'secret', + :'originator_client_id' => :'originator_client_id', + :'redirect_uri' => :'redirect_uri', + :'disbursement_limits' => :'disbursement_limits', + :'payment_limits' => :'payment_limits', + :'transaction_frequency' => :'transaction_frequency' + } + 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', + :'originator_client_id' => :'String', + :'redirect_uri' => :'String', + :'disbursement_limits' => :'DisbursementLimits', + :'payment_limits' => :'PaymentLimits', + :'transaction_frequency' => :'TransactionFrequency' + } + 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::TransferQuestionnaireCreateRequest` 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::TransferQuestionnaireCreateRequest`. 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?(:'originator_client_id') + self.originator_client_id = attributes[:'originator_client_id'] + end + + if attributes.key?(:'redirect_uri') + self.redirect_uri = attributes[:'redirect_uri'] + end + + if attributes.key?(:'disbursement_limits') + self.disbursement_limits = attributes[:'disbursement_limits'] + end + + if attributes.key?(:'payment_limits') + self.payment_limits = attributes[:'payment_limits'] + end + + if attributes.key?(:'transaction_frequency') + self.transaction_frequency = attributes[:'transaction_frequency'] + 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 @originator_client_id.nil? + invalid_properties.push('invalid value for "originator_client_id", originator_client_id cannot be nil.') + end + + if @redirect_uri.nil? + invalid_properties.push('invalid value for "redirect_uri", redirect_uri cannot be nil.') + end + + if @disbursement_limits.nil? + invalid_properties.push('invalid value for "disbursement_limits", disbursement_limits cannot be nil.') + end + + if @payment_limits.nil? + invalid_properties.push('invalid value for "payment_limits", payment_limits cannot be nil.') + end + + if @transaction_frequency.nil? + invalid_properties.push('invalid value for "transaction_frequency", transaction_frequency 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 @originator_client_id.nil? + return false if @redirect_uri.nil? + return false if @disbursement_limits.nil? + return false if @payment_limits.nil? + return false if @transaction_frequency.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 && + originator_client_id == o.originator_client_id && + redirect_uri == o.redirect_uri && + disbursement_limits == o.disbursement_limits && + payment_limits == o.payment_limits && + transaction_frequency == o.transaction_frequency + 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, originator_client_id, redirect_uri, disbursement_limits, payment_limits, transaction_frequency].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_questionnaire_create_response.rb b/lib/plaid/models/transfer_questionnaire_create_response.rb new file mode 100644 index 000000000..658c147b7 --- /dev/null +++ b/lib/plaid/models/transfer_questionnaire_create_response.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.205.3 + +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/questionnaire/create` + class TransferQuestionnaireCreateResponse + # Plaid-hosted onboarding URL that you will redirect the end customer to. + attr_accessor :onboarding_url + + # 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 + { + :'onboarding_url' => :'onboarding_url', + :'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 + { + :'onboarding_url' => :'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::TransferQuestionnaireCreateResponse` 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::TransferQuestionnaireCreateResponse`. 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?(:'onboarding_url') + self.onboarding_url = attributes[:'onboarding_url'] + 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 @onboarding_url.nil? + invalid_properties.push('invalid value for "onboarding_url", onboarding_url 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 @onboarding_url.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 && + onboarding_url == o.onboarding_url && + 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 + [onboarding_url, 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_recurring_cancel_request.rb b/lib/plaid/models/transfer_recurring_cancel_request.rb new file mode 100644 index 000000000..f641fc243 --- /dev/null +++ b/lib/plaid/models/transfer_recurring_cancel_request.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.205.3 + +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/recurring/cancel` + class TransferRecurringCancelRequest + # 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 + + # Plaid’s unique identifier for a recurring transfer. + attr_accessor :recurring_transfer_id + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'client_id' => :'client_id', + :'secret' => :'secret', + :'recurring_transfer_id' => :'recurring_transfer_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 + { + :'client_id' => :'String', + :'secret' => :'String', + :'recurring_transfer_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::TransferRecurringCancelRequest` 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::TransferRecurringCancelRequest`. 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?(:'recurring_transfer_id') + self.recurring_transfer_id = attributes[:'recurring_transfer_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 @client_id.nil? + invalid_properties.push('invalid value for "client_id", client_id cannot be nil.') + end + + if @secret.nil? + invalid_properties.push('invalid value for "secret", secret cannot be nil.') + end + + if @recurring_transfer_id.nil? + invalid_properties.push('invalid value for "recurring_transfer_id", recurring_transfer_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 @client_id.nil? + return false if @secret.nil? + return false if @recurring_transfer_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 && + client_id == o.client_id && + secret == o.secret && + recurring_transfer_id == o.recurring_transfer_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 + [client_id, secret, recurring_transfer_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_recurring_cancel_response.rb b/lib/plaid/models/transfer_recurring_cancel_response.rb new file mode 100644 index 000000000..7ea17c2d7 --- /dev/null +++ b/lib/plaid/models/transfer_recurring_cancel_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.205.3 + +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/recurring/cancel` + class TransferRecurringCancelResponse + # 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::TransferRecurringCancelResponse` 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::TransferRecurringCancelResponse`. 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/transfer_recurring_create_request.rb b/lib/plaid/models/transfer_recurring_create_request.rb new file mode 100644 index 000000000..412b96b0e --- /dev/null +++ b/lib/plaid/models/transfer_recurring_create_request.rb @@ -0,0 +1,424 @@ +=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.205.3 + +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/recurring/create` + class TransferRecurringCreateRequest + # 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 Plaid `access_token` for the account that will be debited or credited. Required if not using `payment_profile_token`. + attr_accessor :access_token + + # A random key provided by the client, per unique authorization. Maximum of 50 characters. The API supports idempotency for safely retrying requests without accidentally performing the same operation twice. For example, if a request to create an authorization fails due to a network connection error, you can retry the request with the same idempotency key to guarantee that only a single authorization is created. Failure to provide this key may result in duplicate charges. Required for guaranteed ACH customers. + attr_accessor :idempotency_key + + # The Plaid `account_id` for the account that will be debited or credited. Required if not using `payment_profile_token`. + attr_accessor :account_id + + attr_accessor :type + + attr_accessor :network + + attr_accessor :ach_class + + # The amount of the transfer (decimal string with two digits of precision e.g. \"10.00\"). + attr_accessor :amount + + # If the end user is initiating the specific transfer themselves via an interactive UI, this should be `true`; for automatic recurring payments where the end user is not actually initiating each individual transfer, it should be `false`. + attr_accessor :user_present + + # The currency of the transfer amount. The default value is \"USD\". + attr_accessor :iso_currency_code + + # Plaid’s unique identifier for a test clock. + attr_accessor :test_clock_id + + attr_accessor :schedule + + attr_accessor :user + + attr_accessor :device + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'client_id' => :'client_id', + :'secret' => :'secret', + :'access_token' => :'access_token', + :'idempotency_key' => :'idempotency_key', + :'account_id' => :'account_id', + :'type' => :'type', + :'network' => :'network', + :'ach_class' => :'ach_class', + :'amount' => :'amount', + :'user_present' => :'user_present', + :'iso_currency_code' => :'iso_currency_code', + :'test_clock_id' => :'test_clock_id', + :'schedule' => :'schedule', + :'user' => :'user', + :'device' => :'device' + } + 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', + :'access_token' => :'String', + :'idempotency_key' => :'String', + :'account_id' => :'String', + :'type' => :'TransferType', + :'network' => :'TransferNetwork', + :'ach_class' => :'ACHClass', + :'amount' => :'String', + :'user_present' => :'Boolean', + :'iso_currency_code' => :'String', + :'test_clock_id' => :'String', + :'schedule' => :'TransferRecurringSchedule', + :'user' => :'TransferUserInRequest', + :'device' => :'TransferDevice' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'idempotency_key', + :'user_present', + :'test_clock_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::TransferRecurringCreateRequest` 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::TransferRecurringCreateRequest`. 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?(:'access_token') + self.access_token = attributes[:'access_token'] + end + + if attributes.key?(:'idempotency_key') + self.idempotency_key = attributes[:'idempotency_key'] + end + + if attributes.key?(:'account_id') + self.account_id = attributes[:'account_id'] + end + + if attributes.key?(:'type') + self.type = attributes[:'type'] + end + + if attributes.key?(:'network') + self.network = attributes[:'network'] + end + + if attributes.key?(:'ach_class') + self.ach_class = attributes[:'ach_class'] + end + + if attributes.key?(:'amount') + self.amount = attributes[:'amount'] + end + + if attributes.key?(:'user_present') + self.user_present = attributes[:'user_present'] + end + + if attributes.key?(:'iso_currency_code') + self.iso_currency_code = attributes[:'iso_currency_code'] + end + + if attributes.key?(:'test_clock_id') + self.test_clock_id = attributes[:'test_clock_id'] + end + + if attributes.key?(:'schedule') + self.schedule = attributes[:'schedule'] + end + + if attributes.key?(:'user') + self.user = attributes[:'user'] + end + + if attributes.key?(:'device') + self.device = attributes[:'device'] + 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 @client_id.nil? + invalid_properties.push('invalid value for "client_id", client_id cannot be nil.') + end + + if @secret.nil? + invalid_properties.push('invalid value for "secret", secret cannot be nil.') + end + + if @access_token.nil? + invalid_properties.push('invalid value for "access_token", access_token cannot be nil.') + end + + if @idempotency_key.to_s.length > 50 + invalid_properties.push('invalid value for "idempotency_key", the character length must be smaller than or equal to 50.') + end + + + if @account_id.nil? + invalid_properties.push('invalid value for "account_id", account_id cannot be nil.') + end + + if @type.nil? + invalid_properties.push('invalid value for "type", type cannot be nil.') + end + + if @network.nil? + invalid_properties.push('invalid value for "network", network cannot be nil.') + end + + if @amount.nil? + invalid_properties.push('invalid value for "amount", amount cannot be nil.') + end + + if @schedule.nil? + invalid_properties.push('invalid value for "schedule", schedule cannot be nil.') + end + + if @user.nil? + invalid_properties.push('invalid value for "user", user cannot be nil.') + end + + if @device.nil? + invalid_properties.push('invalid value for "device", device 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 @client_id.nil? + return false if @secret.nil? + return false if @access_token.nil? + return false if @idempotency_key.to_s.length > 50 + return false if @account_id.nil? + return false if @type.nil? + return false if @network.nil? + return false if @amount.nil? + return false if @schedule.nil? + return false if @user.nil? + return false if @device.nil? + true + end + + # Custom attribute writer method with validation + # @param [Object] idempotency_key Value to be assigned + def idempotency_key=(idempotency_key) + if idempotency_key.to_s.length > 50 + fail ArgumentError, 'invalid value for "idempotency_key", the character length must be smaller than or equal to 50.' + end + + + @idempotency_key = idempotency_key + 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 && + access_token == o.access_token && + idempotency_key == o.idempotency_key && + account_id == o.account_id && + type == o.type && + network == o.network && + ach_class == o.ach_class && + amount == o.amount && + user_present == o.user_present && + iso_currency_code == o.iso_currency_code && + test_clock_id == o.test_clock_id && + schedule == o.schedule && + user == o.user && + device == o.device + 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, access_token, idempotency_key, account_id, type, network, ach_class, amount, user_present, iso_currency_code, test_clock_id, schedule, user, device].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_recurring_create_response.rb b/lib/plaid/models/transfer_recurring_create_response.rb new file mode 100644 index 000000000..4f563c36a --- /dev/null +++ b/lib/plaid/models/transfer_recurring_create_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.205.3 + +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/recurring/create` + class TransferRecurringCreateResponse + attr_accessor :recurring_transfer + + # 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 + { + :'recurring_transfer' => :'recurring_transfer', + :'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 + { + :'recurring_transfer' => :'RecurringTransfer', + :'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::TransferRecurringCreateResponse` 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::TransferRecurringCreateResponse`. 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?(:'recurring_transfer') + self.recurring_transfer = attributes[:'recurring_transfer'] + 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 @recurring_transfer.nil? + invalid_properties.push('invalid value for "recurring_transfer", recurring_transfer 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 @recurring_transfer.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 && + recurring_transfer == o.recurring_transfer && + 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 + [recurring_transfer, 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_recurring_get_request.rb b/lib/plaid/models/transfer_recurring_get_request.rb new file mode 100644 index 000000000..ea5776a32 --- /dev/null +++ b/lib/plaid/models/transfer_recurring_get_request.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.205.3 + +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/recurring/get` + class TransferRecurringGetRequest + # 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 + + # Plaid’s unique identifier for a recurring transfer. + attr_accessor :recurring_transfer_id + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'client_id' => :'client_id', + :'secret' => :'secret', + :'recurring_transfer_id' => :'recurring_transfer_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 + { + :'client_id' => :'String', + :'secret' => :'String', + :'recurring_transfer_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::TransferRecurringGetRequest` 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::TransferRecurringGetRequest`. 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?(:'recurring_transfer_id') + self.recurring_transfer_id = attributes[:'recurring_transfer_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 @client_id.nil? + invalid_properties.push('invalid value for "client_id", client_id cannot be nil.') + end + + if @secret.nil? + invalid_properties.push('invalid value for "secret", secret cannot be nil.') + end + + if @recurring_transfer_id.nil? + invalid_properties.push('invalid value for "recurring_transfer_id", recurring_transfer_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 @client_id.nil? + return false if @secret.nil? + return false if @recurring_transfer_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 && + client_id == o.client_id && + secret == o.secret && + recurring_transfer_id == o.recurring_transfer_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 + [client_id, secret, recurring_transfer_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_recurring_get_response.rb b/lib/plaid/models/transfer_recurring_get_response.rb new file mode 100644 index 000000000..9ca4f2f44 --- /dev/null +++ b/lib/plaid/models/transfer_recurring_get_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.205.3 + +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/recurring/get` + class TransferRecurringGetResponse + attr_accessor :recurring_transfer + + # 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 + { + :'recurring_transfer' => :'recurring_transfer', + :'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 + { + :'recurring_transfer' => :'RecurringTransfer', + :'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::TransferRecurringGetResponse` 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::TransferRecurringGetResponse`. 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?(:'recurring_transfer') + self.recurring_transfer = attributes[:'recurring_transfer'] + 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 @recurring_transfer.nil? + invalid_properties.push('invalid value for "recurring_transfer", recurring_transfer 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 @recurring_transfer.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 && + recurring_transfer == o.recurring_transfer && + 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 + [recurring_transfer, 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_recurring_list_request.rb b/lib/plaid/models/transfer_recurring_list_request.rb new file mode 100644 index 000000000..56e2f1254 --- /dev/null +++ b/lib/plaid/models/transfer_recurring_list_request.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.205.3 + +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/recurring/list` + class TransferRecurringListRequest + # Your Plaid API `client_id`. The `client_id` is required and may be provided either in the `PLAID-CLIENT-ID` header or as part of a request body. + attr_accessor :client_id + + # Your Plaid API `secret`. The `secret` is required and may be provided either in the `PLAID-SECRET` header or as part of a request body. + attr_accessor :secret + + # The start datetime of recurring transfers to list. This should be in RFC 3339 format (i.e. `2019-12-06T22:35:49Z`) + attr_accessor :start_date + + # The end datetime of recurring transfers to list. This should be in RFC 3339 format (i.e. `2019-12-06T22:35:49Z`) + attr_accessor :end_date + + # The maximum number of transfers to return. + attr_accessor :count + + # The number of transfers to skip before returning results. + attr_accessor :offset + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'client_id' => :'client_id', + :'secret' => :'secret', + :'start_date' => :'start_date', + :'end_date' => :'end_date', + :'count' => :'count', + :'offset' => :'offset' + } + 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', + :'start_date' => :'Time', + :'end_date' => :'Time', + :'count' => :'Integer', + :'offset' => :'Integer' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'start_date', + :'end_date', + ]) + 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::TransferRecurringListRequest` 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::TransferRecurringListRequest`. 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?(:'start_date') + self.start_date = attributes[:'start_date'] + end + + if attributes.key?(:'end_date') + self.end_date = attributes[:'end_date'] + end + + if attributes.key?(:'count') + self.count = attributes[:'count'] + else + self.count = 25 + end + + if attributes.key?(:'offset') + self.offset = attributes[:'offset'] + else + self.offset = 0 + 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 @client_id.nil? + invalid_properties.push('invalid value for "client_id", client_id cannot be nil.') + end + + if @secret.nil? + invalid_properties.push('invalid value for "secret", secret cannot be nil.') + end + + if !@count.nil? && @count > 25 + invalid_properties.push('invalid value for "count", must be smaller than or equal to 25.') + end + + if !@count.nil? && @count < 1 + invalid_properties.push('invalid value for "count", must be greater than or equal to 1.') + end + + + if !@offset.nil? && @offset < 0 + invalid_properties.push('invalid value for "offset", must be greater than or equal to 0.') + 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 @client_id.nil? + return false if @secret.nil? + return false if !@count.nil? && @count > 25 + return false if !@count.nil? && @count < 1 + return false if !@offset.nil? && @offset < 0 + true + end + + # Custom attribute writer method with validation + # @param [Object] count Value to be assigned + def count=(count) + if !count.nil? && count > 25 + fail ArgumentError, 'invalid value for "count", must be smaller than or equal to 25.' + end + + if !count.nil? && count < 1 + fail ArgumentError, 'invalid value for "count", must be greater than or equal to 1.' + end + + + @count = count + end + + # Custom attribute writer method with validation + # @param [Object] offset Value to be assigned + def offset=(offset) + if !offset.nil? && offset < 0 + fail ArgumentError, 'invalid value for "offset", must be greater than or equal to 0.' + end + + + @offset = offset + 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 && + start_date == o.start_date && + end_date == o.end_date && + count == o.count && + offset == o.offset + 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, start_date, end_date, count, offset].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_recurring_list_response.rb b/lib/plaid/models/transfer_recurring_list_response.rb new file mode 100644 index 000000000..9109b36e4 --- /dev/null +++ b/lib/plaid/models/transfer_recurring_list_response.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.205.3 + +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/recurring/list` + class TransferRecurringListResponse + attr_accessor :recurring_transfers + + # 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 + { + :'recurring_transfers' => :'recurring_transfers', + :'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 + { + :'recurring_transfers' => :'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::TransferRecurringListResponse` 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::TransferRecurringListResponse`. 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?(:'recurring_transfers') + if (value = attributes[:'recurring_transfers']).is_a?(Array) + self.recurring_transfers = 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 @recurring_transfers.nil? + invalid_properties.push('invalid value for "recurring_transfers", recurring_transfers 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 @recurring_transfers.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 && + recurring_transfers == o.recurring_transfers && + 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 + [recurring_transfers, 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_recurring_schedule.rb b/lib/plaid/models/transfer_recurring_schedule.rb new file mode 100644 index 000000000..a6e3442d5 --- /dev/null +++ b/lib/plaid/models/transfer_recurring_schedule.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.205.3 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # The schedule that the recurring transfer will be executed on. + class TransferRecurringSchedule + attr_accessor :interval_unit + + # The number of recurring `interval_units` between originations. The recurring interval(before holiday adjustment) is calculated by multiplying `interval_unit` and `interval_count`. For instance, to schedule a recurring transfer which originates once every two weeks, set `interval_unit` = `week` and `interval_count` = 2. + attr_accessor :interval_count + + # The day of the interval on which to schedule the transfer. If the `interval_unit` is `week`, `interval_execution_day` should be an integer from 1 (Monday) to 5 (Friday). If the `interval_unit` is `month`, `interval_execution_day` should be an integer indicating which day of the month to make the transfer on. Integers from 1 to 28 can be used to make a transfer on that day of the month. Negative integers from -1 to -5 can be used to make a transfer relative to the end of the month. To make a transfer on the last day of the month, use -1; to make the transfer on the second-to-last day, use -2, and so on. The transfer will be originated on next available banking day if the designated day is a non banking day. + attr_accessor :interval_execution_day + + # A date in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format (YYYY-MM-DD). The recurring transfer will begin on the first `interval_execution_day` on or after the `start_date`. If the first `interval_execution_day` on or after the start date is also the same day that `/transfer/recurring/create` was called, the bank *may* make the first payment on that day, but it is not guaranteed to do so. + attr_accessor :start_date + + # A date in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format (YYYY-MM-DD). The recurring transfer will end on the last `interval_execution_day` on or before the `end_date`. If the `interval_execution_day` between the start date and the end date (inclusive) is also the same day that `/transfer/recurring/create` was called, the bank *may* make a payment on that day, but it is not guaranteed to do so. + attr_accessor :end_date + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'interval_unit' => :'interval_unit', + :'interval_count' => :'interval_count', + :'interval_execution_day' => :'interval_execution_day', + :'start_date' => :'start_date', + :'end_date' => :'end_date' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'interval_unit' => :'TransferScheduleIntervalUnit', + :'interval_count' => :'Integer', + :'interval_execution_day' => :'Integer', + :'start_date' => :'Date', + :'end_date' => :'Date' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'end_date' + ]) + 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::TransferRecurringSchedule` 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::TransferRecurringSchedule`. 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?(:'interval_unit') + self.interval_unit = attributes[:'interval_unit'] + end + + if attributes.key?(:'interval_count') + self.interval_count = attributes[:'interval_count'] + end + + if attributes.key?(:'interval_execution_day') + self.interval_execution_day = attributes[:'interval_execution_day'] + end + + if attributes.key?(:'start_date') + self.start_date = attributes[:'start_date'] + end + + if attributes.key?(:'end_date') + self.end_date = attributes[:'end_date'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + 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 && + interval_unit == o.interval_unit && + interval_count == o.interval_count && + interval_execution_day == o.interval_execution_day && + start_date == o.start_date && + end_date == o.end_date + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [interval_unit, interval_count, interval_execution_day, start_date, end_date].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + 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_recurring_status.rb b/lib/plaid/models/transfer_recurring_status.rb new file mode 100644 index 000000000..eeda5df55 --- /dev/null +++ b/lib/plaid/models/transfer_recurring_status.rb @@ -0,0 +1,40 @@ +=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.205.3 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + class TransferRecurringStatus + ACTIVE = "active".freeze + CANCELLED = "cancelled".freeze + EXPIRED = "expired".freeze + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def self.build_from_hash(value) + new.build_from_hash(value) + end + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def build_from_hash(value) + # We do not validate that the value is one of the enums set in the OpenAPI + # file because we want to be able to add to our list of enums without + # breaking this client library. + value + end + end + +end diff --git a/lib/plaid/models/transfer_refund.rb b/lib/plaid/models/transfer_refund.rb new file mode 100644 index 000000000..8be2c4b79 --- /dev/null +++ b/lib/plaid/models/transfer_refund.rb @@ -0,0 +1,284 @@ +=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.205.3 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # Represents a refund within the Transfers API. + class TransferRefund + # Plaid’s unique identifier for a refund. + attr_accessor :id + + # The ID of the transfer to refund. + attr_accessor :transfer_id + + # The amount of the refund (decimal string with two digits of precision e.g. \"10.00\"). + attr_accessor :amount + + attr_accessor :status + + # The datetime when this refund was created. This will be of the form `2006-01-02T15:04:05Z` + attr_accessor :created + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'id' => :'id', + :'transfer_id' => :'transfer_id', + :'amount' => :'amount', + :'status' => :'status', + :'created' => :'created' + } + 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' => :'String', + :'transfer_id' => :'String', + :'amount' => :'String', + :'status' => :'TransferRefundStatus', + :'created' => :'Time' + } + 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::TransferRefund` 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::TransferRefund`. 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') + self.id = attributes[:'id'] + end + + if attributes.key?(:'transfer_id') + self.transfer_id = attributes[:'transfer_id'] + end + + if attributes.key?(:'amount') + self.amount = attributes[:'amount'] + end + + if attributes.key?(:'status') + self.status = attributes[:'status'] + end + + if attributes.key?(:'created') + self.created = attributes[:'created'] + 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 @id.nil? + invalid_properties.push('invalid value for "id", id cannot be nil.') + end + + if @transfer_id.nil? + invalid_properties.push('invalid value for "transfer_id", transfer_id cannot be nil.') + end + + if @amount.nil? + invalid_properties.push('invalid value for "amount", amount cannot be nil.') + end + + if @status.nil? + invalid_properties.push('invalid value for "status", status cannot be nil.') + end + + if @created.nil? + invalid_properties.push('invalid value for "created", created 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 @id.nil? + return false if @transfer_id.nil? + return false if @amount.nil? + return false if @status.nil? + return false if @created.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 && + id == o.id && + transfer_id == o.transfer_id && + amount == o.amount && + status == o.status && + created == o.created + 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, transfer_id, amount, status, created].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_refund_cancel_request.rb b/lib/plaid/models/transfer_refund_cancel_request.rb new file mode 100644 index 000000000..0b9c08a2b --- /dev/null +++ b/lib/plaid/models/transfer_refund_cancel_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.205.3 + +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/refund/cancel` + class TransferRefundCancelRequest + # 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 + + # Plaid’s unique identifier for a refund. + attr_accessor :refund_id + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'client_id' => :'client_id', + :'secret' => :'secret', + :'refund_id' => :'refund_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 + { + :'client_id' => :'String', + :'secret' => :'String', + :'refund_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::TransferRefundCancelRequest` 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::TransferRefundCancelRequest`. 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?(:'refund_id') + self.refund_id = attributes[:'refund_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 @refund_id.nil? + invalid_properties.push('invalid value for "refund_id", refund_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 @refund_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 && + client_id == o.client_id && + secret == o.secret && + refund_id == o.refund_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 + [client_id, secret, refund_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_refund_cancel_response.rb b/lib/plaid/models/transfer_refund_cancel_response.rb new file mode 100644 index 000000000..e6e4baa2a --- /dev/null +++ b/lib/plaid/models/transfer_refund_cancel_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.205.3 + +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/refund/cancel` + class TransferRefundCancelResponse + # 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::TransferRefundCancelResponse` 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::TransferRefundCancelResponse`. 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/transfer_refund_create_request.rb b/lib/plaid/models/transfer_refund_create_request.rb new file mode 100644 index 000000000..4390275ed --- /dev/null +++ b/lib/plaid/models/transfer_refund_create_request.rb @@ -0,0 +1,296 @@ +=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.205.3 + +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/refund/create` + class TransferRefundCreateRequest + # 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 ID of the transfer to refund. + attr_accessor :transfer_id + + # The amount of the refund (decimal string with two digits of precision e.g. \"10.00\"). + attr_accessor :amount + + # A random key provided by the client, per unique refund. Maximum of 50 characters. The API supports idempotency for safely retrying requests without accidentally performing the same operation twice. For example, if a request to create a refund fails due to a network connection error, you can retry the request with the same idempotency key to guarantee that only a single refund is created. + attr_accessor :idempotency_key + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'client_id' => :'client_id', + :'secret' => :'secret', + :'transfer_id' => :'transfer_id', + :'amount' => :'amount', + :'idempotency_key' => :'idempotency_key' + } + 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', + :'transfer_id' => :'String', + :'amount' => :'String', + :'idempotency_key' => :'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::TransferRefundCreateRequest` 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::TransferRefundCreateRequest`. 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?(:'transfer_id') + self.transfer_id = attributes[:'transfer_id'] + end + + if attributes.key?(:'amount') + self.amount = attributes[:'amount'] + end + + if attributes.key?(:'idempotency_key') + self.idempotency_key = attributes[:'idempotency_key'] + 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 @transfer_id.nil? + invalid_properties.push('invalid value for "transfer_id", transfer_id cannot be nil.') + end + + if @amount.nil? + invalid_properties.push('invalid value for "amount", amount cannot be nil.') + end + + if @idempotency_key.nil? + invalid_properties.push('invalid value for "idempotency_key", idempotency_key cannot be nil.') + end + + if @idempotency_key.to_s.length > 50 + invalid_properties.push('invalid value for "idempotency_key", the character length must be smaller than or equal to 50.') + 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 @transfer_id.nil? + return false if @amount.nil? + return false if @idempotency_key.nil? + return false if @idempotency_key.to_s.length > 50 + true + end + + # Custom attribute writer method with validation + # @param [Object] idempotency_key Value to be assigned + def idempotency_key=(idempotency_key) + if idempotency_key.nil? + fail ArgumentError, 'idempotency_key cannot be nil' + end + + if idempotency_key.to_s.length > 50 + fail ArgumentError, 'invalid value for "idempotency_key", the character length must be smaller than or equal to 50.' + end + + + @idempotency_key = idempotency_key + 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 && + transfer_id == o.transfer_id && + amount == o.amount && + idempotency_key == o.idempotency_key + 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, transfer_id, amount, idempotency_key].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_refund_create_response.rb b/lib/plaid/models/transfer_refund_create_response.rb new file mode 100644 index 000000000..bc4251bd7 --- /dev/null +++ b/lib/plaid/models/transfer_refund_create_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.205.3 + +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/refund/create` + class TransferRefundCreateResponse + attr_accessor :refund + + # 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 + { + :'refund' => :'refund', + :'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 + { + :'refund' => :'TransferRefund', + :'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::TransferRefundCreateResponse` 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::TransferRefundCreateResponse`. 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?(:'refund') + self.refund = attributes[:'refund'] + 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 @refund.nil? + invalid_properties.push('invalid value for "refund", refund 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 @refund.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 && + refund == o.refund && + 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 + [refund, 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_refund_get_request.rb b/lib/plaid/models/transfer_refund_get_request.rb new file mode 100644 index 000000000..3aa89ca3d --- /dev/null +++ b/lib/plaid/models/transfer_refund_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.205.3 + +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/refund/get` + class TransferRefundGetRequest + # 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 + + # Plaid’s unique identifier for a refund. + attr_accessor :refund_id + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'client_id' => :'client_id', + :'secret' => :'secret', + :'refund_id' => :'refund_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 + { + :'client_id' => :'String', + :'secret' => :'String', + :'refund_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::TransferRefundGetRequest` 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::TransferRefundGetRequest`. 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?(:'refund_id') + self.refund_id = attributes[:'refund_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 @refund_id.nil? + invalid_properties.push('invalid value for "refund_id", refund_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 @refund_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 && + client_id == o.client_id && + secret == o.secret && + refund_id == o.refund_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 + [client_id, secret, refund_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_refund_get_response.rb b/lib/plaid/models/transfer_refund_get_response.rb new file mode 100644 index 000000000..71dd43357 --- /dev/null +++ b/lib/plaid/models/transfer_refund_get_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.205.3 + +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/refund/get` + class TransferRefundGetResponse + attr_accessor :refund + + # 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 + { + :'refund' => :'refund', + :'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 + { + :'refund' => :'TransferRefund', + :'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::TransferRefundGetResponse` 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::TransferRefundGetResponse`. 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?(:'refund') + self.refund = attributes[:'refund'] + 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 @refund.nil? + invalid_properties.push('invalid value for "refund", refund 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 @refund.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 && + refund == o.refund && + 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 + [refund, 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_refund_status.rb b/lib/plaid/models/transfer_refund_status.rb new file mode 100644 index 000000000..b5294f41b --- /dev/null +++ b/lib/plaid/models/transfer_refund_status.rb @@ -0,0 +1,41 @@ +=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.205.3 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + class TransferRefundStatus + PENDING = "pending".freeze + POSTED = "posted".freeze + CANCELLED = "cancelled".freeze + FAILED = "failed".freeze + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def self.build_from_hash(value) + new.build_from_hash(value) + end + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def build_from_hash(value) + # We do not validate that the value is one of the enums set in the OpenAPI + # file because we want to be able to add to our list of enums without + # breaking this client library. + value + end + end + +end diff --git a/lib/plaid/models/transfer_repayment.rb b/lib/plaid/models/transfer_repayment.rb index 966fc6379..a6b0d5032 100644 --- a/lib/plaid/models/transfer_repayment.rb +++ b/lib/plaid/models/transfer_repayment.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_repayment_list_request.rb b/lib/plaid/models/transfer_repayment_list_request.rb index e45b83b05..497faf8cd 100644 --- a/lib/plaid/models/transfer_repayment_list_request.rb +++ b/lib/plaid/models/transfer_repayment_list_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_repayment_list_response.rb b/lib/plaid/models/transfer_repayment_list_response.rb index d939c1ea6..cee86422b 100644 --- a/lib/plaid/models/transfer_repayment_list_response.rb +++ b/lib/plaid/models/transfer_repayment_list_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_repayment_return.rb b/lib/plaid/models/transfer_repayment_return.rb index 0b31244d7..f2414bf30 100644 --- a/lib/plaid/models/transfer_repayment_return.rb +++ b/lib/plaid/models/transfer_repayment_return.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_repayment_return_list_request.rb b/lib/plaid/models/transfer_repayment_return_list_request.rb index 8f7bd52ed..6f840f0e5 100644 --- a/lib/plaid/models/transfer_repayment_return_list_request.rb +++ b/lib/plaid/models/transfer_repayment_return_list_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_repayment_return_list_response.rb b/lib/plaid/models/transfer_repayment_return_list_response.rb index 7eb1db3a0..525dd0b80 100644 --- a/lib/plaid/models/transfer_repayment_return_list_response.rb +++ b/lib/plaid/models/transfer_repayment_return_list_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_schedule_interval_unit.rb b/lib/plaid/models/transfer_schedule_interval_unit.rb new file mode 100644 index 000000000..b2a62cd3e --- /dev/null +++ b/lib/plaid/models/transfer_schedule_interval_unit.rb @@ -0,0 +1,39 @@ +=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.205.3 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + class TransferScheduleIntervalUnit + WEEK = "week".freeze + MONTH = "month".freeze + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def self.build_from_hash(value) + new.build_from_hash(value) + end + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def build_from_hash(value) + # We do not validate that the value is one of the enums set in the OpenAPI + # file because we want to be able to add to our list of enums without + # breaking this client library. + value + end + end + +end diff --git a/lib/plaid/models/transfer_status.rb b/lib/plaid/models/transfer_status.rb index bfc176297..c45e8e597 100644 --- a/lib/plaid/models/transfer_status.rb +++ b/lib/plaid/models/transfer_status.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_sweep.rb b/lib/plaid/models/transfer_sweep.rb index 9ff1098f8..c440b43f0 100644 --- a/lib/plaid/models/transfer_sweep.rb +++ b/lib/plaid/models/transfer_sweep.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_sweep_get_request.rb b/lib/plaid/models/transfer_sweep_get_request.rb index 5be3a92d7..93bbb7c6f 100644 --- a/lib/plaid/models/transfer_sweep_get_request.rb +++ b/lib/plaid/models/transfer_sweep_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_sweep_get_response.rb b/lib/plaid/models/transfer_sweep_get_response.rb index 9957b6a43..7d80a02c4 100644 --- a/lib/plaid/models/transfer_sweep_get_response.rb +++ b/lib/plaid/models/transfer_sweep_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_sweep_list_request.rb b/lib/plaid/models/transfer_sweep_list_request.rb index 81128f3f0..641b74a10 100644 --- a/lib/plaid/models/transfer_sweep_list_request.rb +++ b/lib/plaid/models/transfer_sweep_list_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -34,6 +34,9 @@ class TransferSweepListRequest # The number of sweeps to skip before returning results. attr_accessor :offset + # Filter sweeps to only those with the specified originator client. + attr_accessor :originator_client_id + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +45,8 @@ def self.attribute_map :'start_date' => :'start_date', :'end_date' => :'end_date', :'count' => :'count', - :'offset' => :'offset' + :'offset' => :'offset', + :'originator_client_id' => :'originator_client_id' } end @@ -59,7 +63,8 @@ def self.openapi_types :'start_date' => :'Time', :'end_date' => :'Time', :'count' => :'Integer', - :'offset' => :'Integer' + :'offset' => :'Integer', + :'originator_client_id' => :'String' } end @@ -69,6 +74,7 @@ def self.openapi_nullable :'start_date', :'end_date', :'count', + :'originator_client_id' ]) end @@ -114,6 +120,10 @@ def initialize(attributes = {}) else self.offset = 0 end + + if attributes.key?(:'originator_client_id') + self.originator_client_id = attributes[:'originator_client_id'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -182,7 +192,8 @@ def ==(o) start_date == o.start_date && end_date == o.end_date && count == o.count && - offset == o.offset + offset == o.offset && + originator_client_id == o.originator_client_id end # @see the `==` method @@ -194,7 +205,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [client_id, secret, start_date, end_date, count, offset].hash + [client_id, secret, start_date, end_date, count, offset, originator_client_id].hash end # Builds the object from hash diff --git a/lib/plaid/models/transfer_sweep_list_response.rb b/lib/plaid/models/transfer_sweep_list_response.rb index 6e82de652..d818aa192 100644 --- a/lib/plaid/models/transfer_sweep_list_response.rb +++ b/lib/plaid/models/transfer_sweep_list_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_sweep_status.rb b/lib/plaid/models/transfer_sweep_status.rb index a6d71269b..57bd90420 100644 --- a/lib/plaid/models/transfer_sweep_status.rb +++ b/lib/plaid/models/transfer_sweep_status.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_test_clock.rb b/lib/plaid/models/transfer_test_clock.rb new file mode 100644 index 000000000..4ebc149d4 --- /dev/null +++ b/lib/plaid/models/transfer_test_clock.rb @@ -0,0 +1,236 @@ +=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.205.3 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # Defines the test clock for a transfer. + class TransferTestClock + # Plaid’s unique identifier for a test clock. + attr_accessor :test_clock_id + + # The frozen timestamp on the test clock. This will be of the form `2006-01-02T15:04:05Z`. + attr_accessor :frozen_timestamp + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'test_clock_id' => :'test_clock_id', + :'frozen_timestamp' => :'frozen_timestamp' + } + 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 + { + :'test_clock_id' => :'String', + :'frozen_timestamp' => :'Time' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'test_clock_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::TransferTestClock` 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::TransferTestClock`. 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?(:'test_clock_id') + self.test_clock_id = attributes[:'test_clock_id'] + end + + if attributes.key?(:'frozen_timestamp') + self.frozen_timestamp = attributes[:'frozen_timestamp'] + 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 @frozen_timestamp.nil? + invalid_properties.push('invalid value for "frozen_timestamp", frozen_timestamp 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 @frozen_timestamp.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 && + test_clock_id == o.test_clock_id && + frozen_timestamp == o.frozen_timestamp + 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 + [test_clock_id, frozen_timestamp].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_type.rb b/lib/plaid/models/transfer_type.rb index c072e2d4c..da03ef94c 100644 --- a/lib/plaid/models/transfer_type.rb +++ b/lib/plaid/models/transfer_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_user_address_in_request.rb b/lib/plaid/models/transfer_user_address_in_request.rb index a16dc6823..936de4646 100644 --- a/lib/plaid/models/transfer_user_address_in_request.rb +++ b/lib/plaid/models/transfer_user_address_in_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_user_address_in_response.rb b/lib/plaid/models/transfer_user_address_in_response.rb index bd98f1773..bb3b3deed 100644 --- a/lib/plaid/models/transfer_user_address_in_response.rb +++ b/lib/plaid/models/transfer_user_address_in_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_user_in_request.rb b/lib/plaid/models/transfer_user_in_request.rb index 02347e0ba..35b0aa8aa 100644 --- a/lib/plaid/models/transfer_user_in_request.rb +++ b/lib/plaid/models/transfer_user_in_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_user_in_request_deprecated.rb b/lib/plaid/models/transfer_user_in_request_deprecated.rb index 12840c3ab..dfe9ae641 100644 --- a/lib/plaid/models/transfer_user_in_request_deprecated.rb +++ b/lib/plaid/models/transfer_user_in_request_deprecated.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/transfer_user_in_response.rb b/lib/plaid/models/transfer_user_in_response.rb index b32849eda..84f671a50 100644 --- a/lib/plaid/models/transfer_user_in_response.rb +++ b/lib/plaid/models/transfer_user_in_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/update_entity_screening_request_search_terms.rb b/lib/plaid/models/update_entity_screening_request_search_terms.rb index d0826b48d..bde8454cf 100644 --- a/lib/plaid/models/update_entity_screening_request_search_terms.rb +++ b/lib/plaid/models/update_entity_screening_request_search_terms.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/update_individual_screening_request_search_terms.rb b/lib/plaid/models/update_individual_screening_request_search_terms.rb index 36aa81d33..df6106ab5 100644 --- a/lib/plaid/models/update_individual_screening_request_search_terms.rb +++ b/lib/plaid/models/update_individual_screening_request_search_terms.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/user_address.rb b/lib/plaid/models/user_address.rb index c19843dbd..f1eae61fd 100644 --- a/lib/plaid/models/user_address.rb +++ b/lib/plaid/models/user_address.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/user_create_request.rb b/lib/plaid/models/user_create_request.rb index 15da8d7b9..9bf759800 100644 --- a/lib/plaid/models/user_create_request.rb +++ b/lib/plaid/models/user_create_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/user_create_response.rb b/lib/plaid/models/user_create_response.rb index 630d16cbe..6f82c6276 100644 --- a/lib/plaid/models/user_create_response.rb +++ b/lib/plaid/models/user_create_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/user_custom_password.rb b/lib/plaid/models/user_custom_password.rb index 1881827a8..6f239c19d 100644 --- a/lib/plaid/models/user_custom_password.rb +++ b/lib/plaid/models/user_custom_password.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/user_id_number.rb b/lib/plaid/models/user_id_number.rb index 48b24df66..a73484f68 100644 --- a/lib/plaid/models/user_id_number.rb +++ b/lib/plaid/models/user_id_number.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/user_name.rb b/lib/plaid/models/user_name.rb index dd36e59f2..694098234 100644 --- a/lib/plaid/models/user_name.rb +++ b/lib/plaid/models/user_name.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/user_permission_revoked_webhook.rb b/lib/plaid/models/user_permission_revoked_webhook.rb index 30694e22a..86aa3f83a 100644 --- a/lib/plaid/models/user_permission_revoked_webhook.rb +++ b/lib/plaid/models/user_permission_revoked_webhook.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/user_stated_income_source_category.rb b/lib/plaid/models/user_stated_income_source_category.rb index 337e08fdd..f66c681cd 100644 --- a/lib/plaid/models/user_stated_income_source_category.rb +++ b/lib/plaid/models/user_stated_income_source_category.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/user_stated_income_source_frequency.rb b/lib/plaid/models/user_stated_income_source_frequency.rb index 016025518..cb8ccce60 100644 --- a/lib/plaid/models/user_stated_income_source_frequency.rb +++ b/lib/plaid/models/user_stated_income_source_frequency.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/user_stated_income_source_pay_type.rb b/lib/plaid/models/user_stated_income_source_pay_type.rb index 2fae8b24c..916825bed 100644 --- a/lib/plaid/models/user_stated_income_source_pay_type.rb +++ b/lib/plaid/models/user_stated_income_source_pay_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/validation_source.rb b/lib/plaid/models/validation_source.rb index 9d5177951..a97b3fa01 100644 --- a/lib/plaid/models/validation_source.rb +++ b/lib/plaid/models/validation_source.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/validation_sources.rb b/lib/plaid/models/validation_sources.rb index 7418ba484..c41384b4b 100644 --- a/lib/plaid/models/validation_sources.rb +++ b/lib/plaid/models/validation_sources.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/verification_expired_webhook.rb b/lib/plaid/models/verification_expired_webhook.rb index 014fdde7f..4bd3060df 100644 --- a/lib/plaid/models/verification_expired_webhook.rb +++ b/lib/plaid/models/verification_expired_webhook.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/verification_of_asset.rb b/lib/plaid/models/verification_of_asset.rb index 4c409277c..fdc907191 100644 --- a/lib/plaid/models/verification_of_asset.rb +++ b/lib/plaid/models/verification_of_asset.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/verification_of_asset_response.rb b/lib/plaid/models/verification_of_asset_response.rb index c49d8c01c..6d0095722 100644 --- a/lib/plaid/models/verification_of_asset_response.rb +++ b/lib/plaid/models/verification_of_asset_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/verification_refresh_status.rb b/lib/plaid/models/verification_refresh_status.rb index f1ca1e692..0c22217b7 100644 --- a/lib/plaid/models/verification_refresh_status.rb +++ b/lib/plaid/models/verification_refresh_status.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/verification_status.rb b/lib/plaid/models/verification_status.rb index eb994dab7..5ab7ddb53 100644 --- a/lib/plaid/models/verification_status.rb +++ b/lib/plaid/models/verification_status.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/w2.rb b/lib/plaid/models/w2.rb index 330f4c7f0..6a5abed2b 100644 --- a/lib/plaid/models/w2.rb +++ b/lib/plaid/models/w2.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/w2_box12.rb b/lib/plaid/models/w2_box12.rb index 1f8b31a42..6efaa5fd6 100644 --- a/lib/plaid/models/w2_box12.rb +++ b/lib/plaid/models/w2_box12.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/w2_state_and_local_wages.rb b/lib/plaid/models/w2_state_and_local_wages.rb index c6c11b666..e39b6345e 100644 --- a/lib/plaid/models/w2_state_and_local_wages.rb +++ b/lib/plaid/models/w2_state_and_local_wages.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/wallet.rb b/lib/plaid/models/wallet.rb index 088f94e65..5ff447a89 100644 --- a/lib/plaid/models/wallet.rb +++ b/lib/plaid/models/wallet.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/wallet_balance.rb b/lib/plaid/models/wallet_balance.rb index b447333db..3060cd969 100644 --- a/lib/plaid/models/wallet_balance.rb +++ b/lib/plaid/models/wallet_balance.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/wallet_create_request.rb b/lib/plaid/models/wallet_create_request.rb index c2b421e3e..bfee842e2 100644 --- a/lib/plaid/models/wallet_create_request.rb +++ b/lib/plaid/models/wallet_create_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/wallet_create_response.rb b/lib/plaid/models/wallet_create_response.rb index 19d237b30..50c7bb0b3 100644 --- a/lib/plaid/models/wallet_create_response.rb +++ b/lib/plaid/models/wallet_create_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/wallet_get_request.rb b/lib/plaid/models/wallet_get_request.rb index 3b3c36935..a0743fe5c 100644 --- a/lib/plaid/models/wallet_get_request.rb +++ b/lib/plaid/models/wallet_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/wallet_get_response.rb b/lib/plaid/models/wallet_get_response.rb index 59d2c4690..e796c19be 100644 --- a/lib/plaid/models/wallet_get_response.rb +++ b/lib/plaid/models/wallet_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/wallet_iso_currency_code.rb b/lib/plaid/models/wallet_iso_currency_code.rb index a7b6a0a35..0afafe084 100644 --- a/lib/plaid/models/wallet_iso_currency_code.rb +++ b/lib/plaid/models/wallet_iso_currency_code.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/wallet_list_request.rb b/lib/plaid/models/wallet_list_request.rb index fc1d8e963..1d2a9b2d9 100644 --- a/lib/plaid/models/wallet_list_request.rb +++ b/lib/plaid/models/wallet_list_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/wallet_list_response.rb b/lib/plaid/models/wallet_list_response.rb index dc57a8ca1..1fd8b337b 100644 --- a/lib/plaid/models/wallet_list_response.rb +++ b/lib/plaid/models/wallet_list_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/wallet_numbers.rb b/lib/plaid/models/wallet_numbers.rb index 3cfeb5c6b..d6db9ca4b 100644 --- a/lib/plaid/models/wallet_numbers.rb +++ b/lib/plaid/models/wallet_numbers.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/wallet_transaction.rb b/lib/plaid/models/wallet_transaction.rb index 0a1115359..eafdcca3f 100644 --- a/lib/plaid/models/wallet_transaction.rb +++ b/lib/plaid/models/wallet_transaction.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -22,7 +22,7 @@ class WalletTransaction # A reference for the transaction attr_accessor :reference - # The type of the transaction. The supported transaction types that are returned are: `BANK_TRANSFER:` a transaction which credits an e-wallet through an external bank transfer. `PAYOUT:` a transaction which debits an e-wallet by disbursing funds to a counterparty. `PIS_PAY_IN:` a payment which credits an e-wallet through Plaid's Payment Initiation Services (PIS) APIs. For more information see the [Payment Initiation endpoints](https://plaid.com/docs/api/products/payment-initiation/). `REFUND:` a transaction which debits an e-wallet by refunding a previously initated payment made through Plaid's [PIS APIs](https://plaid.com/docs/api/products/payment-initiation/). + # The type of the transaction. The supported transaction types that are returned are: `BANK_TRANSFER:` a transaction which credits an e-wallet through an external bank transfer. `PAYOUT:` a transaction which debits an e-wallet by disbursing funds to a counterparty. `PIS_PAY_IN:` a payment which credits an e-wallet through Plaid's Payment Initiation Services (PIS) APIs. For more information see the [Payment Initiation endpoints](https://plaid.com/docs/api/products/payment-initiation/). `REFUND:` a transaction which debits an e-wallet by refunding a previously initiated payment made through Plaid's [PIS APIs](https://plaid.com/docs/api/products/payment-initiation/). attr_accessor :type attr_accessor :amount @@ -34,6 +34,12 @@ class WalletTransaction # Timestamp when the transaction was created, in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format. attr_accessor :created_at + # The date and time of the last time the `status` was updated, in IS0 8601 format + attr_accessor :last_status_update + + # The payment id that this transaction is associated with, if any. This is present only for transaction types `PIS_PAY_IN` and `REFUND`. + attr_accessor :payment_id + class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -65,7 +71,9 @@ def self.attribute_map :'amount' => :'amount', :'counterparty' => :'counterparty', :'status' => :'status', - :'created_at' => :'created_at' + :'created_at' => :'created_at', + :'last_status_update' => :'last_status_update', + :'payment_id' => :'payment_id' } end @@ -83,13 +91,16 @@ def self.openapi_types :'amount' => :'WalletTransactionAmount', :'counterparty' => :'WalletTransactionCounterparty', :'status' => :'WalletTransactionStatus', - :'created_at' => :'Time' + :'created_at' => :'Time', + :'last_status_update' => :'Time', + :'payment_id' => :'String' } end # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'payment_id' ]) end @@ -135,6 +146,14 @@ def initialize(attributes = {}) if attributes.key?(:'created_at') self.created_at = attributes[:'created_at'] end + + if attributes.key?(:'last_status_update') + self.last_status_update = attributes[:'last_status_update'] + end + + if attributes.key?(:'payment_id') + self.payment_id = attributes[:'payment_id'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -169,6 +188,10 @@ def list_invalid_properties invalid_properties.push('invalid value for "created_at", created_at cannot be nil.') end + if @last_status_update.nil? + invalid_properties.push('invalid value for "last_status_update", last_status_update cannot be nil.') + end + invalid_properties end @@ -184,6 +207,7 @@ def valid? return false if @counterparty.nil? return false if @status.nil? return false if @created_at.nil? + return false if @last_status_update.nil? true end @@ -208,7 +232,9 @@ def ==(o) amount == o.amount && counterparty == o.counterparty && status == o.status && - created_at == o.created_at + created_at == o.created_at && + last_status_update == o.last_status_update && + payment_id == o.payment_id end # @see the `==` method @@ -220,7 +246,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [transaction_id, reference, type, amount, counterparty, status, created_at].hash + [transaction_id, reference, type, amount, counterparty, status, created_at, last_status_update, payment_id].hash end # Builds the object from hash diff --git a/lib/plaid/models/wallet_transaction_amount.rb b/lib/plaid/models/wallet_transaction_amount.rb index 40259e273..2884f4cd0 100644 --- a/lib/plaid/models/wallet_transaction_amount.rb +++ b/lib/plaid/models/wallet_transaction_amount.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/wallet_transaction_counterparty.rb b/lib/plaid/models/wallet_transaction_counterparty.rb index be237601c..c4a9ee3e5 100644 --- a/lib/plaid/models/wallet_transaction_counterparty.rb +++ b/lib/plaid/models/wallet_transaction_counterparty.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/wallet_transaction_counterparty_bacs.rb b/lib/plaid/models/wallet_transaction_counterparty_bacs.rb index 050672924..ded0b1432 100644 --- a/lib/plaid/models/wallet_transaction_counterparty_bacs.rb +++ b/lib/plaid/models/wallet_transaction_counterparty_bacs.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/wallet_transaction_counterparty_international.rb b/lib/plaid/models/wallet_transaction_counterparty_international.rb index 691e17b48..7415e312c 100644 --- a/lib/plaid/models/wallet_transaction_counterparty_international.rb +++ b/lib/plaid/models/wallet_transaction_counterparty_international.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/wallet_transaction_counterparty_numbers.rb b/lib/plaid/models/wallet_transaction_counterparty_numbers.rb index 018122bff..296fcdb0c 100644 --- a/lib/plaid/models/wallet_transaction_counterparty_numbers.rb +++ b/lib/plaid/models/wallet_transaction_counterparty_numbers.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/wallet_transaction_execute_request.rb b/lib/plaid/models/wallet_transaction_execute_request.rb index 1ba4dfc6f..39a7a8d47 100644 --- a/lib/plaid/models/wallet_transaction_execute_request.rb +++ b/lib/plaid/models/wallet_transaction_execute_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/wallet_transaction_execute_response.rb b/lib/plaid/models/wallet_transaction_execute_response.rb index d1f80bff5..17362479b 100644 --- a/lib/plaid/models/wallet_transaction_execute_response.rb +++ b/lib/plaid/models/wallet_transaction_execute_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/wallet_transaction_get_request.rb b/lib/plaid/models/wallet_transaction_get_request.rb index aea56bed5..1944a17ed 100644 --- a/lib/plaid/models/wallet_transaction_get_request.rb +++ b/lib/plaid/models/wallet_transaction_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/wallet_transaction_get_response.rb b/lib/plaid/models/wallet_transaction_get_response.rb index ec7706405..69905219d 100644 --- a/lib/plaid/models/wallet_transaction_get_response.rb +++ b/lib/plaid/models/wallet_transaction_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -22,7 +22,7 @@ class WalletTransactionGetResponse # A reference for the transaction attr_accessor :reference - # The type of the transaction. The supported transaction types that are returned are: `BANK_TRANSFER:` a transaction which credits an e-wallet through an external bank transfer. `PAYOUT:` a transaction which debits an e-wallet by disbursing funds to a counterparty. `PIS_PAY_IN:` a payment which credits an e-wallet through Plaid's Payment Initiation Services (PIS) APIs. For more information see the [Payment Initiation endpoints](https://plaid.com/docs/api/products/payment-initiation/). `REFUND:` a transaction which debits an e-wallet by refunding a previously initated payment made through Plaid's [PIS APIs](https://plaid.com/docs/api/products/payment-initiation/). + # The type of the transaction. The supported transaction types that are returned are: `BANK_TRANSFER:` a transaction which credits an e-wallet through an external bank transfer. `PAYOUT:` a transaction which debits an e-wallet by disbursing funds to a counterparty. `PIS_PAY_IN:` a payment which credits an e-wallet through Plaid's Payment Initiation Services (PIS) APIs. For more information see the [Payment Initiation endpoints](https://plaid.com/docs/api/products/payment-initiation/). `REFUND:` a transaction which debits an e-wallet by refunding a previously initiated payment made through Plaid's [PIS APIs](https://plaid.com/docs/api/products/payment-initiation/). attr_accessor :type attr_accessor :amount @@ -34,6 +34,12 @@ class WalletTransactionGetResponse # Timestamp when the transaction was created, in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format. attr_accessor :created_at + # The date and time of the last time the `status` was updated, in IS0 8601 format + attr_accessor :last_status_update + + # The payment id that this transaction is associated with, if any. This is present only for transaction types `PIS_PAY_IN` and `REFUND`. + attr_accessor :payment_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 @@ -69,6 +75,8 @@ def self.attribute_map :'counterparty' => :'counterparty', :'status' => :'status', :'created_at' => :'created_at', + :'last_status_update' => :'last_status_update', + :'payment_id' => :'payment_id', :'request_id' => :'request_id' } end @@ -88,6 +96,8 @@ def self.openapi_types :'counterparty' => :'WalletTransactionCounterparty', :'status' => :'WalletTransactionStatus', :'created_at' => :'Time', + :'last_status_update' => :'Time', + :'payment_id' => :'String', :'request_id' => :'String' } end @@ -95,6 +105,7 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'payment_id', ]) end @@ -149,6 +160,14 @@ def initialize(attributes = {}) self.created_at = attributes[:'created_at'] end + if attributes.key?(:'last_status_update') + self.last_status_update = attributes[:'last_status_update'] + end + + if attributes.key?(:'payment_id') + self.payment_id = attributes[:'payment_id'] + end + if attributes.key?(:'request_id') self.request_id = attributes[:'request_id'] end @@ -186,6 +205,10 @@ def list_invalid_properties invalid_properties.push('invalid value for "created_at", created_at cannot be nil.') end + if @last_status_update.nil? + invalid_properties.push('invalid value for "last_status_update", last_status_update cannot be nil.') + end + if @request_id.nil? invalid_properties.push('invalid value for "request_id", request_id cannot be nil.') end @@ -205,6 +228,7 @@ def valid? return false if @counterparty.nil? return false if @status.nil? return false if @created_at.nil? + return false if @last_status_update.nil? return false if @request_id.nil? true end @@ -231,6 +255,8 @@ def ==(o) counterparty == o.counterparty && status == o.status && created_at == o.created_at && + last_status_update == o.last_status_update && + payment_id == o.payment_id && request_id == o.request_id end @@ -243,7 +269,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [transaction_id, reference, type, amount, counterparty, status, created_at, request_id].hash + [transaction_id, reference, type, amount, counterparty, status, created_at, last_status_update, payment_id, request_id].hash end # Builds the object from hash diff --git a/lib/plaid/models/wallet_transaction_list_request.rb b/lib/plaid/models/wallet_transaction_list_request.rb new file mode 100644 index 000000000..eb815090a --- /dev/null +++ b/lib/plaid/models/wallet_transaction_list_request.rb @@ -0,0 +1,341 @@ +=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.205.3 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # WalletTransactionListRequest defines the request schema for `/wallet/transaction/list` + class WalletTransactionListRequest + # 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 ID of the e-wallet to fetch transactions from + attr_accessor :wallet_id + + # A base64 value representing the latest transaction that has already been requested. Set this to `next_cursor` received from the previous `/wallet/transaction/list` request. If provided, the response will only contain transactions created before that transaction. If omitted, the response will contain transactions starting from the most recent, and in descending order by the `created_at` time. + attr_accessor :cursor + + # The number of transactions to fetch + attr_accessor :count + + attr_accessor :options + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'client_id' => :'client_id', + :'secret' => :'secret', + :'wallet_id' => :'wallet_id', + :'cursor' => :'cursor', + :'count' => :'count', + :'options' => :'options' + } + 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', + :'wallet_id' => :'String', + :'cursor' => :'String', + :'count' => :'Integer', + :'options' => :'WalletTransactionListRequestOptions' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'options' + ]) + 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::WalletTransactionListRequest` 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::WalletTransactionListRequest`. 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?(:'wallet_id') + self.wallet_id = attributes[:'wallet_id'] + end + + if attributes.key?(:'cursor') + self.cursor = attributes[:'cursor'] + end + + if attributes.key?(:'count') + self.count = attributes[:'count'] + else + self.count = 10 + end + + if attributes.key?(:'options') + self.options = attributes[:'options'] + 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 @wallet_id.nil? + invalid_properties.push('invalid value for "wallet_id", wallet_id cannot be nil.') + end + + if @wallet_id.to_s.length < 1 + invalid_properties.push('invalid value for "wallet_id", the character length must be great than or equal to 1.') + end + + + if !@cursor.nil? && @cursor.to_s.length > 256 + invalid_properties.push('invalid value for "cursor", the character length must be smaller than or equal to 256.') + end + + + if !@count.nil? && @count > 200 + invalid_properties.push('invalid value for "count", must be smaller than or equal to 200.') + end + + if !@count.nil? && @count < 1 + invalid_properties.push('invalid value for "count", must be greater than or equal to 1.') + end + + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + return false if @wallet_id.nil? + return false if @wallet_id.to_s.length < 1 + return false if !@cursor.nil? && @cursor.to_s.length > 256 + return false if !@count.nil? && @count > 200 + return false if !@count.nil? && @count < 1 + true + end + + # Custom attribute writer method with validation + # @param [Object] wallet_id Value to be assigned + def wallet_id=(wallet_id) + if wallet_id.nil? + fail ArgumentError, 'wallet_id cannot be nil' + end + + if wallet_id.to_s.length < 1 + fail ArgumentError, 'invalid value for "wallet_id", the character length must be great than or equal to 1.' + end + + + @wallet_id = wallet_id + end + + # Custom attribute writer method with validation + # @param [Object] cursor Value to be assigned + def cursor=(cursor) + if !cursor.nil? && cursor.to_s.length > 256 + fail ArgumentError, 'invalid value for "cursor", the character length must be smaller than or equal to 256.' + end + + + @cursor = cursor + end + + # Custom attribute writer method with validation + # @param [Object] count Value to be assigned + def count=(count) + if !count.nil? && count > 200 + fail ArgumentError, 'invalid value for "count", must be smaller than or equal to 200.' + end + + if !count.nil? && count < 1 + fail ArgumentError, 'invalid value for "count", must be greater than or equal to 1.' + end + + + @count = count + 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 && + wallet_id == o.wallet_id && + cursor == o.cursor && + count == o.count && + options == o.options + 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, wallet_id, cursor, count, options].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_list_request_options.rb b/lib/plaid/models/wallet_transaction_list_request_options.rb new file mode 100644 index 000000000..e113a3b39 --- /dev/null +++ b/lib/plaid/models/wallet_transaction_list_request_options.rb @@ -0,0 +1,230 @@ +=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.205.3 + +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.1.1 + +=end + +require 'date' +require 'time' + +module Plaid + # Additional wallet transaction options + class WalletTransactionListRequestOptions + # Timestamp in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format (YYYY-MM-DDThh:mm:ssZ) for filtering transactions, inclusive of the provided date. + attr_accessor :start_time + + # Timestamp in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format (YYYY-MM-DDThh:mm:ssZ) for filtering transactions, inclusive of the provided date. + attr_accessor :end_time + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'start_time' => :'start_time', + :'end_time' => :'end_time' + } + 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 + { + :'start_time' => :'Time', + :'end_time' => :'Time' + } + 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::WalletTransactionListRequestOptions` 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::WalletTransactionListRequestOptions`. 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?(:'start_time') + self.start_time = attributes[:'start_time'] + end + + if attributes.key?(:'end_time') + self.end_time = attributes[:'end_time'] + 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 && + start_time == o.start_time && + end_time == o.end_time + 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 + [start_time, end_time].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_transactions_list_response.rb b/lib/plaid/models/wallet_transaction_list_response.rb similarity index 94% rename from lib/plaid/models/wallet_transactions_list_response.rb rename to lib/plaid/models/wallet_transaction_list_response.rb index 295a9b3b7..e5d6e3276 100644 --- a/lib/plaid/models/wallet_transactions_list_response.rb +++ b/lib/plaid/models/wallet_transaction_list_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -14,8 +14,8 @@ require 'time' module Plaid - # WalletTransactionsListResponse defines the response schema for `/wallet/transactions/list` - class WalletTransactionsListResponse + # WalletTransactionListResponse defines the response schema for `/wallet/transaction/list` + class WalletTransactionListResponse # An array of transactions of an e-wallet, associated with the given `wallet_id` attr_accessor :transactions @@ -58,13 +58,13 @@ 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::WalletTransactionsListResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Plaid::WalletTransactionListResponse` 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::WalletTransactionsListResponse`. 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::WalletTransactionListResponse`. 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 } diff --git a/lib/plaid/models/wallet_transaction_status.rb b/lib/plaid/models/wallet_transaction_status.rb index 9d98b328b..9bf4a68c0 100644 --- a/lib/plaid/models/wallet_transaction_status.rb +++ b/lib/plaid/models/wallet_transaction_status.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/wallet_transaction_status_update_webhook.rb b/lib/plaid/models/wallet_transaction_status_update_webhook.rb index c8d41dadc..ba9f5ff09 100644 --- a/lib/plaid/models/wallet_transaction_status_update_webhook.rb +++ b/lib/plaid/models/wallet_transaction_status_update_webhook.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/wallet_transactions_list_request.rb b/lib/plaid/models/wallet_transactions_list_request.rb index c216e9b68..f66b25b28 100644 --- a/lib/plaid/models/wallet_transactions_list_request.rb +++ b/lib/plaid/models/wallet_transactions_list_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -14,7 +14,7 @@ require 'time' module Plaid - # WalletTransactionsListRequest defines the request schema for `/wallet/transactions/list` + # WalletTransactionListRequest defines the request schema for `/wallet/transaction/list` class WalletTransactionsListRequest # 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 @@ -25,12 +25,14 @@ class WalletTransactionsListRequest # The ID of the e-wallet to fetch transactions from attr_accessor :wallet_id - # A base64 value representing the latest transaction that has already been requested. Set this to `next_cursor` received from the previous `/wallet/transactions/list` request. If provided, the response will only contain transactions created before that transaction. If omitted, the response will contain transactions starting from the most recent, and in descending order by the `created_at` time. + # A base64 value representing the latest transaction that has already been requested. Set this to `next_cursor` received from the previous `/wallet/transaction/list` request. If provided, the response will only contain transactions created before that transaction. If omitted, the response will contain transactions starting from the most recent, and in descending order by the `created_at` time. attr_accessor :cursor # The number of transactions to fetch attr_accessor :count + attr_accessor :options + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -38,7 +40,8 @@ def self.attribute_map :'secret' => :'secret', :'wallet_id' => :'wallet_id', :'cursor' => :'cursor', - :'count' => :'count' + :'count' => :'count', + :'options' => :'options' } end @@ -54,13 +57,15 @@ def self.openapi_types :'secret' => :'String', :'wallet_id' => :'String', :'cursor' => :'String', - :'count' => :'Integer' + :'count' => :'Integer', + :'options' => :'WalletTransactionListRequestOptions' } end # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'options' ]) end @@ -100,6 +105,10 @@ def initialize(attributes = {}) else self.count = 10 end + + if attributes.key?(:'options') + self.options = attributes[:'options'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -193,7 +202,8 @@ def ==(o) secret == o.secret && wallet_id == o.wallet_id && cursor == o.cursor && - count == o.count + count == o.count && + options == o.options end # @see the `==` method @@ -205,7 +215,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [client_id, secret, wallet_id, cursor, count].hash + [client_id, secret, wallet_id, cursor, count, options].hash end # Builds the object from hash diff --git a/lib/plaid/models/warning.rb b/lib/plaid/models/warning.rb index 40a0ca5a8..2b29568e8 100644 --- a/lib/plaid/models/warning.rb +++ b/lib/plaid/models/warning.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_audit_trail.rb b/lib/plaid/models/watchlist_screening_audit_trail.rb index 68f421fcb..e6f6966cd 100644 --- a/lib/plaid/models/watchlist_screening_audit_trail.rb +++ b/lib/plaid/models/watchlist_screening_audit_trail.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_document.rb b/lib/plaid/models/watchlist_screening_document.rb index 7866692f9..9c8ed15aa 100644 --- a/lib/plaid/models/watchlist_screening_document.rb +++ b/lib/plaid/models/watchlist_screening_document.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_document_type.rb b/lib/plaid/models/watchlist_screening_document_type.rb index 6f405ed71..5ae940478 100644 --- a/lib/plaid/models/watchlist_screening_document_type.rb +++ b/lib/plaid/models/watchlist_screening_document_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_entity_create_request.rb b/lib/plaid/models/watchlist_screening_entity_create_request.rb index 6e0b3fd71..35fcfd32b 100644 --- a/lib/plaid/models/watchlist_screening_entity_create_request.rb +++ b/lib/plaid/models/watchlist_screening_entity_create_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_entity_create_response.rb b/lib/plaid/models/watchlist_screening_entity_create_response.rb index ace1f7685..fba2a700b 100644 --- a/lib/plaid/models/watchlist_screening_entity_create_response.rb +++ b/lib/plaid/models/watchlist_screening_entity_create_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_entity_get_request.rb b/lib/plaid/models/watchlist_screening_entity_get_request.rb index 220daeada..bed2cf4b6 100644 --- a/lib/plaid/models/watchlist_screening_entity_get_request.rb +++ b/lib/plaid/models/watchlist_screening_entity_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_entity_get_response.rb b/lib/plaid/models/watchlist_screening_entity_get_response.rb index 019f2bd94..0a101b873 100644 --- a/lib/plaid/models/watchlist_screening_entity_get_response.rb +++ b/lib/plaid/models/watchlist_screening_entity_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_entity_history_list_request.rb b/lib/plaid/models/watchlist_screening_entity_history_list_request.rb index afc0c5668..929a06832 100644 --- a/lib/plaid/models/watchlist_screening_entity_history_list_request.rb +++ b/lib/plaid/models/watchlist_screening_entity_history_list_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_entity_history_list_response.rb b/lib/plaid/models/watchlist_screening_entity_history_list_response.rb index eb40a233d..c4886f02d 100644 --- a/lib/plaid/models/watchlist_screening_entity_history_list_response.rb +++ b/lib/plaid/models/watchlist_screening_entity_history_list_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_entity_hit_list_request.rb b/lib/plaid/models/watchlist_screening_entity_hit_list_request.rb index 268519d4f..57d04d386 100644 --- a/lib/plaid/models/watchlist_screening_entity_hit_list_request.rb +++ b/lib/plaid/models/watchlist_screening_entity_hit_list_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_entity_hit_list_response.rb b/lib/plaid/models/watchlist_screening_entity_hit_list_response.rb index 9d35204f4..150ff642e 100644 --- a/lib/plaid/models/watchlist_screening_entity_hit_list_response.rb +++ b/lib/plaid/models/watchlist_screening_entity_hit_list_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_entity_list_request.rb b/lib/plaid/models/watchlist_screening_entity_list_request.rb index e8c86520b..fbacb8d74 100644 --- a/lib/plaid/models/watchlist_screening_entity_list_request.rb +++ b/lib/plaid/models/watchlist_screening_entity_list_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_entity_list_response.rb b/lib/plaid/models/watchlist_screening_entity_list_response.rb index 38f189bc7..514778382 100644 --- a/lib/plaid/models/watchlist_screening_entity_list_response.rb +++ b/lib/plaid/models/watchlist_screening_entity_list_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_entity_program_get_request.rb b/lib/plaid/models/watchlist_screening_entity_program_get_request.rb index c2317d6f5..d3153cc0f 100644 --- a/lib/plaid/models/watchlist_screening_entity_program_get_request.rb +++ b/lib/plaid/models/watchlist_screening_entity_program_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_entity_program_get_response.rb b/lib/plaid/models/watchlist_screening_entity_program_get_response.rb index 7ca6905d7..9d7a7f5a2 100644 --- a/lib/plaid/models/watchlist_screening_entity_program_get_response.rb +++ b/lib/plaid/models/watchlist_screening_entity_program_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_entity_program_list_request.rb b/lib/plaid/models/watchlist_screening_entity_program_list_request.rb index b3729ffb4..e75089eeb 100644 --- a/lib/plaid/models/watchlist_screening_entity_program_list_request.rb +++ b/lib/plaid/models/watchlist_screening_entity_program_list_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_entity_program_list_response.rb b/lib/plaid/models/watchlist_screening_entity_program_list_response.rb index 6b0da2f08..90ac7c3c4 100644 --- a/lib/plaid/models/watchlist_screening_entity_program_list_response.rb +++ b/lib/plaid/models/watchlist_screening_entity_program_list_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_entity_review_create_request.rb b/lib/plaid/models/watchlist_screening_entity_review_create_request.rb index efcbe622b..4c677bade 100644 --- a/lib/plaid/models/watchlist_screening_entity_review_create_request.rb +++ b/lib/plaid/models/watchlist_screening_entity_review_create_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_entity_review_create_response.rb b/lib/plaid/models/watchlist_screening_entity_review_create_response.rb index 4671e2625..c4f35f0a8 100644 --- a/lib/plaid/models/watchlist_screening_entity_review_create_response.rb +++ b/lib/plaid/models/watchlist_screening_entity_review_create_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_entity_review_list_request.rb b/lib/plaid/models/watchlist_screening_entity_review_list_request.rb index b98e7de54..b2e871f0e 100644 --- a/lib/plaid/models/watchlist_screening_entity_review_list_request.rb +++ b/lib/plaid/models/watchlist_screening_entity_review_list_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_entity_review_list_response.rb b/lib/plaid/models/watchlist_screening_entity_review_list_response.rb index 3a4f436b9..bf5c30700 100644 --- a/lib/plaid/models/watchlist_screening_entity_review_list_response.rb +++ b/lib/plaid/models/watchlist_screening_entity_review_list_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_entity_update_request.rb b/lib/plaid/models/watchlist_screening_entity_update_request.rb index 8cec6780a..dcb4feaad 100644 --- a/lib/plaid/models/watchlist_screening_entity_update_request.rb +++ b/lib/plaid/models/watchlist_screening_entity_update_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_entity_update_request_resettable_field.rb b/lib/plaid/models/watchlist_screening_entity_update_request_resettable_field.rb index c4d1301e1..6d3f63c59 100644 --- a/lib/plaid/models/watchlist_screening_entity_update_request_resettable_field.rb +++ b/lib/plaid/models/watchlist_screening_entity_update_request_resettable_field.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_entity_update_response.rb b/lib/plaid/models/watchlist_screening_entity_update_response.rb index 13eb0efa8..2bbc374c9 100644 --- a/lib/plaid/models/watchlist_screening_entity_update_response.rb +++ b/lib/plaid/models/watchlist_screening_entity_update_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_hit.rb b/lib/plaid/models/watchlist_screening_hit.rb index 61c493c8c..27dbb5ec7 100644 --- a/lib/plaid/models/watchlist_screening_hit.rb +++ b/lib/plaid/models/watchlist_screening_hit.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_hit_locations.rb b/lib/plaid/models/watchlist_screening_hit_locations.rb index 09c212790..7f1970c87 100644 --- a/lib/plaid/models/watchlist_screening_hit_locations.rb +++ b/lib/plaid/models/watchlist_screening_hit_locations.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_hit_status.rb b/lib/plaid/models/watchlist_screening_hit_status.rb index aa528689a..c4c3d512b 100644 --- a/lib/plaid/models/watchlist_screening_hit_status.rb +++ b/lib/plaid/models/watchlist_screening_hit_status.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_individual.rb b/lib/plaid/models/watchlist_screening_individual.rb index ba10f713b..106581467 100644 --- a/lib/plaid/models/watchlist_screening_individual.rb +++ b/lib/plaid/models/watchlist_screening_individual.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_individual_create_request.rb b/lib/plaid/models/watchlist_screening_individual_create_request.rb index 389f3e0ce..ad834ef27 100644 --- a/lib/plaid/models/watchlist_screening_individual_create_request.rb +++ b/lib/plaid/models/watchlist_screening_individual_create_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_individual_create_response.rb b/lib/plaid/models/watchlist_screening_individual_create_response.rb index 510f56d2c..320f0918e 100644 --- a/lib/plaid/models/watchlist_screening_individual_create_response.rb +++ b/lib/plaid/models/watchlist_screening_individual_create_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_individual_get_request.rb b/lib/plaid/models/watchlist_screening_individual_get_request.rb index 2c92520c6..8cf97882d 100644 --- a/lib/plaid/models/watchlist_screening_individual_get_request.rb +++ b/lib/plaid/models/watchlist_screening_individual_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_individual_get_response.rb b/lib/plaid/models/watchlist_screening_individual_get_response.rb index 6731f17b3..8296e0fa6 100644 --- a/lib/plaid/models/watchlist_screening_individual_get_response.rb +++ b/lib/plaid/models/watchlist_screening_individual_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_individual_history_list_request.rb b/lib/plaid/models/watchlist_screening_individual_history_list_request.rb index 2ceecc9d9..ecddbcf86 100644 --- a/lib/plaid/models/watchlist_screening_individual_history_list_request.rb +++ b/lib/plaid/models/watchlist_screening_individual_history_list_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_individual_history_list_response.rb b/lib/plaid/models/watchlist_screening_individual_history_list_response.rb index 120626a8b..1325e5e02 100644 --- a/lib/plaid/models/watchlist_screening_individual_history_list_response.rb +++ b/lib/plaid/models/watchlist_screening_individual_history_list_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_individual_hit_list_request.rb b/lib/plaid/models/watchlist_screening_individual_hit_list_request.rb index 5cd76f9c0..b103a3c61 100644 --- a/lib/plaid/models/watchlist_screening_individual_hit_list_request.rb +++ b/lib/plaid/models/watchlist_screening_individual_hit_list_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_individual_hit_list_response.rb b/lib/plaid/models/watchlist_screening_individual_hit_list_response.rb index 5968e74df..9b7baf126 100644 --- a/lib/plaid/models/watchlist_screening_individual_hit_list_response.rb +++ b/lib/plaid/models/watchlist_screening_individual_hit_list_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_individual_list_request.rb b/lib/plaid/models/watchlist_screening_individual_list_request.rb index 72d2fcd3c..7ec8ec030 100644 --- a/lib/plaid/models/watchlist_screening_individual_list_request.rb +++ b/lib/plaid/models/watchlist_screening_individual_list_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_individual_list_response.rb b/lib/plaid/models/watchlist_screening_individual_list_response.rb index 6a823b8a5..a0df3af28 100644 --- a/lib/plaid/models/watchlist_screening_individual_list_response.rb +++ b/lib/plaid/models/watchlist_screening_individual_list_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_individual_program_get_request.rb b/lib/plaid/models/watchlist_screening_individual_program_get_request.rb index 11f416f3b..92c2f4336 100644 --- a/lib/plaid/models/watchlist_screening_individual_program_get_request.rb +++ b/lib/plaid/models/watchlist_screening_individual_program_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_individual_program_get_response.rb b/lib/plaid/models/watchlist_screening_individual_program_get_response.rb index 3a700ce7f..30a10191f 100644 --- a/lib/plaid/models/watchlist_screening_individual_program_get_response.rb +++ b/lib/plaid/models/watchlist_screening_individual_program_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_individual_program_list_request.rb b/lib/plaid/models/watchlist_screening_individual_program_list_request.rb index ff280606d..a5811f8cc 100644 --- a/lib/plaid/models/watchlist_screening_individual_program_list_request.rb +++ b/lib/plaid/models/watchlist_screening_individual_program_list_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_individual_program_list_response.rb b/lib/plaid/models/watchlist_screening_individual_program_list_response.rb index 7f7b86528..fa5bf6745 100644 --- a/lib/plaid/models/watchlist_screening_individual_program_list_response.rb +++ b/lib/plaid/models/watchlist_screening_individual_program_list_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_individual_review_create_request.rb b/lib/plaid/models/watchlist_screening_individual_review_create_request.rb index 56672870d..2a86eb64a 100644 --- a/lib/plaid/models/watchlist_screening_individual_review_create_request.rb +++ b/lib/plaid/models/watchlist_screening_individual_review_create_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_individual_review_create_response.rb b/lib/plaid/models/watchlist_screening_individual_review_create_response.rb index eb11afa0d..b5851ccdd 100644 --- a/lib/plaid/models/watchlist_screening_individual_review_create_response.rb +++ b/lib/plaid/models/watchlist_screening_individual_review_create_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_individual_review_list_request.rb b/lib/plaid/models/watchlist_screening_individual_review_list_request.rb index e722281c2..84a010061 100644 --- a/lib/plaid/models/watchlist_screening_individual_review_list_request.rb +++ b/lib/plaid/models/watchlist_screening_individual_review_list_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_individual_review_list_response.rb b/lib/plaid/models/watchlist_screening_individual_review_list_response.rb index ed759c135..cf07bb2c7 100644 --- a/lib/plaid/models/watchlist_screening_individual_review_list_response.rb +++ b/lib/plaid/models/watchlist_screening_individual_review_list_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_individual_update_request.rb b/lib/plaid/models/watchlist_screening_individual_update_request.rb index 7e35961a9..b4e5a6aee 100644 --- a/lib/plaid/models/watchlist_screening_individual_update_request.rb +++ b/lib/plaid/models/watchlist_screening_individual_update_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_individual_update_request_resettable_field.rb b/lib/plaid/models/watchlist_screening_individual_update_request_resettable_field.rb index b3c8c7e33..f39cca405 100644 --- a/lib/plaid/models/watchlist_screening_individual_update_request_resettable_field.rb +++ b/lib/plaid/models/watchlist_screening_individual_update_request_resettable_field.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_individual_update_response.rb b/lib/plaid/models/watchlist_screening_individual_update_response.rb index 2ed919438..b08ab5211 100644 --- a/lib/plaid/models/watchlist_screening_individual_update_response.rb +++ b/lib/plaid/models/watchlist_screening_individual_update_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_request_search_terms.rb b/lib/plaid/models/watchlist_screening_request_search_terms.rb index 49ace0713..bac11948e 100644 --- a/lib/plaid/models/watchlist_screening_request_search_terms.rb +++ b/lib/plaid/models/watchlist_screening_request_search_terms.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_review.rb b/lib/plaid/models/watchlist_screening_review.rb index 75052bbda..2a84079e4 100644 --- a/lib/plaid/models/watchlist_screening_review.rb +++ b/lib/plaid/models/watchlist_screening_review.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_search_terms.rb b/lib/plaid/models/watchlist_screening_search_terms.rb index 0ef7913e5..1f042e73e 100644 --- a/lib/plaid/models/watchlist_screening_search_terms.rb +++ b/lib/plaid/models/watchlist_screening_search_terms.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/watchlist_screening_status.rb b/lib/plaid/models/watchlist_screening_status.rb index 535c167c6..2ef2caed3 100644 --- a/lib/plaid/models/watchlist_screening_status.rb +++ b/lib/plaid/models/watchlist_screening_status.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/weak_alias_determination.rb b/lib/plaid/models/weak_alias_determination.rb index 8b3d5f1df..0cb2b2c4c 100644 --- a/lib/plaid/models/weak_alias_determination.rb +++ b/lib/plaid/models/weak_alias_determination.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/webhook_environment_values.rb b/lib/plaid/models/webhook_environment_values.rb index 4ea42a193..dba234a0f 100644 --- a/lib/plaid/models/webhook_environment_values.rb +++ b/lib/plaid/models/webhook_environment_values.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/webhook_type.rb b/lib/plaid/models/webhook_type.rb index 9b67013d8..4e45f378c 100644 --- a/lib/plaid/models/webhook_type.rb +++ b/lib/plaid/models/webhook_type.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/webhook_update_acknowledged_webhook.rb b/lib/plaid/models/webhook_update_acknowledged_webhook.rb index 1f4c1937f..7f17eb177 100644 --- a/lib/plaid/models/webhook_update_acknowledged_webhook.rb +++ b/lib/plaid/models/webhook_update_acknowledged_webhook.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/webhook_verification_key_get_request.rb b/lib/plaid/models/webhook_verification_key_get_request.rb index a46eab75d..29327bd0f 100644 --- a/lib/plaid/models/webhook_verification_key_get_request.rb +++ b/lib/plaid/models/webhook_verification_key_get_request.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/models/webhook_verification_key_get_response.rb b/lib/plaid/models/webhook_verification_key_get_response.rb index 3b623a520..cbc0094cc 100644 --- a/lib/plaid/models/webhook_verification_key_get_response.rb +++ b/lib/plaid/models/webhook_verification_key_get_response.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 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 d014803ec..c300b61b9 100644 --- a/lib/plaid/models/ytd_gross_income_summary_field_number.rb +++ b/lib/plaid/models/ytd_gross_income_summary_field_number.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 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 843b54782..492478813 100644 --- a/lib/plaid/models/ytd_net_income_summary_field_number.rb +++ b/lib/plaid/models/ytd_net_income_summary_field_number.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 diff --git a/lib/plaid/version.rb b/lib/plaid/version.rb index 9b396bda2..3b7fb9727 100644 --- a/lib/plaid/version.rb +++ b/lib/plaid/version.rb @@ -3,7 +3,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 @@ -11,5 +11,5 @@ =end module Plaid - VERSION = '17.0.0' + VERSION = '17.1.0' end diff --git a/plaid.gemspec b/plaid.gemspec index b0734fae4..71079fc56 100644 --- a/plaid.gemspec +++ b/plaid.gemspec @@ -5,7 +5,7 @@ #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.197.3 +The version of the OpenAPI document: 2020-09-14_1.205.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1