apimatic-plaid-sdk 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +28 -0
- data/README.md +192 -0
- data/bin/console +15 -0
- data/lib/plaid/api_helper.rb +10 -0
- data/lib/plaid/apis/accounts_api.rb +70 -0
- data/lib/plaid/apis/application_api.rb +35 -0
- data/lib/plaid/apis/asset_report_api.rb +301 -0
- data/lib/plaid/apis/auth_api.rb +43 -0
- data/lib/plaid/apis/bank_transfer_api.rb +287 -0
- data/lib/plaid/apis/base_api.rb +65 -0
- data/lib/plaid/apis/categories_api.rb +34 -0
- data/lib/plaid/apis/deposit_switch_api.rb +106 -0
- data/lib/plaid/apis/employers_api.rb +40 -0
- data/lib/plaid/apis/identity_api.rb +38 -0
- data/lib/plaid/apis/income_api.rb +220 -0
- data/lib/plaid/apis/institutions_api.rb +92 -0
- data/lib/plaid/apis/investments_api.rb +61 -0
- data/lib/plaid/apis/item_api.rb +267 -0
- data/lib/plaid/apis/liabilities_api.rb +47 -0
- data/lib/plaid/apis/link_api.rb +62 -0
- data/lib/plaid/apis/payment_initiation_api.rb +236 -0
- data/lib/plaid/apis/processor_api.rb +189 -0
- data/lib/plaid/apis/sandbox_api.rb +302 -0
- data/lib/plaid/apis/signal_api.rb +97 -0
- data/lib/plaid/apis/transactions_api.rb +111 -0
- data/lib/plaid/apis/transfer_api.rb +214 -0
- data/lib/plaid/apis/webhook_verification_key_api.rb +36 -0
- data/lib/plaid/client.rb +208 -0
- data/lib/plaid/configuration.rb +198 -0
- data/lib/plaid/exceptions/api_exception.rb +21 -0
- data/lib/plaid/exceptions/error_error_exception.rb +110 -0
- data/lib/plaid/http/api_response.rb +19 -0
- data/lib/plaid/http/auth/plaid_client_id.rb +52 -0
- data/lib/plaid/http/auth/plaid_secret.rb +52 -0
- data/lib/plaid/http/auth/plaid_version.rb +52 -0
- data/lib/plaid/http/http_call_back.rb +10 -0
- data/lib/plaid/http/http_method_enum.rb +10 -0
- data/lib/plaid/http/http_request.rb +10 -0
- data/lib/plaid/http/http_response.rb +10 -0
- data/lib/plaid/http/proxy_settings.rb +22 -0
- data/lib/plaid/logging/configuration/api_logging_configuration.rb +186 -0
- data/lib/plaid/logging/sdk_logger.rb +17 -0
- data/lib/plaid/models/account.rb +185 -0
- data/lib/plaid/models/account_access.rb +89 -0
- data/lib/plaid/models/account_assets.rb +258 -0
- data/lib/plaid/models/account_balance.rb +189 -0
- data/lib/plaid/models/account_filter.rb +107 -0
- data/lib/plaid/models/account_filters_response.rb +106 -0
- data/lib/plaid/models/account_identity.rb +206 -0
- data/lib/plaid/models/account_selection_cardinality.rb +44 -0
- data/lib/plaid/models/account_subtype.rb +319 -0
- data/lib/plaid/models/account_subtype1.rb +36 -0
- data/lib/plaid/models/account_type.rb +57 -0
- data/lib/plaid/models/accounts_balance_get_request.rb +108 -0
- data/lib/plaid/models/accounts_balance_get_request_options.rb +111 -0
- data/lib/plaid/models/accounts_get_request.rb +107 -0
- data/lib/plaid/models/accounts_get_request_options.rb +76 -0
- data/lib/plaid/models/accounts_get_response.rb +104 -0
- data/lib/plaid/models/ach_class.rb +99 -0
- data/lib/plaid/models/address.rb +84 -0
- data/lib/plaid/models/address1.rb +116 -0
- data/lib/plaid/models/address2.rb +155 -0
- data/lib/plaid/models/address_data.rb +114 -0
- data/lib/plaid/models/address_data1.rb +120 -0
- data/lib/plaid/models/address_data_nullable.rb +114 -0
- data/lib/plaid/models/address_nullable.rb +84 -0
- data/lib/plaid/models/application.rb +131 -0
- data/lib/plaid/models/application_get_request.rb +98 -0
- data/lib/plaid/models/application_get_response.rb +84 -0
- data/lib/plaid/models/apr.rb +109 -0
- data/lib/plaid/models/apr_type.rb +44 -0
- data/lib/plaid/models/asset_report.rb +145 -0
- data/lib/plaid/models/asset_report_audit_copy_create_request.rb +111 -0
- data/lib/plaid/models/asset_report_audit_copy_create_response.rb +87 -0
- data/lib/plaid/models/asset_report_audit_copy_get_request.rb +101 -0
- data/lib/plaid/models/asset_report_audit_copy_remove_request.rb +101 -0
- data/lib/plaid/models/asset_report_audit_copy_remove_response.rb +85 -0
- data/lib/plaid/models/asset_report_create_request.rb +125 -0
- data/lib/plaid/models/asset_report_create_request_options.rb +104 -0
- data/lib/plaid/models/asset_report_create_response.rb +100 -0
- data/lib/plaid/models/asset_report_filter_request.rb +111 -0
- data/lib/plaid/models/asset_report_filter_response.rb +100 -0
- data/lib/plaid/models/asset_report_get_request.rb +112 -0
- data/lib/plaid/models/asset_report_get_response.rb +103 -0
- data/lib/plaid/models/asset_report_item.rb +130 -0
- data/lib/plaid/models/asset_report_pdf_get_request.rb +101 -0
- data/lib/plaid/models/asset_report_refresh_request.rb +127 -0
- data/lib/plaid/models/asset_report_refresh_request_options.rb +104 -0
- data/lib/plaid/models/asset_report_refresh_response.rb +100 -0
- data/lib/plaid/models/asset_report_remove_request.rb +101 -0
- data/lib/plaid/models/asset_report_remove_response.rb +85 -0
- data/lib/plaid/models/asset_report_transaction.rb +296 -0
- data/lib/plaid/models/asset_report_user.rb +153 -0
- data/lib/plaid/models/assets_error_webhook.rb +107 -0
- data/lib/plaid/models/assets_product_ready_webhook.rb +97 -0
- data/lib/plaid/models/auth_get_numbers.rb +141 -0
- data/lib/plaid/models/auth_get_request.rb +107 -0
- data/lib/plaid/models/auth_get_request_options.rb +78 -0
- data/lib/plaid/models/auth_get_response.rb +116 -0
- data/lib/plaid/models/auth_metadata.rb +77 -0
- data/lib/plaid/models/auth_supported_methods.rb +94 -0
- data/lib/plaid/models/automatically_verified_webhook.rb +102 -0
- data/lib/plaid/models/available_balance.rb +39 -0
- data/lib/plaid/models/bank_initiated_return_risk.rb +96 -0
- data/lib/plaid/models/bank_transfer.rb +263 -0
- data/lib/plaid/models/bank_transfer_balance.rb +85 -0
- data/lib/plaid/models/bank_transfer_balance_get_request.rb +103 -0
- data/lib/plaid/models/bank_transfer_balance_get_response.rb +97 -0
- data/lib/plaid/models/bank_transfer_cancel_request.rb +99 -0
- data/lib/plaid/models/bank_transfer_cancel_response.rb +76 -0
- data/lib/plaid/models/bank_transfer_create_request.rb +254 -0
- data/lib/plaid/models/bank_transfer_create_response.rb +84 -0
- data/lib/plaid/models/bank_transfer_direction.rb +37 -0
- data/lib/plaid/models/bank_transfer_direction1.rb +37 -0
- data/lib/plaid/models/bank_transfer_event.rb +211 -0
- data/lib/plaid/models/bank_transfer_event_list_request.rb +229 -0
- data/lib/plaid/models/bank_transfer_event_list_response.rb +94 -0
- data/lib/plaid/models/bank_transfer_event_sync_request.rb +110 -0
- data/lib/plaid/models/bank_transfer_event_sync_response.rb +94 -0
- data/lib/plaid/models/bank_transfer_event_type.rb +63 -0
- data/lib/plaid/models/bank_transfer_failure.rb +93 -0
- data/lib/plaid/models/bank_transfer_get_request.rb +99 -0
- data/lib/plaid/models/bank_transfer_get_response.rb +84 -0
- data/lib/plaid/models/bank_transfer_list_request.rb +175 -0
- data/lib/plaid/models/bank_transfer_list_response.rb +93 -0
- data/lib/plaid/models/bank_transfer_migrate_account_request.rb +117 -0
- data/lib/plaid/models/bank_transfer_migrate_account_response.rb +93 -0
- data/lib/plaid/models/bank_transfer_network.rb +41 -0
- data/lib/plaid/models/bank_transfer_receiver_details.rb +79 -0
- data/lib/plaid/models/bank_transfer_status.rb +48 -0
- data/lib/plaid/models/bank_transfer_sweep.rb +129 -0
- data/lib/plaid/models/bank_transfer_sweep_account.rb +84 -0
- data/lib/plaid/models/bank_transfer_sweep_get_request.rb +113 -0
- data/lib/plaid/models/bank_transfer_sweep_get_response.rb +85 -0
- data/lib/plaid/models/bank_transfer_sweep_list_request.rb +164 -0
- data/lib/plaid/models/bank_transfer_sweep_list_response.rb +94 -0
- data/lib/plaid/models/bank_transfer_type.rb +38 -0
- data/lib/plaid/models/bank_transfer_type1.rb +38 -0
- data/lib/plaid/models/bank_transfer_user.rb +100 -0
- data/lib/plaid/models/bank_transfers_events_update_webhook.rb +83 -0
- data/lib/plaid/models/base_model.rb +110 -0
- data/lib/plaid/models/branch.rb +49 -0
- data/lib/plaid/models/buy_type.rb +165 -0
- data/lib/plaid/models/canonical_description.rb +92 -0
- data/lib/plaid/models/cash_type.rb +305 -0
- data/lib/plaid/models/categories_get_response.rb +93 -0
- data/lib/plaid/models/category.rb +93 -0
- data/lib/plaid/models/cause.rb +88 -0
- data/lib/plaid/models/code.rb +56 -0
- data/lib/plaid/models/confidence.rb +45 -0
- data/lib/plaid/models/connected_application.rb +177 -0
- data/lib/plaid/models/country_code.rb +56 -0
- data/lib/plaid/models/country_code1.rb +36 -0
- data/lib/plaid/models/credit.rb +80 -0
- data/lib/plaid/models/credit_account.rb +83 -0
- data/lib/plaid/models/credit_card_liability.rb +164 -0
- data/lib/plaid/models/credit_filter.rb +78 -0
- data/lib/plaid/models/currency.rb +37 -0
- data/lib/plaid/models/customer_initiated_return_risk.rb +100 -0
- data/lib/plaid/models/decision.rb +48 -0
- data/lib/plaid/models/deductions.rb +103 -0
- data/lib/plaid/models/default_update_webhook.rb +119 -0
- data/lib/plaid/models/deposit_switch_address_data.rb +110 -0
- data/lib/plaid/models/deposit_switch_alt_create_request.rb +132 -0
- data/lib/plaid/models/deposit_switch_alt_create_response.rb +87 -0
- data/lib/plaid/models/deposit_switch_create_request.rb +133 -0
- data/lib/plaid/models/deposit_switch_create_request_options.rb +99 -0
- data/lib/plaid/models/deposit_switch_create_response.rb +87 -0
- data/lib/plaid/models/deposit_switch_get_request.rb +99 -0
- data/lib/plaid/models/deposit_switch_get_response.rb +277 -0
- data/lib/plaid/models/deposit_switch_state_update_webhook.rb +116 -0
- data/lib/plaid/models/deposit_switch_target_account.rb +106 -0
- data/lib/plaid/models/deposit_switch_target_user.rb +121 -0
- data/lib/plaid/models/deposit_switch_token_create_request.rb +100 -0
- data/lib/plaid/models/deposit_switch_token_create_response.rb +101 -0
- data/lib/plaid/models/depository.rb +80 -0
- data/lib/plaid/models/depository_account.rb +147 -0
- data/lib/plaid/models/depository_filter.rb +78 -0
- data/lib/plaid/models/distribution_details.rb +126 -0
- data/lib/plaid/models/document_metadata.rb +96 -0
- data/lib/plaid/models/earnings.rb +104 -0
- data/lib/plaid/models/earnings_total.rb +133 -0
- data/lib/plaid/models/email.rb +91 -0
- data/lib/plaid/models/employee.rb +107 -0
- data/lib/plaid/models/employee2.rb +85 -0
- data/lib/plaid/models/employee_income_summary_field_string.rb +90 -0
- data/lib/plaid/models/employer.rb +102 -0
- data/lib/plaid/models/employer2.rb +86 -0
- data/lib/plaid/models/employer3.rb +74 -0
- data/lib/plaid/models/employer_income_summary_field_string.rb +90 -0
- data/lib/plaid/models/employers_search_request.rb +107 -0
- data/lib/plaid/models/employers_search_response.rb +93 -0
- data/lib/plaid/models/employment_details.rb +88 -0
- data/lib/plaid/models/error.rb +172 -0
- data/lib/plaid/models/error_type.rb +76 -0
- data/lib/plaid/models/external_payment_refund_details.rb +92 -0
- data/lib/plaid/models/external_payment_schedule_base.rb +147 -0
- data/lib/plaid/models/external_payment_schedule_get.rb +140 -0
- data/lib/plaid/models/external_payment_schedule_request.rb +144 -0
- data/lib/plaid/models/fee_type.rb +287 -0
- data/lib/plaid/models/health_incident.rb +130 -0
- data/lib/plaid/models/historical_balance.rb +118 -0
- data/lib/plaid/models/historical_update_webhook.rb +124 -0
- data/lib/plaid/models/holding.rb +169 -0
- data/lib/plaid/models/holdings_default_update_webhook.rb +129 -0
- data/lib/plaid/models/holdings_override.rb +133 -0
- data/lib/plaid/models/identity_get_request.rb +107 -0
- data/lib/plaid/models/identity_get_request_options.rb +78 -0
- data/lib/plaid/models/identity_get_response.rb +101 -0
- data/lib/plaid/models/incident_update.rb +106 -0
- data/lib/plaid/models/income_breakdown.rb +106 -0
- data/lib/plaid/models/income_override.rb +84 -0
- data/lib/plaid/models/income_summary.rb +137 -0
- data/lib/plaid/models/income_summary_field_number.rb +90 -0
- data/lib/plaid/models/income_summary_field_string.rb +90 -0
- data/lib/plaid/models/income_verification_create_request.rb +99 -0
- data/lib/plaid/models/income_verification_create_response.rb +88 -0
- data/lib/plaid/models/income_verification_documents_download_request.rb +114 -0
- data/lib/plaid/models/income_verification_documents_download_response.rb +73 -0
- data/lib/plaid/models/income_verification_paystub_get_request.rb +114 -0
- data/lib/plaid/models/income_verification_paystub_get_response.rb +100 -0
- data/lib/plaid/models/income_verification_paystubs_get_request.rb +114 -0
- data/lib/plaid/models/income_verification_paystubs_get_response.rb +133 -0
- data/lib/plaid/models/income_verification_precheck_employer.rb +88 -0
- data/lib/plaid/models/income_verification_precheck_military_info.rb +90 -0
- data/lib/plaid/models/income_verification_precheck_request.rb +141 -0
- data/lib/plaid/models/income_verification_precheck_response.rb +101 -0
- data/lib/plaid/models/income_verification_precheck_user.rb +110 -0
- data/lib/plaid/models/income_verification_refresh_request.rb +114 -0
- data/lib/plaid/models/income_verification_refresh_response.rb +90 -0
- data/lib/plaid/models/income_verification_status_webhook.rb +117 -0
- data/lib/plaid/models/income_verification_summary_get_request.rb +114 -0
- data/lib/plaid/models/income_verification_summary_get_response.rb +109 -0
- data/lib/plaid/models/income_verification_taxforms_get_request.rb +114 -0
- data/lib/plaid/models/income_verification_taxforms_get_response.rb +129 -0
- data/lib/plaid/models/income_verification_webhook_status.rb +72 -0
- data/lib/plaid/models/inflow_model.rb +136 -0
- data/lib/plaid/models/initial_update_webhook.rb +121 -0
- data/lib/plaid/models/institution.rb +213 -0
- data/lib/plaid/models/institution_status.rb +211 -0
- data/lib/plaid/models/institutions_get_by_id_request.rb +120 -0
- data/lib/plaid/models/institutions_get_by_id_request_options.rb +131 -0
- data/lib/plaid/models/institutions_get_by_id_response.rb +85 -0
- data/lib/plaid/models/institutions_get_request.rb +125 -0
- data/lib/plaid/models/institutions_get_request_options.rb +154 -0
- data/lib/plaid/models/institutions_get_response.rb +102 -0
- data/lib/plaid/models/institutions_search_account_filter.rb +105 -0
- data/lib/plaid/models/institutions_search_payment_initiation_options.rb +77 -0
- data/lib/plaid/models/institutions_search_request.rb +132 -0
- data/lib/plaid/models/institutions_search_request_options.rb +136 -0
- data/lib/plaid/models/institutions_search_response.rb +94 -0
- data/lib/plaid/models/investment.rb +80 -0
- data/lib/plaid/models/investment_account_subtype.rb +501 -0
- data/lib/plaid/models/investment_filter.rb +78 -0
- data/lib/plaid/models/investment_holdings_get_request_options.rb +78 -0
- data/lib/plaid/models/investment_transaction.rb +231 -0
- data/lib/plaid/models/investments_holdings_get_request.rb +109 -0
- data/lib/plaid/models/investments_holdings_get_response.rb +142 -0
- data/lib/plaid/models/investments_transactions_get_request.rb +130 -0
- data/lib/plaid/models/investments_transactions_get_request_options.rb +96 -0
- data/lib/plaid/models/investments_transactions_get_response.rb +156 -0
- data/lib/plaid/models/investments_transactions_override.rb +151 -0
- data/lib/plaid/models/item.rb +173 -0
- data/lib/plaid/models/item_access_token_invalidate_request.rb +98 -0
- data/lib/plaid/models/item_access_token_invalidate_response.rb +86 -0
- data/lib/plaid/models/item_application_list_request.rb +100 -0
- data/lib/plaid/models/item_application_list_response.rb +95 -0
- data/lib/plaid/models/item_application_list_user_auth.rb +93 -0
- data/lib/plaid/models/item_application_scopes_update_request.rb +143 -0
- data/lib/plaid/models/item_application_scopes_update_response.rb +77 -0
- data/lib/plaid/models/item_error_webhook.rb +105 -0
- data/lib/plaid/models/item_get_request.rb +97 -0
- data/lib/plaid/models/item_get_response.rb +95 -0
- data/lib/plaid/models/item_import_request.rb +117 -0
- data/lib/plaid/models/item_import_request_options.rb +76 -0
- data/lib/plaid/models/item_import_request_user_auth.rb +83 -0
- data/lib/plaid/models/item_import_response.rb +84 -0
- data/lib/plaid/models/item_product_ready_webhook.rb +106 -0
- data/lib/plaid/models/item_public_token_create_request.rb +98 -0
- data/lib/plaid/models/item_public_token_create_response.rb +107 -0
- data/lib/plaid/models/item_public_token_exchange_request.rb +99 -0
- data/lib/plaid/models/item_public_token_exchange_response.rb +95 -0
- data/lib/plaid/models/item_remove_request.rb +97 -0
- data/lib/plaid/models/item_remove_response.rb +76 -0
- data/lib/plaid/models/item_status.rb +99 -0
- data/lib/plaid/models/item_status_investments.rb +114 -0
- data/lib/plaid/models/item_status_last_webhook.rb +98 -0
- data/lib/plaid/models/item_status_nullable.rb +99 -0
- data/lib/plaid/models/item_status_transactions.rb +114 -0
- data/lib/plaid/models/item_webhook_update_request.rb +107 -0
- data/lib/plaid/models/item_webhook_update_response.rb +85 -0
- data/lib/plaid/models/jwk_public_key.rb +150 -0
- data/lib/plaid/models/jwt_header.rb +72 -0
- data/lib/plaid/models/liabilities_default_update_webhook.rb +135 -0
- data/lib/plaid/models/liabilities_get_request.rb +108 -0
- data/lib/plaid/models/liabilities_get_request_options.rb +79 -0
- data/lib/plaid/models/liabilities_get_response.rb +111 -0
- data/lib/plaid/models/liabilities_object.rb +121 -0
- data/lib/plaid/models/liability_override.rb +326 -0
- data/lib/plaid/models/link_token_account_filters.rb +120 -0
- data/lib/plaid/models/link_token_create_request.rb +378 -0
- data/lib/plaid/models/link_token_create_request_account_subtypes.rb +118 -0
- data/lib/plaid/models/link_token_create_request_auth.rb +77 -0
- data/lib/plaid/models/link_token_create_request_deposit_switch.rb +77 -0
- data/lib/plaid/models/link_token_create_request_income_verification.rb +94 -0
- data/lib/plaid/models/link_token_create_request_payment_initiation.rb +77 -0
- data/lib/plaid/models/link_token_create_request_update.rb +82 -0
- data/lib/plaid/models/link_token_create_request_user.rb +201 -0
- data/lib/plaid/models/link_token_create_response.rb +107 -0
- data/lib/plaid/models/link_token_eu_config.rb +75 -0
- data/lib/plaid/models/link_token_get_metadata_response.rb +140 -0
- data/lib/plaid/models/link_token_get_request.rb +97 -0
- data/lib/plaid/models/link_token_get_response.rb +132 -0
- data/lib/plaid/models/loan.rb +80 -0
- data/lib/plaid/models/loan_account.rb +173 -0
- data/lib/plaid/models/loan_filter.rb +78 -0
- data/lib/plaid/models/meta.rb +90 -0
- data/lib/plaid/models/mfa.rb +124 -0
- data/lib/plaid/models/mortgage_interest_rate.rb +86 -0
- data/lib/plaid/models/mortgage_liability.rb +295 -0
- data/lib/plaid/models/mortgage_property_address.rb +114 -0
- data/lib/plaid/models/net_pay.rb +96 -0
- data/lib/plaid/models/new_accounts_available_webhook.rb +115 -0
- data/lib/plaid/models/new_payment_status.rb +73 -0
- data/lib/plaid/models/numbers.rb +157 -0
- data/lib/plaid/models/numbers_ach.rb +113 -0
- data/lib/plaid/models/numbers_ach_nullable.rb +112 -0
- data/lib/plaid/models/numbers_bacs.rb +92 -0
- data/lib/plaid/models/numbers_bacs_nullable.rb +91 -0
- data/lib/plaid/models/numbers_eft.rb +101 -0
- data/lib/plaid/models/numbers_eft_nullable.rb +100 -0
- data/lib/plaid/models/numbers_international.rb +91 -0
- data/lib/plaid/models/numbers_international_nullable.rb +90 -0
- data/lib/plaid/models/old_payment_status.rb +73 -0
- data/lib/plaid/models/override_account_type.rb +56 -0
- data/lib/plaid/models/override_accounts.rb +230 -0
- data/lib/plaid/models/owner.rb +141 -0
- data/lib/plaid/models/owner_override.rb +131 -0
- data/lib/plaid/models/pay.rb +88 -0
- data/lib/plaid/models/pay_frequency.rb +90 -0
- data/lib/plaid/models/pay_frequency1.rb +45 -0
- data/lib/plaid/models/pay_period_details.rb +119 -0
- data/lib/plaid/models/payment_amount.rb +84 -0
- data/lib/plaid/models/payment_channel.rb +43 -0
- data/lib/plaid/models/payment_initiation_address.rb +103 -0
- data/lib/plaid/models/payment_initiation_metadata.rb +117 -0
- data/lib/plaid/models/payment_initiation_optional_restriction_bacs.rb +85 -0
- data/lib/plaid/models/payment_initiation_payment.rb +242 -0
- data/lib/plaid/models/payment_initiation_payment_create_request.rb +140 -0
- data/lib/plaid/models/payment_initiation_payment_create_response.rb +95 -0
- data/lib/plaid/models/payment_initiation_payment_get_request.rb +98 -0
- data/lib/plaid/models/payment_initiation_payment_get_response.rb +254 -0
- data/lib/plaid/models/payment_initiation_payment_list_request.rb +124 -0
- data/lib/plaid/models/payment_initiation_payment_list_response.rb +115 -0
- data/lib/plaid/models/payment_initiation_payment_reverse_request.rb +98 -0
- data/lib/plaid/models/payment_initiation_payment_reverse_response.rb +99 -0
- data/lib/plaid/models/payment_initiation_payment_token_create_request.rb +98 -0
- data/lib/plaid/models/payment_initiation_payment_token_create_response.rb +107 -0
- data/lib/plaid/models/payment_initiation_recipient.rb +131 -0
- data/lib/plaid/models/payment_initiation_recipient_create_request.rb +133 -0
- data/lib/plaid/models/payment_initiation_recipient_create_response.rb +85 -0
- data/lib/plaid/models/payment_initiation_recipient_get_request.rb +98 -0
- data/lib/plaid/models/payment_initiation_recipient_get_response.rb +144 -0
- data/lib/plaid/models/payment_initiation_recipient_list_request.rb +89 -0
- data/lib/plaid/models/payment_initiation_recipient_list_response.rb +94 -0
- data/lib/plaid/models/payment_initiation_refund.rb +116 -0
- data/lib/plaid/models/payment_initiation_standing_order_metadata.rb +108 -0
- data/lib/plaid/models/payment_meta.rb +156 -0
- data/lib/plaid/models/payment_options.rb +122 -0
- data/lib/plaid/models/payment_schedule_interval.rb +36 -0
- data/lib/plaid/models/payment_status_update_webhook.rb +234 -0
- data/lib/plaid/models/paystub.rb +186 -0
- data/lib/plaid/models/paystub_deduction.rb +95 -0
- data/lib/plaid/models/paystub_details.rb +127 -0
- data/lib/plaid/models/paystub_override.rb +116 -0
- data/lib/plaid/models/paystub_ytd_details.rb +90 -0
- data/lib/plaid/models/pending_expiration_webhook.rb +112 -0
- data/lib/plaid/models/personal_finance_category.rb +87 -0
- data/lib/plaid/models/personal_finance_category2.rb +83 -0
- data/lib/plaid/models/phone_number.rb +91 -0
- data/lib/plaid/models/processor.rb +116 -0
- data/lib/plaid/models/processor_apex_processor_token_create_request.rb +108 -0
- data/lib/plaid/models/processor_auth_get_request.rb +100 -0
- data/lib/plaid/models/processor_auth_get_response.rb +98 -0
- data/lib/plaid/models/processor_balance_get_request.rb +111 -0
- data/lib/plaid/models/processor_balance_get_request_options.rb +98 -0
- data/lib/plaid/models/processor_balance_get_response.rb +85 -0
- data/lib/plaid/models/processor_bank_transfer_create_request.rb +248 -0
- data/lib/plaid/models/processor_bank_transfer_create_response.rb +84 -0
- data/lib/plaid/models/processor_identity_get_request.rb +101 -0
- data/lib/plaid/models/processor_identity_get_response.rb +85 -0
- data/lib/plaid/models/processor_number.rb +111 -0
- data/lib/plaid/models/processor_stripe_bank_account_token_create_request.rb +108 -0
- data/lib/plaid/models/processor_stripe_bank_account_token_create_response.rb +87 -0
- data/lib/plaid/models/processor_token_create_request.rb +116 -0
- data/lib/plaid/models/processor_token_create_response.rb +87 -0
- data/lib/plaid/models/product_access.rb +112 -0
- data/lib/plaid/models/product_data_type.rb +40 -0
- data/lib/plaid/models/product_status.rb +106 -0
- data/lib/plaid/models/products.rb +86 -0
- data/lib/plaid/models/projected_income_summary_field_number.rb +90 -0
- data/lib/plaid/models/pslf_status.rb +103 -0
- data/lib/plaid/models/recaptcha_required_error.rb +143 -0
- data/lib/plaid/models/recipient_bacs.rb +87 -0
- data/lib/plaid/models/recipient_bacs_nullable.rb +85 -0
- data/lib/plaid/models/refresh_interval.rb +42 -0
- data/lib/plaid/models/requested_scopes.rb +124 -0
- data/lib/plaid/models/sandbox_bank_transfer_fire_webhook_request.rb +97 -0
- data/lib/plaid/models/sandbox_bank_transfer_fire_webhook_response.rb +76 -0
- data/lib/plaid/models/sandbox_bank_transfer_simulate_request.rb +128 -0
- data/lib/plaid/models/sandbox_bank_transfer_simulate_response.rb +76 -0
- data/lib/plaid/models/sandbox_income_fire_webhook_request.rb +125 -0
- data/lib/plaid/models/sandbox_income_fire_webhook_response.rb +77 -0
- data/lib/plaid/models/sandbox_item_fire_webhook_request.rb +109 -0
- data/lib/plaid/models/sandbox_item_fire_webhook_response.rb +85 -0
- data/lib/plaid/models/sandbox_item_reset_login_request.rb +98 -0
- data/lib/plaid/models/sandbox_item_reset_login_response.rb +85 -0
- data/lib/plaid/models/sandbox_item_set_verification_status_request.rb +118 -0
- data/lib/plaid/models/sandbox_item_set_verification_status_response.rb +77 -0
- data/lib/plaid/models/sandbox_oauth_select_accounts_request.rb +83 -0
- data/lib/plaid/models/sandbox_processor_token_create_request.rb +111 -0
- data/lib/plaid/models/sandbox_processor_token_create_request_options.rb +92 -0
- data/lib/plaid/models/sandbox_processor_token_create_response.rb +85 -0
- data/lib/plaid/models/sandbox_public_token_create_request.rb +123 -0
- data/lib/plaid/models/sandbox_public_token_create_request_options.rb +116 -0
- data/lib/plaid/models/sandbox_public_token_create_request_options_transactions.rb +88 -0
- data/lib/plaid/models/sandbox_public_token_create_response.rb +86 -0
- data/lib/plaid/models/sandbox_transfer_simulate_request.rb +124 -0
- data/lib/plaid/models/sandbox_transfer_simulate_response.rb +76 -0
- data/lib/plaid/models/scopes.rb +109 -0
- data/lib/plaid/models/scopes_context.rb +38 -0
- data/lib/plaid/models/scopes_nullable.rb +109 -0
- data/lib/plaid/models/security.rb +252 -0
- data/lib/plaid/models/security_override.rb +131 -0
- data/lib/plaid/models/sell_type.rb +105 -0
- data/lib/plaid/models/sender_bacs_nullable.rb +85 -0
- data/lib/plaid/models/servicer_address_data.rb +117 -0
- data/lib/plaid/models/signal_decision_report_request.rb +110 -0
- data/lib/plaid/models/signal_decision_report_response.rb +77 -0
- data/lib/plaid/models/signal_evaluate_core_attributes.rb +662 -0
- data/lib/plaid/models/signal_evaluate_device.rb +90 -0
- data/lib/plaid/models/signal_evaluate_request.rb +163 -0
- data/lib/plaid/models/signal_evaluate_response.rb +99 -0
- data/lib/plaid/models/signal_evaluate_scores.rb +108 -0
- data/lib/plaid/models/signal_person_name.rb +122 -0
- data/lib/plaid/models/signal_return_report_request.rb +110 -0
- data/lib/plaid/models/signal_return_report_response.rb +77 -0
- data/lib/plaid/models/signal_user.rb +111 -0
- data/lib/plaid/models/standalone_account_type.rb +115 -0
- data/lib/plaid/models/standalone_currency_code_list.rb +86 -0
- data/lib/plaid/models/standalone_investment_transaction_type.rb +119 -0
- data/lib/plaid/models/state.rb +49 -0
- data/lib/plaid/models/status.rb +41 -0
- data/lib/plaid/models/status1.rb +48 -0
- data/lib/plaid/models/status2.rb +49 -0
- data/lib/plaid/models/status3.rb +73 -0
- data/lib/plaid/models/status_breakdown.rb +111 -0
- data/lib/plaid/models/student_loan.rb +367 -0
- data/lib/plaid/models/student_loan_repayment_model.rb +95 -0
- data/lib/plaid/models/student_loan_status.rb +86 -0
- data/lib/plaid/models/student_repayment_plan.rb +84 -0
- data/lib/plaid/models/subtype.rb +209 -0
- data/lib/plaid/models/switch_method.rb +45 -0
- data/lib/plaid/models/taxform.rb +84 -0
- data/lib/plaid/models/taxpayer_id.rb +89 -0
- data/lib/plaid/models/total.rb +110 -0
- data/lib/plaid/models/transaction.rb +426 -0
- data/lib/plaid/models/transaction_base.rb +285 -0
- data/lib/plaid/models/transaction_code.rb +87 -0
- data/lib/plaid/models/transaction_data.rb +112 -0
- data/lib/plaid/models/transaction_location.rb +143 -0
- data/lib/plaid/models/transaction_override.rb +119 -0
- data/lib/plaid/models/transaction_type.rb +48 -0
- data/lib/plaid/models/transactions_get_request.rb +128 -0
- data/lib/plaid/models/transactions_get_request_options.rb +139 -0
- data/lib/plaid/models/transactions_get_response.rb +138 -0
- data/lib/plaid/models/transactions_refresh_request.rb +98 -0
- data/lib/plaid/models/transactions_refresh_response.rb +77 -0
- data/lib/plaid/models/transactions_removed_webhook.rb +119 -0
- data/lib/plaid/models/transactions_update_investments_webhook.rb +134 -0
- data/lib/plaid/models/transfer.rb +229 -0
- data/lib/plaid/models/transfer_authorization.rb +126 -0
- data/lib/plaid/models/transfer_authorization_create_request.rb +197 -0
- data/lib/plaid/models/transfer_authorization_create_response.rb +86 -0
- data/lib/plaid/models/transfer_authorization_decision_rationale.rb +96 -0
- data/lib/plaid/models/transfer_authorization_device.rb +86 -0
- data/lib/plaid/models/transfer_authorization_proposed_transfer.rb +150 -0
- data/lib/plaid/models/transfer_cancel_request.rb +97 -0
- data/lib/plaid/models/transfer_cancel_response.rb +76 -0
- data/lib/plaid/models/transfer_create_request.rb +241 -0
- data/lib/plaid/models/transfer_create_response.rb +84 -0
- data/lib/plaid/models/transfer_event.rb +171 -0
- data/lib/plaid/models/transfer_event_list_request.rb +214 -0
- data/lib/plaid/models/transfer_event_list_response.rb +93 -0
- data/lib/plaid/models/transfer_event_sync_request.rb +110 -0
- data/lib/plaid/models/transfer_event_sync_response.rb +93 -0
- data/lib/plaid/models/transfer_event_type.rb +52 -0
- data/lib/plaid/models/transfer_failure.rb +93 -0
- data/lib/plaid/models/transfer_get_request.rb +97 -0
- data/lib/plaid/models/transfer_get_response.rb +84 -0
- data/lib/plaid/models/transfer_list_request.rb +163 -0
- data/lib/plaid/models/transfer_list_response.rb +93 -0
- data/lib/plaid/models/transfer_network.rb +37 -0
- data/lib/plaid/models/transfer_status.rb +48 -0
- data/lib/plaid/models/transfer_type.rb +146 -0
- data/lib/plaid/models/transfer_type1.rb +38 -0
- data/lib/plaid/models/transfer_type2.rb +38 -0
- data/lib/plaid/models/transfer_user_address_in_request.rb +114 -0
- data/lib/plaid/models/transfer_user_address_in_response.rb +114 -0
- data/lib/plaid/models/transfer_user_in_request.rb +105 -0
- data/lib/plaid/models/transfer_user_in_response.rb +104 -0
- data/lib/plaid/models/type.rb +52 -0
- data/lib/plaid/models/type1.rb +40 -0
- data/lib/plaid/models/type2.rb +100 -0
- data/lib/plaid/models/type3.rb +68 -0
- data/lib/plaid/models/type4.rb +60 -0
- data/lib/plaid/models/type5.rb +41 -0
- data/lib/plaid/models/unofficial_currency_code_list.rb +252 -0
- data/lib/plaid/models/update_type.rb +39 -0
- data/lib/plaid/models/user_custom_password.rb +166 -0
- data/lib/plaid/models/user_permission_revoked_webhook.rb +110 -0
- data/lib/plaid/models/value.rb +52 -0
- data/lib/plaid/models/verification_expired_webhook.rb +102 -0
- data/lib/plaid/models/verification_refresh_status.rb +29 -0
- data/lib/plaid/models/verification_status.rb +53 -0
- data/lib/plaid/models/verification_status1.rb +36 -0
- data/lib/plaid/models/verification_status3.rb +48 -0
- data/lib/plaid/models/verification_status4.rb +65 -0
- data/lib/plaid/models/w2.rb +346 -0
- data/lib/plaid/models/w2_box12.rb +88 -0
- data/lib/plaid/models/w2_state_and_local_wages.rb +152 -0
- data/lib/plaid/models/warning.rb +98 -0
- data/lib/plaid/models/webhook_update_acknowledged_webhook.rb +118 -0
- data/lib/plaid/models/webhook_verification_key_get_request.rb +98 -0
- data/lib/plaid/models/webhook_verification_key_get_response.rb +86 -0
- data/lib/plaid/models/ytd_gross_income_summary_field_number.rb +90 -0
- data/lib/plaid/models/ytd_net_income_summary_field_number.rb +90 -0
- data/lib/plaid/utilities/date_time_helper.rb +11 -0
- data/lib/plaid/utilities/file_wrapper.rb +28 -0
- data/lib/plaid.rb +565 -0
- metadata +625 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# plaid
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module Plaid
|
|
7
|
+
# Metadata specifically related to which auth methods an institution supports.
|
|
8
|
+
class AuthSupportedMethods < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# Indicates if instant auth is supported.
|
|
13
|
+
# @return [TrueClass | FalseClass]
|
|
14
|
+
attr_accessor :instant_auth
|
|
15
|
+
|
|
16
|
+
# Indicates if instant match is supported.
|
|
17
|
+
# @return [TrueClass | FalseClass]
|
|
18
|
+
attr_accessor :instant_match
|
|
19
|
+
|
|
20
|
+
# Indicates if automated microdeposits are supported.
|
|
21
|
+
# @return [TrueClass | FalseClass]
|
|
22
|
+
attr_accessor :automated_micro_deposits
|
|
23
|
+
|
|
24
|
+
# A mapping from model property names to API property names.
|
|
25
|
+
def self.names
|
|
26
|
+
@_hash = {} if @_hash.nil?
|
|
27
|
+
@_hash['instant_auth'] = 'instant_auth'
|
|
28
|
+
@_hash['instant_match'] = 'instant_match'
|
|
29
|
+
@_hash['automated_micro_deposits'] = 'automated_micro_deposits'
|
|
30
|
+
@_hash
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# An array for optional fields
|
|
34
|
+
def self.optionals
|
|
35
|
+
[]
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# An array for nullable fields
|
|
39
|
+
def self.nullables
|
|
40
|
+
[]
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def initialize(instant_auth:, instant_match:, automated_micro_deposits:,
|
|
44
|
+
additional_properties: nil)
|
|
45
|
+
# Add additional model properties to the instance
|
|
46
|
+
additional_properties = {} if additional_properties.nil?
|
|
47
|
+
|
|
48
|
+
@instant_auth = instant_auth
|
|
49
|
+
@instant_match = instant_match
|
|
50
|
+
@automated_micro_deposits = automated_micro_deposits
|
|
51
|
+
@additional_properties = additional_properties
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Creates an instance of the object from a hash.
|
|
55
|
+
def self.from_hash(hash)
|
|
56
|
+
return nil unless hash
|
|
57
|
+
|
|
58
|
+
# Extract variables from the hash.
|
|
59
|
+
instant_auth = hash.key?('instant_auth') ? hash['instant_auth'] : nil
|
|
60
|
+
instant_match = hash.key?('instant_match') ? hash['instant_match'] : nil
|
|
61
|
+
automated_micro_deposits =
|
|
62
|
+
hash.key?('automated_micro_deposits') ? hash['automated_micro_deposits'] : nil
|
|
63
|
+
|
|
64
|
+
# Create a new hash for additional properties, removing known properties.
|
|
65
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
66
|
+
|
|
67
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
68
|
+
new_hash, proc { |value| value }
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
# Create object from extracted values.
|
|
72
|
+
AuthSupportedMethods.new(instant_auth: instant_auth,
|
|
73
|
+
instant_match: instant_match,
|
|
74
|
+
automated_micro_deposits: automated_micro_deposits,
|
|
75
|
+
additional_properties: additional_properties)
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# Provides a human-readable string representation of the object.
|
|
79
|
+
def to_s
|
|
80
|
+
class_name = self.class.name.split('::').last
|
|
81
|
+
"<#{class_name} instant_auth: #{@instant_auth}, instant_match: #{@instant_match},"\
|
|
82
|
+
" automated_micro_deposits: #{@automated_micro_deposits}, additional_properties:"\
|
|
83
|
+
" #{@additional_properties}>"
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
87
|
+
def inspect
|
|
88
|
+
class_name = self.class.name.split('::').last
|
|
89
|
+
"<#{class_name} instant_auth: #{@instant_auth.inspect}, instant_match:"\
|
|
90
|
+
" #{@instant_match.inspect}, automated_micro_deposits: #{@automated_micro_deposits.inspect},"\
|
|
91
|
+
" additional_properties: #{@additional_properties}>"
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# plaid
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module Plaid
|
|
7
|
+
# Fired when an Item is verified via automated micro-deposits. We recommend
|
|
8
|
+
# communicating to your users when this event is received to notify them that
|
|
9
|
+
# their account is verified and ready for use.
|
|
10
|
+
class AutomaticallyVerifiedWebhook < BaseModel
|
|
11
|
+
SKIP = Object.new
|
|
12
|
+
private_constant :SKIP
|
|
13
|
+
|
|
14
|
+
# `AUTH`
|
|
15
|
+
# @return [String]
|
|
16
|
+
attr_accessor :webhook_type
|
|
17
|
+
|
|
18
|
+
# `AUTOMATICALLY_VERIFIED`
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :webhook_code
|
|
21
|
+
|
|
22
|
+
# The `account_id` of the account associated with the webhook
|
|
23
|
+
# @return [String]
|
|
24
|
+
attr_accessor :account_id
|
|
25
|
+
|
|
26
|
+
# The `item_id` of the Item associated with this webhook, warning, or error
|
|
27
|
+
# @return [String]
|
|
28
|
+
attr_accessor :item_id
|
|
29
|
+
|
|
30
|
+
# A mapping from model property names to API property names.
|
|
31
|
+
def self.names
|
|
32
|
+
@_hash = {} if @_hash.nil?
|
|
33
|
+
@_hash['webhook_type'] = 'webhook_type'
|
|
34
|
+
@_hash['webhook_code'] = 'webhook_code'
|
|
35
|
+
@_hash['account_id'] = 'account_id'
|
|
36
|
+
@_hash['item_id'] = 'item_id'
|
|
37
|
+
@_hash
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# An array for optional fields
|
|
41
|
+
def self.optionals
|
|
42
|
+
[]
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# An array for nullable fields
|
|
46
|
+
def self.nullables
|
|
47
|
+
[]
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
def initialize(webhook_type:, webhook_code:, account_id:, item_id:,
|
|
51
|
+
additional_properties: nil)
|
|
52
|
+
# Add additional model properties to the instance
|
|
53
|
+
additional_properties = {} if additional_properties.nil?
|
|
54
|
+
|
|
55
|
+
@webhook_type = webhook_type
|
|
56
|
+
@webhook_code = webhook_code
|
|
57
|
+
@account_id = account_id
|
|
58
|
+
@item_id = item_id
|
|
59
|
+
@additional_properties = additional_properties
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Creates an instance of the object from a hash.
|
|
63
|
+
def self.from_hash(hash)
|
|
64
|
+
return nil unless hash
|
|
65
|
+
|
|
66
|
+
# Extract variables from the hash.
|
|
67
|
+
webhook_type = hash.key?('webhook_type') ? hash['webhook_type'] : nil
|
|
68
|
+
webhook_code = hash.key?('webhook_code') ? hash['webhook_code'] : nil
|
|
69
|
+
account_id = hash.key?('account_id') ? hash['account_id'] : nil
|
|
70
|
+
item_id = hash.key?('item_id') ? hash['item_id'] : nil
|
|
71
|
+
|
|
72
|
+
# Create a new hash for additional properties, removing known properties.
|
|
73
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
74
|
+
|
|
75
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
76
|
+
new_hash, proc { |value| value }
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
# Create object from extracted values.
|
|
80
|
+
AutomaticallyVerifiedWebhook.new(webhook_type: webhook_type,
|
|
81
|
+
webhook_code: webhook_code,
|
|
82
|
+
account_id: account_id,
|
|
83
|
+
item_id: item_id,
|
|
84
|
+
additional_properties: additional_properties)
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Provides a human-readable string representation of the object.
|
|
88
|
+
def to_s
|
|
89
|
+
class_name = self.class.name.split('::').last
|
|
90
|
+
"<#{class_name} webhook_type: #{@webhook_type}, webhook_code: #{@webhook_code}, account_id:"\
|
|
91
|
+
" #{@account_id}, item_id: #{@item_id}, additional_properties: #{@additional_properties}>"
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
95
|
+
def inspect
|
|
96
|
+
class_name = self.class.name.split('::').last
|
|
97
|
+
"<#{class_name} webhook_type: #{@webhook_type.inspect}, webhook_code:"\
|
|
98
|
+
" #{@webhook_code.inspect}, account_id: #{@account_id.inspect}, item_id:"\
|
|
99
|
+
" #{@item_id.inspect}, additional_properties: #{@additional_properties}>"
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# plaid
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module Plaid
|
|
7
|
+
# The sign of the available balance for the receiver bank account associated
|
|
8
|
+
# with the receiver event at the time the matching transaction was found. Can
|
|
9
|
+
# be `positive`, `negative`, or null if the balance was not available at the
|
|
10
|
+
# time.
|
|
11
|
+
class AvailableBalance
|
|
12
|
+
AVAILABLE_BALANCE = [
|
|
13
|
+
# TODO: Write general description for POSITIVE
|
|
14
|
+
POSITIVE = 'positive'.freeze,
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for NEGATIVE
|
|
17
|
+
NEGATIVE = 'negative'.freeze
|
|
18
|
+
].freeze
|
|
19
|
+
|
|
20
|
+
def self.validate(value)
|
|
21
|
+
return false if value.nil?
|
|
22
|
+
|
|
23
|
+
true
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def self.from_value(value, default_value = POSITIVE)
|
|
27
|
+
return default_value if value.nil?
|
|
28
|
+
|
|
29
|
+
str = value.to_s.strip
|
|
30
|
+
|
|
31
|
+
case str.downcase
|
|
32
|
+
when 'positive' then POSITIVE
|
|
33
|
+
when 'negative' then NEGATIVE
|
|
34
|
+
else
|
|
35
|
+
default_value
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# plaid
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module Plaid
|
|
7
|
+
# The object contains a risk score and a risk tier that evaluate the
|
|
8
|
+
# transaction return risk because an account is overdrawn or because an
|
|
9
|
+
# ineligible account is used. Common return codes in this category include:
|
|
10
|
+
# "R01", "R02", "R03", "R04", "R06", “R08”, "R09", "R13", "R16", "R17",
|
|
11
|
+
# "R20", "R23". These returns have a turnaround time of 2 banking days.
|
|
12
|
+
class BankInitiatedReturnRisk < BaseModel
|
|
13
|
+
SKIP = Object.new
|
|
14
|
+
private_constant :SKIP
|
|
15
|
+
|
|
16
|
+
# A score from 0-99 that indicates the transaction return risk: a higher
|
|
17
|
+
# risk score suggests a higher return likelihood.
|
|
18
|
+
# @return [Integer]
|
|
19
|
+
attr_accessor :score
|
|
20
|
+
|
|
21
|
+
# In the `bank_initiated_return_risk` object, there are eight risk tiers
|
|
22
|
+
# corresponding to the scores:
|
|
23
|
+
# 1: Predicted bank-initiated return incidence rate between 0.0% - 0.5%
|
|
24
|
+
# 2: Predicted bank-initiated return incidence rate between 0.5% - 1.5%
|
|
25
|
+
# 3: Predicted bank-initiated return incidence rate between 1.5% - 3%
|
|
26
|
+
# 4: Predicted bank-initiated return incidence rate between 3% - 5%
|
|
27
|
+
# 5: Predicted bank-initiated return incidence rate between 5% - 10%
|
|
28
|
+
# 6: Predicted bank-initiated return incidence rate between 10% - 15%
|
|
29
|
+
# 7: Predicted bank-initiated return incidence rate between 15% and 50%
|
|
30
|
+
# 8: Predicted bank-initiated return incidence rate greater than 50%
|
|
31
|
+
# @return [Integer]
|
|
32
|
+
attr_accessor :risk_tier
|
|
33
|
+
|
|
34
|
+
# A mapping from model property names to API property names.
|
|
35
|
+
def self.names
|
|
36
|
+
@_hash = {} if @_hash.nil?
|
|
37
|
+
@_hash['score'] = 'score'
|
|
38
|
+
@_hash['risk_tier'] = 'risk_tier'
|
|
39
|
+
@_hash
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# An array for optional fields
|
|
43
|
+
def self.optionals
|
|
44
|
+
[]
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# An array for nullable fields
|
|
48
|
+
def self.nullables
|
|
49
|
+
[]
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
def initialize(score:, risk_tier:, additional_properties: nil)
|
|
53
|
+
# Add additional model properties to the instance
|
|
54
|
+
additional_properties = {} if additional_properties.nil?
|
|
55
|
+
|
|
56
|
+
@score = score
|
|
57
|
+
@risk_tier = risk_tier
|
|
58
|
+
@additional_properties = additional_properties
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Creates an instance of the object from a hash.
|
|
62
|
+
def self.from_hash(hash)
|
|
63
|
+
return nil unless hash
|
|
64
|
+
|
|
65
|
+
# Extract variables from the hash.
|
|
66
|
+
score = hash.key?('score') ? hash['score'] : nil
|
|
67
|
+
risk_tier = hash.key?('risk_tier') ? hash['risk_tier'] : nil
|
|
68
|
+
|
|
69
|
+
# Create a new hash for additional properties, removing known properties.
|
|
70
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
71
|
+
|
|
72
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
73
|
+
new_hash, proc { |value| value }
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
# Create object from extracted values.
|
|
77
|
+
BankInitiatedReturnRisk.new(score: score,
|
|
78
|
+
risk_tier: risk_tier,
|
|
79
|
+
additional_properties: additional_properties)
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Provides a human-readable string representation of the object.
|
|
83
|
+
def to_s
|
|
84
|
+
class_name = self.class.name.split('::').last
|
|
85
|
+
"<#{class_name} score: #{@score}, risk_tier: #{@risk_tier}, additional_properties:"\
|
|
86
|
+
" #{@additional_properties}>"
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
90
|
+
def inspect
|
|
91
|
+
class_name = self.class.name.split('::').last
|
|
92
|
+
"<#{class_name} score: #{@score.inspect}, risk_tier: #{@risk_tier.inspect},"\
|
|
93
|
+
" additional_properties: #{@additional_properties}>"
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
end
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
# plaid
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
require 'date'
|
|
7
|
+
module Plaid
|
|
8
|
+
# Represents a bank transfer within the Bank Transfers API.
|
|
9
|
+
class BankTransfer < BaseModel
|
|
10
|
+
SKIP = Object.new
|
|
11
|
+
private_constant :SKIP
|
|
12
|
+
|
|
13
|
+
# Plaid’s unique identifier for a bank transfer.
|
|
14
|
+
# @return [String]
|
|
15
|
+
attr_accessor :id
|
|
16
|
+
|
|
17
|
+
# Specifies the use case of the transfer. Required for transfers on an ACH
|
|
18
|
+
# network.
|
|
19
|
+
# `"arc"` - Accounts Receivable Entry
|
|
20
|
+
# `"cbr`" - Cross Border Entry
|
|
21
|
+
# `"ccd"` - Corporate Credit or Debit - fund transfer between two corporate
|
|
22
|
+
# bank accounts
|
|
23
|
+
# `"cie"` - Customer Initiated Entry
|
|
24
|
+
# `"cor"` - Automated Notification of Change
|
|
25
|
+
# `"ctx"` - Corporate Trade Exchange
|
|
26
|
+
# `"iat"` - International
|
|
27
|
+
# `"mte"` - Machine Transfer Entry
|
|
28
|
+
# `"pbr"` - Cross Border Entry
|
|
29
|
+
# `"pop"` - Point-of-Purchase Entry
|
|
30
|
+
# `"pos"` - Point-of-Sale Entry
|
|
31
|
+
# `"ppd"` - Prearranged Payment or Deposit - the transfer is part of a
|
|
32
|
+
# pre-existing relationship with a consumer, eg. bill payment
|
|
33
|
+
# `"rck"` - Re-presented Check Entry
|
|
34
|
+
# `"tel"` - Telephone-Initiated Entry
|
|
35
|
+
# `"web"` - Internet-Initiated Entry - debits from a consumer’s account
|
|
36
|
+
# where their authorization is obtained over the Internet
|
|
37
|
+
# @return [AchClass]
|
|
38
|
+
attr_accessor :ach_class
|
|
39
|
+
|
|
40
|
+
# The account ID that should be credited/debited for this bank transfer.
|
|
41
|
+
# @return [String]
|
|
42
|
+
attr_accessor :account_id
|
|
43
|
+
|
|
44
|
+
# The type of bank transfer. This will be either `debit` or `credit`. A
|
|
45
|
+
# `debit` indicates a transfer of money into the origination account; a
|
|
46
|
+
# `credit` indicates a transfer of money out of the origination account.
|
|
47
|
+
# @return [BankTransferType]
|
|
48
|
+
attr_accessor :type
|
|
49
|
+
|
|
50
|
+
# The legal name and other information for the account holder.
|
|
51
|
+
# @return [BankTransferUser]
|
|
52
|
+
attr_accessor :user
|
|
53
|
+
|
|
54
|
+
# The amount of the bank transfer (decimal string with two digits of
|
|
55
|
+
# precision e.g. “10.00”).
|
|
56
|
+
# @return [String]
|
|
57
|
+
attr_accessor :amount
|
|
58
|
+
|
|
59
|
+
# The currency of the transfer amount, e.g. "USD"
|
|
60
|
+
# @return [String]
|
|
61
|
+
attr_accessor :iso_currency_code
|
|
62
|
+
|
|
63
|
+
# The description of the transfer.
|
|
64
|
+
# @return [String]
|
|
65
|
+
attr_accessor :description
|
|
66
|
+
|
|
67
|
+
# The datetime when this bank transfer was created. This will be of the form
|
|
68
|
+
# `2006-01-02T15:04:05Z`
|
|
69
|
+
# @return [DateTime]
|
|
70
|
+
attr_accessor :created
|
|
71
|
+
|
|
72
|
+
# The status of the transfer.
|
|
73
|
+
# @return [BankTransferStatus]
|
|
74
|
+
attr_accessor :status
|
|
75
|
+
|
|
76
|
+
# The network or rails used for the transfer. Valid options are `ach`,
|
|
77
|
+
# `same-day-ach`, or `wire`.
|
|
78
|
+
# @return [BankTransferNetwork]
|
|
79
|
+
attr_accessor :network
|
|
80
|
+
|
|
81
|
+
# When `true`, you can still cancel this bank transfer.
|
|
82
|
+
# @return [TrueClass | FalseClass]
|
|
83
|
+
attr_accessor :cancellable
|
|
84
|
+
|
|
85
|
+
# The failure reason if the type of this transfer is `"failed"` or
|
|
86
|
+
# `"reversed"`. Null value otherwise.
|
|
87
|
+
# @return [BankTransferFailure]
|
|
88
|
+
attr_accessor :failure_reason
|
|
89
|
+
|
|
90
|
+
# A string containing the custom tag provided by the client in the create
|
|
91
|
+
# request. Will be null if not provided.
|
|
92
|
+
# @return [String]
|
|
93
|
+
attr_accessor :custom_tag
|
|
94
|
+
|
|
95
|
+
# The Metadata object is a mapping of client-provided string fields to any
|
|
96
|
+
# string value. The following limitations apply:
|
|
97
|
+
# - The JSON values must be Strings (no nested JSON objects allowed)
|
|
98
|
+
# - Only ASCII characters may be used
|
|
99
|
+
# - Maximum of 50 key/value pairs
|
|
100
|
+
# - Maximum key length of 40 characters
|
|
101
|
+
# - Maximum value length of 500 characters
|
|
102
|
+
# @return [Hash[String, String]]
|
|
103
|
+
attr_accessor :metadata
|
|
104
|
+
|
|
105
|
+
# Plaid’s unique identifier for the origination account that was used for
|
|
106
|
+
# this transfer.
|
|
107
|
+
# @return [String]
|
|
108
|
+
attr_accessor :origination_account_id
|
|
109
|
+
|
|
110
|
+
# Indicates the direction of the transfer: `outbound` for API-initiated
|
|
111
|
+
# transfers, or `inbound` for payments received by the FBO account.
|
|
112
|
+
# @return [BankTransferDirection]
|
|
113
|
+
attr_accessor :direction
|
|
114
|
+
|
|
115
|
+
# A mapping from model property names to API property names.
|
|
116
|
+
def self.names
|
|
117
|
+
@_hash = {} if @_hash.nil?
|
|
118
|
+
@_hash['id'] = 'id'
|
|
119
|
+
@_hash['ach_class'] = 'ach_class'
|
|
120
|
+
@_hash['account_id'] = 'account_id'
|
|
121
|
+
@_hash['type'] = 'type'
|
|
122
|
+
@_hash['user'] = 'user'
|
|
123
|
+
@_hash['amount'] = 'amount'
|
|
124
|
+
@_hash['iso_currency_code'] = 'iso_currency_code'
|
|
125
|
+
@_hash['description'] = 'description'
|
|
126
|
+
@_hash['created'] = 'created'
|
|
127
|
+
@_hash['status'] = 'status'
|
|
128
|
+
@_hash['network'] = 'network'
|
|
129
|
+
@_hash['cancellable'] = 'cancellable'
|
|
130
|
+
@_hash['failure_reason'] = 'failure_reason'
|
|
131
|
+
@_hash['custom_tag'] = 'custom_tag'
|
|
132
|
+
@_hash['metadata'] = 'metadata'
|
|
133
|
+
@_hash['origination_account_id'] = 'origination_account_id'
|
|
134
|
+
@_hash['direction'] = 'direction'
|
|
135
|
+
@_hash
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# An array for optional fields
|
|
139
|
+
def self.optionals
|
|
140
|
+
[]
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# An array for nullable fields
|
|
144
|
+
def self.nullables
|
|
145
|
+
%w[
|
|
146
|
+
custom_tag
|
|
147
|
+
]
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
def initialize(id:, ach_class:, account_id:, type:, user:, amount:,
|
|
151
|
+
iso_currency_code:, description:, created:, status:,
|
|
152
|
+
network:, cancellable:, failure_reason:, custom_tag:,
|
|
153
|
+
metadata:, origination_account_id:, direction:,
|
|
154
|
+
additional_properties: nil)
|
|
155
|
+
# Add additional model properties to the instance
|
|
156
|
+
additional_properties = {} if additional_properties.nil?
|
|
157
|
+
|
|
158
|
+
@id = id
|
|
159
|
+
@ach_class = ach_class
|
|
160
|
+
@account_id = account_id
|
|
161
|
+
@type = type
|
|
162
|
+
@user = user
|
|
163
|
+
@amount = amount
|
|
164
|
+
@iso_currency_code = iso_currency_code
|
|
165
|
+
@description = description
|
|
166
|
+
@created = created
|
|
167
|
+
@status = status
|
|
168
|
+
@network = network
|
|
169
|
+
@cancellable = cancellable
|
|
170
|
+
@failure_reason = failure_reason
|
|
171
|
+
@custom_tag = custom_tag
|
|
172
|
+
@metadata = metadata
|
|
173
|
+
@origination_account_id = origination_account_id
|
|
174
|
+
@direction = direction
|
|
175
|
+
@additional_properties = additional_properties
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Creates an instance of the object from a hash.
|
|
179
|
+
def self.from_hash(hash)
|
|
180
|
+
return nil unless hash
|
|
181
|
+
|
|
182
|
+
# Extract variables from the hash.
|
|
183
|
+
id = hash.key?('id') ? hash['id'] : nil
|
|
184
|
+
ach_class = hash.key?('ach_class') ? hash['ach_class'] : nil
|
|
185
|
+
account_id = hash.key?('account_id') ? hash['account_id'] : nil
|
|
186
|
+
type = hash.key?('type') ? hash['type'] : nil
|
|
187
|
+
user = BankTransferUser.from_hash(hash['user']) if hash['user']
|
|
188
|
+
amount = hash.key?('amount') ? hash['amount'] : nil
|
|
189
|
+
iso_currency_code =
|
|
190
|
+
hash.key?('iso_currency_code') ? hash['iso_currency_code'] : nil
|
|
191
|
+
description = hash.key?('description') ? hash['description'] : nil
|
|
192
|
+
created = if hash.key?('created')
|
|
193
|
+
(DateTimeHelper.from_rfc3339(hash['created']) if hash['created'])
|
|
194
|
+
end
|
|
195
|
+
status = hash.key?('status') ? hash['status'] : nil
|
|
196
|
+
network = hash.key?('network') ? hash['network'] : nil
|
|
197
|
+
cancellable = hash.key?('cancellable') ? hash['cancellable'] : nil
|
|
198
|
+
failure_reason = BankTransferFailure.from_hash(hash['failure_reason']) if
|
|
199
|
+
hash['failure_reason']
|
|
200
|
+
custom_tag = hash.key?('custom_tag') ? hash['custom_tag'] : nil
|
|
201
|
+
metadata = hash.key?('metadata') ? hash['metadata'] : nil
|
|
202
|
+
origination_account_id =
|
|
203
|
+
hash.key?('origination_account_id') ? hash['origination_account_id'] : nil
|
|
204
|
+
direction = hash.key?('direction') ? hash['direction'] : nil
|
|
205
|
+
|
|
206
|
+
# Create a new hash for additional properties, removing known properties.
|
|
207
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
208
|
+
|
|
209
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
210
|
+
new_hash, proc { |value| value }
|
|
211
|
+
)
|
|
212
|
+
|
|
213
|
+
# Create object from extracted values.
|
|
214
|
+
BankTransfer.new(id: id,
|
|
215
|
+
ach_class: ach_class,
|
|
216
|
+
account_id: account_id,
|
|
217
|
+
type: type,
|
|
218
|
+
user: user,
|
|
219
|
+
amount: amount,
|
|
220
|
+
iso_currency_code: iso_currency_code,
|
|
221
|
+
description: description,
|
|
222
|
+
created: created,
|
|
223
|
+
status: status,
|
|
224
|
+
network: network,
|
|
225
|
+
cancellable: cancellable,
|
|
226
|
+
failure_reason: failure_reason,
|
|
227
|
+
custom_tag: custom_tag,
|
|
228
|
+
metadata: metadata,
|
|
229
|
+
origination_account_id: origination_account_id,
|
|
230
|
+
direction: direction,
|
|
231
|
+
additional_properties: additional_properties)
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
def to_custom_created
|
|
235
|
+
DateTimeHelper.to_rfc3339(created)
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
# Provides a human-readable string representation of the object.
|
|
239
|
+
def to_s
|
|
240
|
+
class_name = self.class.name.split('::').last
|
|
241
|
+
"<#{class_name} id: #{@id}, ach_class: #{@ach_class}, account_id: #{@account_id}, type:"\
|
|
242
|
+
" #{@type}, user: #{@user}, amount: #{@amount}, iso_currency_code: #{@iso_currency_code},"\
|
|
243
|
+
" description: #{@description}, created: #{@created}, status: #{@status}, network:"\
|
|
244
|
+
" #{@network}, cancellable: #{@cancellable}, failure_reason: #{@failure_reason}, custom_tag:"\
|
|
245
|
+
" #{@custom_tag}, metadata: #{@metadata}, origination_account_id:"\
|
|
246
|
+
" #{@origination_account_id}, direction: #{@direction}, additional_properties:"\
|
|
247
|
+
" #{@additional_properties}>"
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
251
|
+
def inspect
|
|
252
|
+
class_name = self.class.name.split('::').last
|
|
253
|
+
"<#{class_name} id: #{@id.inspect}, ach_class: #{@ach_class.inspect}, account_id:"\
|
|
254
|
+
" #{@account_id.inspect}, type: #{@type.inspect}, user: #{@user.inspect}, amount:"\
|
|
255
|
+
" #{@amount.inspect}, iso_currency_code: #{@iso_currency_code.inspect}, description:"\
|
|
256
|
+
" #{@description.inspect}, created: #{@created.inspect}, status: #{@status.inspect},"\
|
|
257
|
+
" network: #{@network.inspect}, cancellable: #{@cancellable.inspect}, failure_reason:"\
|
|
258
|
+
" #{@failure_reason.inspect}, custom_tag: #{@custom_tag.inspect}, metadata:"\
|
|
259
|
+
" #{@metadata.inspect}, origination_account_id: #{@origination_account_id.inspect},"\
|
|
260
|
+
" direction: #{@direction.inspect}, additional_properties: #{@additional_properties}>"
|
|
261
|
+
end
|
|
262
|
+
end
|
|
263
|
+
end
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# plaid
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module Plaid
|
|
7
|
+
# BankTransferBalance Model.
|
|
8
|
+
class BankTransferBalance < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# The total available balance - the sum of all successful debit transfer
|
|
13
|
+
# amounts minus all credit transfer amounts.
|
|
14
|
+
# @return [String]
|
|
15
|
+
attr_accessor :available
|
|
16
|
+
|
|
17
|
+
# The transactable balance shows the amount in your account that you are
|
|
18
|
+
# able to use for transfers, and is essentially your available balance minus
|
|
19
|
+
# your minimum balance.
|
|
20
|
+
# @return [String]
|
|
21
|
+
attr_accessor :transactable
|
|
22
|
+
|
|
23
|
+
# A mapping from model property names to API property names.
|
|
24
|
+
def self.names
|
|
25
|
+
@_hash = {} if @_hash.nil?
|
|
26
|
+
@_hash['available'] = 'available'
|
|
27
|
+
@_hash['transactable'] = 'transactable'
|
|
28
|
+
@_hash
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# An array for optional fields
|
|
32
|
+
def self.optionals
|
|
33
|
+
[]
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# An array for nullable fields
|
|
37
|
+
def self.nullables
|
|
38
|
+
[]
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def initialize(available:, transactable:, additional_properties: nil)
|
|
42
|
+
# Add additional model properties to the instance
|
|
43
|
+
additional_properties = {} if additional_properties.nil?
|
|
44
|
+
|
|
45
|
+
@available = available
|
|
46
|
+
@transactable = transactable
|
|
47
|
+
@additional_properties = additional_properties
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Creates an instance of the object from a hash.
|
|
51
|
+
def self.from_hash(hash)
|
|
52
|
+
return nil unless hash
|
|
53
|
+
|
|
54
|
+
# Extract variables from the hash.
|
|
55
|
+
available = hash.key?('available') ? hash['available'] : nil
|
|
56
|
+
transactable = hash.key?('transactable') ? hash['transactable'] : nil
|
|
57
|
+
|
|
58
|
+
# Create a new hash for additional properties, removing known properties.
|
|
59
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
60
|
+
|
|
61
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
62
|
+
new_hash, proc { |value| value }
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
# Create object from extracted values.
|
|
66
|
+
BankTransferBalance.new(available: available,
|
|
67
|
+
transactable: transactable,
|
|
68
|
+
additional_properties: additional_properties)
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# Provides a human-readable string representation of the object.
|
|
72
|
+
def to_s
|
|
73
|
+
class_name = self.class.name.split('::').last
|
|
74
|
+
"<#{class_name} available: #{@available}, transactable: #{@transactable},"\
|
|
75
|
+
" additional_properties: #{@additional_properties}>"
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
79
|
+
def inspect
|
|
80
|
+
class_name = self.class.name.split('::').last
|
|
81
|
+
"<#{class_name} available: #{@available.inspect}, transactable: #{@transactable.inspect},"\
|
|
82
|
+
" additional_properties: #{@additional_properties}>"
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|