plaid 10.1.0 → 14.0.0.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +109 -1
- data/CONTRIBUTING.md +5 -36
- data/Dockerfile +11 -0
- data/Gemfile.lock +48 -35
- data/LICENSE.txt +1 -1
- data/PUBLISH.md +2 -2
- data/README.md +118 -91
- data/Rakefile +8 -79
- data/UPGRADING.md +4 -0
- data/docs/ACHClass.md +15 -0
- data/docs/APR.md +24 -0
- data/docs/AccountAssets.md +40 -0
- data/docs/AccountAssetsAllOf.md +24 -0
- data/docs/AccountBalance.md +26 -0
- data/docs/AccountBase.md +32 -0
- data/docs/AccountFiltersResponse.md +24 -0
- data/docs/AccountIdentity.md +34 -0
- data/docs/AccountIdentityAllOf.md +18 -0
- data/docs/AccountSubtype.md +15 -0
- data/docs/AccountType.md +15 -0
- data/docs/AccountsBalanceGetRequest.md +24 -0
- data/docs/AccountsBalanceGetRequestOptions.md +18 -0
- data/docs/AccountsGetRequest.md +24 -0
- data/docs/AccountsGetRequestOptions.md +18 -0
- data/docs/AccountsGetResponse.md +22 -0
- data/docs/Address.md +20 -0
- data/docs/AddressData.md +26 -0
- data/docs/Amount.md +20 -0
- data/docs/AssetReport.md +28 -0
- data/docs/AssetReportAuditCopyCreateRequest.md +24 -0
- data/docs/AssetReportAuditCopyCreateResponse.md +20 -0
- data/docs/AssetReportAuditCopyGetRequest.md +22 -0
- data/docs/AssetReportAuditCopyRemoveRequest.md +22 -0
- data/docs/AssetReportAuditCopyRemoveResponse.md +20 -0
- data/docs/AssetReportCreateRequest.md +26 -0
- data/docs/AssetReportCreateRequestOptions.md +22 -0
- data/docs/AssetReportCreateResponse.md +22 -0
- data/docs/AssetReportFilterRequest.md +24 -0
- data/docs/AssetReportFilterResponse.md +22 -0
- data/docs/AssetReportGetRequest.md +24 -0
- data/docs/AssetReportGetResponse.md +22 -0
- data/docs/AssetReportItem.md +26 -0
- data/docs/AssetReportPDFGetRequest.md +22 -0
- data/docs/AssetReportRefreshRequest.md +26 -0
- data/docs/AssetReportRefreshRequestOptions.md +22 -0
- data/docs/AssetReportRefreshResponse.md +22 -0
- data/docs/AssetReportRemoveRequest.md +22 -0
- data/docs/AssetReportRemoveResponse.md +20 -0
- data/docs/AssetReportTransaction.md +58 -0
- data/docs/AssetReportTransactionAllOf.md +20 -0
- data/docs/AssetReportUser.md +30 -0
- data/docs/AssetsErrorWebhook.md +24 -0
- data/docs/AssetsProductReadyWebhook.md +22 -0
- data/docs/AuthGetNumbers.md +24 -0
- data/docs/AuthGetRequest.md +24 -0
- data/docs/AuthGetRequestOptions.md +18 -0
- data/docs/AuthGetResponse.md +24 -0
- data/docs/AutomaticallyVerifiedWebhook.md +24 -0
- data/docs/BankTransfer.md +50 -0
- data/docs/BankTransferBalance.md +20 -0
- data/docs/BankTransferBalanceGetRequest.md +22 -0
- data/docs/BankTransferBalanceGetResponse.md +22 -0
- data/docs/BankTransferCancelRequest.md +22 -0
- data/docs/BankTransferCancelResponse.md +18 -0
- data/docs/BankTransferCreateRequest.md +46 -0
- data/docs/BankTransferCreateResponse.md +20 -0
- data/docs/BankTransferDirection.md +15 -0
- data/docs/BankTransferEvent.md +40 -0
- data/docs/BankTransferEventListRequest.md +40 -0
- data/docs/BankTransferEventListResponse.md +20 -0
- data/docs/BankTransferEventSyncRequest.md +24 -0
- data/docs/BankTransferEventSyncResponse.md +20 -0
- data/docs/BankTransferEventType.md +15 -0
- data/docs/BankTransferFailure.md +20 -0
- data/docs/BankTransferGetRequest.md +22 -0
- data/docs/BankTransferGetResponse.md +20 -0
- data/docs/BankTransferListRequest.md +32 -0
- data/docs/BankTransferListResponse.md +20 -0
- data/docs/BankTransferMigrateAccountRequest.md +26 -0
- data/docs/BankTransferMigrateAccountResponse.md +22 -0
- data/docs/BankTransferNetwork.md +15 -0
- data/docs/BankTransferReceiverDetails.md +18 -0
- data/docs/BankTransferStatus.md +15 -0
- data/docs/BankTransferType.md +15 -0
- data/docs/BankTransferUser.md +22 -0
- data/docs/CategoriesGetResponse.md +20 -0
- data/docs/Category.md +22 -0
- data/docs/Cause.md +20 -0
- data/docs/CountryCode.md +15 -0
- data/docs/CreditCardLiability.md +34 -0
- data/docs/CreditFilter.md +18 -0
- data/docs/DefaultUpdateWebhook.md +26 -0
- data/docs/DepositSwitchAddressData.md +26 -0
- data/docs/DepositSwitchAltCreateRequest.md +24 -0
- data/docs/DepositSwitchAltCreateResponse.md +20 -0
- data/docs/DepositSwitchCreateRequest.md +24 -0
- data/docs/DepositSwitchCreateResponse.md +20 -0
- data/docs/DepositSwitchGetRequest.md +22 -0
- data/docs/DepositSwitchGetResponse.md +38 -0
- data/docs/DepositSwitchTargetAccount.md +24 -0
- data/docs/DepositSwitchTargetUser.md +28 -0
- data/docs/DepositSwitchTokenCreateRequest.md +22 -0
- data/docs/DepositSwitchTokenCreateResponse.md +22 -0
- data/docs/DepositoryFilter.md +18 -0
- data/docs/Email.md +22 -0
- data/docs/Employee.md +22 -0
- data/docs/EmployeeIncomeSummaryFieldString.md +20 -0
- data/docs/Employer.md +24 -0
- data/docs/EmployerIncomeSummaryFieldString.md +20 -0
- data/docs/EmployersSearchRequest.md +24 -0
- data/docs/EmployersSearchResponse.md +20 -0
- data/docs/Error.md +34 -0
- data/docs/ExternalPaymentSchedule.md +24 -0
- data/docs/HealthIncident.md +24 -0
- data/docs/HistoricalBalance.md +24 -0
- data/docs/HistoricalUpdateWebhook.md +26 -0
- data/docs/Holding.md +34 -0
- data/docs/HoldingsDefaultUpdateWebhook.md +28 -0
- data/docs/IdentityGetRequest.md +24 -0
- data/docs/IdentityGetRequestOptions.md +18 -0
- data/docs/IdentityGetResponse.md +22 -0
- data/docs/IncidentUpdate.md +22 -0
- data/docs/IncomeBreakdown.md +24 -0
- data/docs/IncomeSummary.md +30 -0
- data/docs/IncomeSummaryFieldNumber.md +20 -0
- data/docs/IncomeSummaryFieldString.md +20 -0
- data/docs/IncomeVerificationCreateRequest.md +22 -0
- data/docs/IncomeVerificationCreateResponse.md +20 -0
- data/docs/IncomeVerificationDocumentsDownloadRequest.md +22 -0
- data/docs/IncomeVerificationDocumentsDownloadResponse.md +18 -0
- data/docs/IncomeVerificationPaystubGetRequest.md +22 -0
- data/docs/IncomeVerificationPaystubGetResponse.md +20 -0
- data/docs/IncomeVerificationStatusWebhook.md +24 -0
- data/docs/IncomeVerificationSummaryGetRequest.md +22 -0
- data/docs/IncomeVerificationSummaryGetResponse.md +20 -0
- data/docs/IncomeVerificationWebhookStatus.md +18 -0
- data/docs/InflowModel.md +26 -0
- data/docs/InitialUpdateWebhook.md +26 -0
- data/docs/Institution.md +36 -0
- data/docs/InstitutionStatus.md +30 -0
- data/docs/InstitutionsGetByIdRequest.md +26 -0
- data/docs/InstitutionsGetByIdRequestOptions.md +20 -0
- data/docs/InstitutionsGetByIdResponse.md +20 -0
- data/docs/InstitutionsGetRequest.md +28 -0
- data/docs/InstitutionsGetRequestOptions.md +24 -0
- data/docs/InstitutionsGetResponse.md +22 -0
- data/docs/InstitutionsSearchAccountFilter.md +24 -0
- data/docs/InstitutionsSearchRequest.md +28 -0
- data/docs/InstitutionsSearchRequestOptions.md +22 -0
- data/docs/InstitutionsSearchResponse.md +20 -0
- data/docs/InvestmentFilter.md +18 -0
- data/docs/InvestmentHoldingsGetRequestOptions.md +18 -0
- data/docs/InvestmentTransaction.md +44 -0
- data/docs/InvestmentsDefaultUpdateWebhook.md +28 -0
- data/docs/InvestmentsHoldingsGetRequest.md +24 -0
- data/docs/InvestmentsHoldingsGetResponse.md +26 -0
- data/docs/InvestmentsTransactionsGetRequest.md +28 -0
- data/docs/InvestmentsTransactionsGetRequestOptions.md +22 -0
- data/docs/InvestmentsTransactionsGetResponse.md +28 -0
- data/docs/Item.md +32 -0
- data/docs/ItemAccessTokenInvalidateRequest.md +22 -0
- data/docs/ItemAccessTokenInvalidateResponse.md +20 -0
- data/docs/ItemErrorWebhook.md +24 -0
- data/docs/ItemGetRequest.md +22 -0
- data/docs/ItemGetResponse.md +24 -0
- data/docs/ItemImportRequest.md +26 -0
- data/docs/ItemImportRequestOptions.md +18 -0
- data/docs/ItemImportRequestUserAuth.md +20 -0
- data/docs/ItemImportResponse.md +20 -0
- data/docs/ItemProductReadyWebhook.md +24 -0
- data/docs/ItemPublicTokenCreateRequest.md +22 -0
- data/docs/ItemPublicTokenCreateResponse.md +22 -0
- data/docs/ItemPublicTokenExchangeRequest.md +22 -0
- data/docs/ItemPublicTokenExchangeResponse.md +22 -0
- data/docs/ItemRemoveRequest.md +22 -0
- data/docs/ItemRemoveResponse.md +18 -0
- data/docs/ItemStatus.md +22 -0
- data/docs/ItemStatusInvestments.md +20 -0
- data/docs/ItemStatusLastWebhook.md +20 -0
- data/docs/ItemStatusTransactions.md +20 -0
- data/docs/ItemWebhookUpdateRequest.md +24 -0
- data/docs/ItemWebhookUpdateResponse.md +20 -0
- data/docs/JWKPublicKey.md +34 -0
- data/docs/JWTHeader.md +18 -0
- data/docs/LiabilitiesGetRequest.md +24 -0
- data/docs/LiabilitiesGetRequestOptions.md +18 -0
- data/docs/LiabilitiesGetResponse.md +24 -0
- data/docs/LiabilitiesObject.md +22 -0
- data/docs/LiabilityOverride.md +66 -0
- data/docs/LinkTokenAccountFilters.md +24 -0
- data/docs/LinkTokenCreateRequest.md +48 -0
- data/docs/LinkTokenCreateRequestAccountSubtypes.md +24 -0
- data/docs/LinkTokenCreateRequestAccountSubtypesCredit.md +18 -0
- data/docs/LinkTokenCreateRequestAccountSubtypesDepository.md +18 -0
- data/docs/LinkTokenCreateRequestAccountSubtypesInvestment.md +18 -0
- data/docs/LinkTokenCreateRequestAccountSubtypesLoan.md +18 -0
- data/docs/LinkTokenCreateRequestDepositSwitch.md +18 -0
- data/docs/LinkTokenCreateRequestIncomeVerification.md +20 -0
- data/docs/LinkTokenCreateRequestPaymentInitiation.md +18 -0
- data/docs/LinkTokenCreateRequestUser.md +32 -0
- data/docs/LinkTokenCreateResponse.md +22 -0
- data/docs/LinkTokenGetMetadataResponse.md +30 -0
- data/docs/LinkTokenGetRequest.md +22 -0
- data/docs/LinkTokenGetResponse.md +26 -0
- data/docs/LoanFilter.md +18 -0
- data/docs/Location.md +32 -0
- data/docs/MFA.md +26 -0
- data/docs/Meta.md +22 -0
- data/docs/MortgageInterestRate.md +20 -0
- data/docs/MortgageLiability.md +56 -0
- data/docs/MortgagePropertyAddress.md +26 -0
- data/docs/NullableAccessToken.md +15 -0
- data/docs/NullableAddress.md +20 -0
- data/docs/NullableAddressData.md +26 -0
- data/docs/NullableItemStatus.md +22 -0
- data/docs/NullableNumbersACH.md +24 -0
- data/docs/NullableNumbersBACS.md +22 -0
- data/docs/NullableNumbersEFT.md +24 -0
- data/docs/NullableNumbersInternational.md +22 -0
- data/docs/NullableRecipientBACS.md +20 -0
- data/docs/Numbers.md +32 -0
- data/docs/NumbersACH.md +24 -0
- data/docs/NumbersBACS.md +22 -0
- data/docs/NumbersEFT.md +24 -0
- data/docs/NumbersInternational.md +22 -0
- data/docs/OverrideAccounts.md +38 -0
- data/docs/Owner.md +24 -0
- data/docs/OwnerOverride.md +24 -0
- data/docs/PSLFStatus.md +22 -0
- data/docs/PayFrequency.md +20 -0
- data/docs/PayPeriodDetails.md +26 -0
- data/docs/PaymentAmount.md +20 -0
- data/docs/PaymentInitiationAddress.md +24 -0
- data/docs/PaymentInitiationPaymentCreateRequest.md +28 -0
- data/docs/PaymentInitiationPaymentCreateResponse.md +22 -0
- data/docs/PaymentInitiationPaymentGetRequest.md +22 -0
- data/docs/PaymentInitiationPaymentGetResponse.md +32 -0
- data/docs/PaymentInitiationPaymentListRequest.md +24 -0
- data/docs/PaymentInitiationPaymentListResponse.md +22 -0
- data/docs/PaymentInitiationPaymentTokenCreateRequest.md +22 -0
- data/docs/PaymentInitiationPaymentTokenCreateResponse.md +22 -0
- data/docs/PaymentInitiationRecipient.md +26 -0
- data/docs/PaymentInitiationRecipientBacs.md +20 -0
- data/docs/PaymentInitiationRecipientCreateRequest.md +28 -0
- data/docs/PaymentInitiationRecipientCreateResponse.md +20 -0
- data/docs/PaymentInitiationRecipientGetRequest.md +22 -0
- data/docs/PaymentInitiationRecipientGetResponse.md +28 -0
- data/docs/PaymentInitiationRecipientListRequest.md +20 -0
- data/docs/PaymentInitiationRecipientListResponse.md +20 -0
- data/docs/PaymentMeta.md +32 -0
- data/docs/PaymentStatusUpdateWebhook.md +30 -0
- data/docs/Paystub.md +30 -0
- data/docs/PaystubDeduction.md +22 -0
- data/docs/PaystubYTDDetails.md +20 -0
- data/docs/PendingExpirationWebhook.md +24 -0
- data/docs/PhoneNumber.md +22 -0
- data/docs/PlaidApi.md +5580 -0
- data/docs/ProcessorApexProcessorTokenCreateRequest.md +24 -0
- data/docs/ProcessorAuthGetRequest.md +22 -0
- data/docs/ProcessorAuthGetResponse.md +22 -0
- data/docs/ProcessorBalanceGetRequest.md +22 -0
- data/docs/ProcessorBalanceGetResponse.md +20 -0
- data/docs/ProcessorIdentityGetRequest.md +22 -0
- data/docs/ProcessorIdentityGetResponse.md +20 -0
- data/docs/ProcessorNumber.md +24 -0
- data/docs/ProcessorStripeBankAccountTokenCreateRequest.md +24 -0
- data/docs/ProcessorStripeBankAccountTokenCreateResponse.md +20 -0
- data/docs/ProcessorTokenCreateRequest.md +26 -0
- data/docs/ProcessorTokenCreateResponse.md +20 -0
- data/docs/ProductStatus.md +22 -0
- data/docs/ProductStatusBreakdown.md +24 -0
- data/docs/Products.md +15 -0
- data/docs/ProjectedIncomeSummaryFieldNumber.md +20 -0
- data/docs/RecaptchaRequiredError.md +30 -0
- data/docs/RecipientBACS.md +20 -0
- data/docs/SandboxBankTransferSimulateRequest.md +26 -0
- data/docs/SandboxBankTransferSimulateResponse.md +18 -0
- data/docs/SandboxItemFireWebhookRequest.md +24 -0
- data/docs/SandboxItemFireWebhookResponse.md +20 -0
- data/docs/SandboxItemResetLoginRequest.md +22 -0
- data/docs/SandboxItemResetLoginResponse.md +20 -0
- data/docs/SandboxItemSetVerificationStatusRequest.md +26 -0
- data/docs/SandboxItemSetVerificationStatusResponse.md +18 -0
- data/docs/SandboxProcessorTokenCreateRequest.md +24 -0
- data/docs/SandboxProcessorTokenCreateRequestOptions.md +20 -0
- data/docs/SandboxProcessorTokenCreateResponse.md +20 -0
- data/docs/SandboxPublicTokenCreateRequest.md +26 -0
- data/docs/SandboxPublicTokenCreateRequestOptions.md +24 -0
- data/docs/SandboxPublicTokenCreateRequestOptionsTransactions.md +20 -0
- data/docs/SandboxPublicTokenCreateResponse.md +20 -0
- data/docs/Security.md +46 -0
- data/docs/ServicerAddressData.md +26 -0
- data/docs/StandaloneAccountType.md +26 -0
- data/docs/StandaloneCurrencyCodeList.md +20 -0
- data/docs/StandaloneInvestmentTransactionSubtype.md +104 -0
- data/docs/StandaloneInvestmentTransactionType.md +28 -0
- data/docs/StudentLoan.md +66 -0
- data/docs/StudentLoanRepaymentModel.md +22 -0
- data/docs/StudentLoanStatus.md +20 -0
- data/docs/StudentRepaymentPlan.md +20 -0
- data/docs/Transaction.md +54 -0
- data/docs/TransactionCode.md +15 -0
- data/docs/TransactionData.md +26 -0
- data/docs/TransactionOverride.md +26 -0
- data/docs/TransactionsGetRequest.md +28 -0
- data/docs/TransactionsGetRequestOptions.md +22 -0
- data/docs/TransactionsGetResponse.md +26 -0
- data/docs/TransactionsRefreshRequest.md +22 -0
- data/docs/TransactionsRefreshResponse.md +18 -0
- data/docs/TransactionsRemovedWebhook.md +26 -0
- data/docs/UserCustomPassword.md +28 -0
- data/docs/UserPermissionRevokedWebhook.md +24 -0
- data/docs/VerificationExpiredWebhook.md +24 -0
- data/docs/VerificationStatus.md +15 -0
- data/docs/Warning.md +22 -0
- data/docs/WebhookUpdateAcknowledgedWebhook.md +26 -0
- data/docs/WebhookVerificationKeyGetRequest.md +22 -0
- data/docs/WebhookVerificationKeyGetResponse.md +20 -0
- data/docs/YTDGrossIncomeSummaryFieldNumber.md +20 -0
- data/docs/YTDNetIncomeSummaryFieldNumber.md +20 -0
- data/lib/plaid.rb +343 -60
- data/lib/plaid/api/plaid_api.rb +4414 -0
- data/lib/plaid/api_client.rb +383 -0
- data/lib/plaid/api_error.rb +57 -0
- data/lib/plaid/configuration.rb +297 -0
- data/lib/plaid/models/account_assets.rb +406 -0
- data/lib/plaid/models/account_assets_all_of.rb +263 -0
- data/lib/plaid/models/account_balance.rb +269 -0
- data/lib/plaid/models/account_base.rb +345 -0
- data/lib/plaid/models/account_filters_response.rb +246 -0
- data/lib/plaid/models/account_identity.rb +369 -0
- data/lib/plaid/models/account_identity_all_of.rb +226 -0
- data/lib/plaid/models/account_subtype.rb +101 -0
- data/lib/plaid/models/account_type.rb +41 -0
- data/lib/plaid/models/accounts_balance_get_request.rb +254 -0
- data/lib/plaid/models/accounts_balance_get_request_options.rb +222 -0
- data/lib/plaid/models/accounts_get_request.rb +254 -0
- data/lib/plaid/models/accounts_get_request_options.rb +222 -0
- data/lib/plaid/models/accounts_get_response.rb +256 -0
- data/lib/plaid/models/ach_class.rb +50 -0
- data/lib/plaid/models/address.rb +235 -0
- data/lib/plaid/models/address_data.rb +277 -0
- data/lib/plaid/models/amount.rb +274 -0
- data/lib/plaid/models/apr.rb +296 -0
- data/lib/plaid/models/asset_report.rb +301 -0
- data/lib/plaid/models/asset_report_audit_copy_create_request.rb +260 -0
- data/lib/plaid/models/asset_report_audit_copy_create_response.rb +240 -0
- data/lib/plaid/models/asset_report_audit_copy_get_request.rb +245 -0
- data/lib/plaid/models/asset_report_audit_copy_remove_request.rb +245 -0
- data/lib/plaid/models/asset_report_audit_copy_remove_response.rb +240 -0
- data/lib/plaid/models/asset_report_create_request.rb +299 -0
- data/lib/plaid/models/asset_report_create_request_options.rb +239 -0
- data/lib/plaid/models/asset_report_create_response.rb +255 -0
- data/lib/plaid/models/asset_report_filter_request.rb +262 -0
- data/lib/plaid/models/asset_report_filter_response.rb +255 -0
- data/lib/plaid/models/asset_report_get_request.rb +255 -0
- data/lib/plaid/models/asset_report_get_response.rb +256 -0
- data/lib/plaid/models/asset_report_item.rb +287 -0
- data/lib/plaid/models/asset_report_pdf_get_request.rb +245 -0
- data/lib/plaid/models/asset_report_refresh_request.rb +288 -0
- data/lib/plaid/models/asset_report_refresh_request_options.rb +239 -0
- data/lib/plaid/models/asset_report_refresh_response.rb +255 -0
- data/lib/plaid/models/asset_report_remove_request.rb +245 -0
- data/lib/plaid/models/asset_report_remove_response.rb +240 -0
- data/lib/plaid/models/asset_report_transaction.rb +511 -0
- data/lib/plaid/models/asset_report_transaction_all_of.rb +235 -0
- data/lib/plaid/models/asset_report_user.rb +287 -0
- data/lib/plaid/models/assets_error_webhook.rb +265 -0
- data/lib/plaid/models/assets_product_ready_webhook.rb +255 -0
- data/lib/plaid/models/auth_get_numbers.rb +258 -0
- data/lib/plaid/models/auth_get_request.rb +254 -0
- data/lib/plaid/models/auth_get_request_options.rb +222 -0
- data/lib/plaid/models/auth_get_response.rb +270 -0
- data/lib/plaid/models/automatically_verified_webhook.rb +270 -0
- data/lib/plaid/models/bank_transfer.rb +444 -0
- data/lib/plaid/models/bank_transfer_balance.rb +239 -0
- data/lib/plaid/models/bank_transfer_balance_get_request.rb +241 -0
- data/lib/plaid/models/bank_transfer_balance_get_response.rb +250 -0
- data/lib/plaid/models/bank_transfer_cancel_request.rb +245 -0
- data/lib/plaid/models/bank_transfer_cancel_response.rb +225 -0
- data/lib/plaid/models/bank_transfer_create_request.rb +459 -0
- data/lib/plaid/models/bank_transfer_create_response.rb +239 -0
- data/lib/plaid/models/bank_transfer_direction.rb +37 -0
- data/lib/plaid/models/bank_transfer_event.rb +388 -0
- data/lib/plaid/models/bank_transfer_event_list_request.rb +418 -0
- data/lib/plaid/models/bank_transfer_event_list_response.rb +241 -0
- data/lib/plaid/models/bank_transfer_event_sync_request.rb +301 -0
- data/lib/plaid/models/bank_transfer_event_sync_response.rb +241 -0
- data/lib/plaid/models/bank_transfer_event_type.rb +42 -0
- data/lib/plaid/models/bank_transfer_failure.rb +231 -0
- data/lib/plaid/models/bank_transfer_get_request.rb +245 -0
- data/lib/plaid/models/bank_transfer_get_response.rb +239 -0
- data/lib/plaid/models/bank_transfer_list_request.rb +336 -0
- data/lib/plaid/models/bank_transfer_list_response.rb +241 -0
- data/lib/plaid/models/bank_transfer_migrate_account_request.rb +275 -0
- data/lib/plaid/models/bank_transfer_migrate_account_response.rb +255 -0
- data/lib/plaid/models/bank_transfer_network.rb +38 -0
- data/lib/plaid/models/bank_transfer_receiver_details.rb +255 -0
- data/lib/plaid/models/bank_transfer_status.rb +40 -0
- data/lib/plaid/models/bank_transfer_type.rb +37 -0
- data/lib/plaid/models/bank_transfer_user.rb +246 -0
- data/lib/plaid/models/categories_get_response.rb +242 -0
- data/lib/plaid/models/category.rb +257 -0
- data/lib/plaid/models/cause.rb +235 -0
- data/lib/plaid/models/country_code.rb +42 -0
- data/lib/plaid/models/credit_card_liability.rb +339 -0
- data/lib/plaid/models/credit_filter.rb +227 -0
- data/lib/plaid/models/default_update_webhook.rb +280 -0
- data/lib/plaid/models/deposit_switch_address_data.rb +285 -0
- data/lib/plaid/models/deposit_switch_alt_create_request.rb +258 -0
- data/lib/plaid/models/deposit_switch_alt_create_response.rb +240 -0
- data/lib/plaid/models/deposit_switch_create_request.rb +260 -0
- data/lib/plaid/models/deposit_switch_create_response.rb +240 -0
- data/lib/plaid/models/deposit_switch_get_request.rb +245 -0
- data/lib/plaid/models/deposit_switch_get_response.rb +381 -0
- data/lib/plaid/models/deposit_switch_target_account.rb +303 -0
- data/lib/plaid/models/deposit_switch_target_user.rb +288 -0
- data/lib/plaid/models/deposit_switch_token_create_request.rb +245 -0
- data/lib/plaid/models/deposit_switch_token_create_response.rb +255 -0
- data/lib/plaid/models/depository_filter.rb +227 -0
- data/lib/plaid/models/email.rb +289 -0
- data/lib/plaid/models/employee.rb +242 -0
- data/lib/plaid/models/employee_income_summary_field_string.rb +245 -0
- data/lib/plaid/models/employer.rb +261 -0
- data/lib/plaid/models/employer_income_summary_field_string.rb +245 -0
- data/lib/plaid/models/employers_search_request.rb +262 -0
- data/lib/plaid/models/employers_search_response.rb +242 -0
- data/lib/plaid/models/error.rb +360 -0
- data/lib/plaid/models/external_payment_schedule.rb +265 -0
- data/lib/plaid/models/health_incident.rb +253 -0
- data/lib/plaid/models/historical_balance.rb +262 -0
- data/lib/plaid/models/historical_update_webhook.rb +280 -0
- data/lib/plaid/models/holding.rb +329 -0
- data/lib/plaid/models/holdings_default_update_webhook.rb +295 -0
- data/lib/plaid/models/identity_get_request.rb +254 -0
- data/lib/plaid/models/identity_get_request_options.rb +222 -0
- data/lib/plaid/models/identity_get_response.rb +256 -0
- data/lib/plaid/models/incident_update.rb +273 -0
- data/lib/plaid/models/income_breakdown.rb +253 -0
- data/lib/plaid/models/income_summary.rb +275 -0
- data/lib/plaid/models/income_summary_field_number.rb +238 -0
- data/lib/plaid/models/income_summary_field_string.rb +238 -0
- data/lib/plaid/models/income_verification_create_request.rb +245 -0
- data/lib/plaid/models/income_verification_create_response.rb +240 -0
- data/lib/plaid/models/income_verification_documents_download_request.rb +245 -0
- data/lib/plaid/models/income_verification_documents_download_response.rb +224 -0
- data/lib/plaid/models/income_verification_paystub_get_request.rb +245 -0
- data/lib/plaid/models/income_verification_paystub_get_response.rb +229 -0
- data/lib/plaid/models/income_verification_status_webhook.rb +270 -0
- data/lib/plaid/models/income_verification_summary_get_request.rb +245 -0
- data/lib/plaid/models/income_verification_summary_get_response.rb +242 -0
- data/lib/plaid/models/income_verification_webhook_status.rb +223 -0
- data/lib/plaid/models/inflow_model.rb +285 -0
- data/lib/plaid/models/initial_update_webhook.rb +281 -0
- data/lib/plaid/models/institution.rb +344 -0
- data/lib/plaid/models/institution_status.rb +307 -0
- data/lib/plaid/models/institutions_get_by_id_request.rb +271 -0
- data/lib/plaid/models/institutions_get_by_id_request_options.rb +234 -0
- data/lib/plaid/models/institutions_get_by_id_response.rb +239 -0
- data/lib/plaid/models/institutions_get_request.rb +305 -0
- data/lib/plaid/models/institutions_get_request_options.rb +254 -0
- data/lib/plaid/models/institutions_get_response.rb +257 -0
- data/lib/plaid/models/institutions_search_account_filter.rb +253 -0
- data/lib/plaid/models/institutions_search_request.rb +288 -0
- data/lib/plaid/models/institutions_search_request_options.rb +239 -0
- data/lib/plaid/models/institutions_search_response.rb +242 -0
- data/lib/plaid/models/investment_filter.rb +227 -0
- data/lib/plaid/models/investment_holdings_get_request_options.rb +222 -0
- data/lib/plaid/models/investment_transaction.rb +445 -0
- data/lib/plaid/models/investments_default_update_webhook.rb +295 -0
- data/lib/plaid/models/investments_holdings_get_request.rb +254 -0
- data/lib/plaid/models/investments_holdings_get_response.rb +290 -0
- data/lib/plaid/models/investments_transactions_get_request.rb +284 -0
- data/lib/plaid/models/investments_transactions_get_request_options.rb +285 -0
- data/lib/plaid/models/investments_transactions_get_response.rb +305 -0
- data/lib/plaid/models/item.rb +311 -0
- data/lib/plaid/models/item_access_token_invalidate_request.rb +245 -0
- data/lib/plaid/models/item_access_token_invalidate_response.rb +240 -0
- data/lib/plaid/models/item_error_webhook.rb +265 -0
- data/lib/plaid/models/item_get_request.rb +245 -0
- data/lib/plaid/models/item_get_response.rb +259 -0
- data/lib/plaid/models/item_import_request.rb +270 -0
- data/lib/plaid/models/item_import_request_options.rb +220 -0
- data/lib/plaid/models/item_import_request_user_auth.rb +240 -0
- data/lib/plaid/models/item_import_response.rb +240 -0
- data/lib/plaid/models/item_product_ready_webhook.rb +265 -0
- data/lib/plaid/models/item_public_token_create_request.rb +245 -0
- data/lib/plaid/models/item_public_token_create_response.rb +249 -0
- data/lib/plaid/models/item_public_token_exchange_request.rb +245 -0
- data/lib/plaid/models/item_public_token_exchange_response.rb +255 -0
- data/lib/plaid/models/item_remove_request.rb +245 -0
- data/lib/plaid/models/item_remove_response.rb +225 -0
- data/lib/plaid/models/item_status.rb +240 -0
- data/lib/plaid/models/item_status_investments.rb +232 -0
- data/lib/plaid/models/item_status_last_webhook.rb +232 -0
- data/lib/plaid/models/item_status_transactions.rb +232 -0
- data/lib/plaid/models/item_webhook_update_request.rb +260 -0
- data/lib/plaid/models/item_webhook_update_response.rb +239 -0
- data/lib/plaid/models/jwk_public_key.rb +299 -0
- data/lib/plaid/models/jwt_header.rb +224 -0
- data/lib/plaid/models/liabilities_get_request.rb +254 -0
- data/lib/plaid/models/liabilities_get_request_options.rb +222 -0
- data/lib/plaid/models/liabilities_get_response.rb +270 -0
- data/lib/plaid/models/liabilities_object.rb +249 -0
- data/lib/plaid/models/liability_override.rb +583 -0
- data/lib/plaid/models/link_token_account_filters.rb +246 -0
- data/lib/plaid/models/link_token_create_request.rb +390 -0
- data/lib/plaid/models/link_token_create_request_account_subtypes.rb +246 -0
- data/lib/plaid/models/link_token_create_request_account_subtypes_credit.rb +222 -0
- data/lib/plaid/models/link_token_create_request_account_subtypes_depository.rb +222 -0
- data/lib/plaid/models/link_token_create_request_account_subtypes_investment.rb +222 -0
- data/lib/plaid/models/link_token_create_request_account_subtypes_loan.rb +222 -0
- data/lib/plaid/models/link_token_create_request_deposit_switch.rb +225 -0
- data/lib/plaid/models/link_token_create_request_income_verification.rb +236 -0
- data/lib/plaid/models/link_token_create_request_payment_initiation.rb +225 -0
- data/lib/plaid/models/link_token_create_request_user.rb +295 -0
- data/lib/plaid/models/link_token_create_response.rb +255 -0
- data/lib/plaid/models/link_token_get_metadata_response.rb +287 -0
- data/lib/plaid/models/link_token_get_request.rb +245 -0
- data/lib/plaid/models/link_token_get_response.rb +266 -0
- data/lib/plaid/models/loan_filter.rb +227 -0
- data/lib/plaid/models/location.rb +298 -0
- data/lib/plaid/models/meta.rb +255 -0
- data/lib/plaid/models/mfa.rb +285 -0
- data/lib/plaid/models/mortgage_interest_rate.rb +232 -0
- data/lib/plaid/models/mortgage_liability.rb +430 -0
- data/lib/plaid/models/mortgage_property_address.rb +265 -0
- data/lib/plaid/models/nullable_access_token.rb +209 -0
- data/lib/plaid/models/nullable_address.rb +241 -0
- data/lib/plaid/models/nullable_address_data.rb +283 -0
- data/lib/plaid/models/nullable_item_status.rb +246 -0
- data/lib/plaid/models/nullable_numbers_ach.rb +272 -0
- data/lib/plaid/models/nullable_numbers_bacs.rb +261 -0
- data/lib/plaid/models/nullable_numbers_eft.rb +276 -0
- data/lib/plaid/models/nullable_numbers_international.rb +261 -0
- data/lib/plaid/models/nullable_recipient_bacs.rb +236 -0
- data/lib/plaid/models/numbers.rb +330 -0
- data/lib/plaid/models/numbers_ach.rb +266 -0
- data/lib/plaid/models/numbers_bacs.rb +255 -0
- data/lib/plaid/models/numbers_eft.rb +270 -0
- data/lib/plaid/models/numbers_international.rb +255 -0
- data/lib/plaid/models/override_accounts.rb +366 -0
- data/lib/plaid/models/owner.rb +278 -0
- data/lib/plaid/models/owner_override.rb +278 -0
- data/lib/plaid/models/pay_frequency.rb +272 -0
- data/lib/plaid/models/pay_period_details.rb +265 -0
- data/lib/plaid/models/payment_amount.rb +240 -0
- data/lib/plaid/models/payment_initiation_address.rb +252 -0
- data/lib/plaid/models/payment_initiation_payment_create_request.rb +284 -0
- data/lib/plaid/models/payment_initiation_payment_create_response.rb +255 -0
- data/lib/plaid/models/payment_initiation_payment_get_request.rb +245 -0
- data/lib/plaid/models/payment_initiation_payment_get_response.rb +353 -0
- data/lib/plaid/models/payment_initiation_payment_list_request.rb +267 -0
- data/lib/plaid/models/payment_initiation_payment_list_response.rb +257 -0
- data/lib/plaid/models/payment_initiation_payment_token_create_request.rb +245 -0
- data/lib/plaid/models/payment_initiation_payment_token_create_response.rb +255 -0
- data/lib/plaid/models/payment_initiation_recipient.rb +271 -0
- data/lib/plaid/models/payment_initiation_recipient_bacs.rb +237 -0
- data/lib/plaid/models/payment_initiation_recipient_create_request.rb +275 -0
- data/lib/plaid/models/payment_initiation_recipient_create_response.rb +240 -0
- data/lib/plaid/models/payment_initiation_recipient_get_request.rb +245 -0
- data/lib/plaid/models/payment_initiation_recipient_get_response.rb +286 -0
- data/lib/plaid/models/payment_initiation_recipient_list_request.rb +230 -0
- data/lib/plaid/models/payment_initiation_recipient_list_response.rb +242 -0
- data/lib/plaid/models/payment_meta.rb +298 -0
- data/lib/plaid/models/payment_status_update_webhook.rb +356 -0
- data/lib/plaid/models/paystub.rb +306 -0
- data/lib/plaid/models/paystub_deduction.rb +242 -0
- data/lib/plaid/models/paystub_ytd_details.rb +239 -0
- data/lib/plaid/models/pending_expiration_webhook.rb +270 -0
- data/lib/plaid/models/phone_number.rb +281 -0
- data/lib/plaid/models/processor_apex_processor_token_create_request.rb +260 -0
- data/lib/plaid/models/processor_auth_get_request.rb +245 -0
- data/lib/plaid/models/processor_auth_get_response.rb +253 -0
- data/lib/plaid/models/processor_balance_get_request.rb +245 -0
- data/lib/plaid/models/processor_balance_get_response.rb +239 -0
- data/lib/plaid/models/processor_identity_get_request.rb +245 -0
- data/lib/plaid/models/processor_identity_get_response.rb +239 -0
- data/lib/plaid/models/processor_number.rb +250 -0
- data/lib/plaid/models/processor_stripe_bank_account_token_create_request.rb +260 -0
- data/lib/plaid/models/processor_stripe_bank_account_token_create_response.rb +240 -0
- data/lib/plaid/models/processor_token_create_request.rb +275 -0
- data/lib/plaid/models/processor_token_create_response.rb +240 -0
- data/lib/plaid/models/product_status.rb +288 -0
- data/lib/plaid/models/product_status_breakdown.rb +300 -0
- data/lib/plaid/models/products.rb +45 -0
- data/lib/plaid/models/projected_income_summary_field_number.rb +245 -0
- data/lib/plaid/models/pslf_status.rb +243 -0
- data/lib/plaid/models/recaptcha_required_error.rb +314 -0
- data/lib/plaid/models/recipient_bacs.rb +230 -0
- data/lib/plaid/models/sandbox_bank_transfer_simulate_request.rb +270 -0
- data/lib/plaid/models/sandbox_bank_transfer_simulate_response.rb +225 -0
- data/lib/plaid/models/sandbox_item_fire_webhook_request.rb +289 -0
- data/lib/plaid/models/sandbox_item_fire_webhook_response.rb +240 -0
- data/lib/plaid/models/sandbox_item_reset_login_request.rb +245 -0
- data/lib/plaid/models/sandbox_item_reset_login_response.rb +240 -0
- data/lib/plaid/models/sandbox_item_set_verification_status_request.rb +309 -0
- data/lib/plaid/models/sandbox_item_set_verification_status_response.rb +225 -0
- data/lib/plaid/models/sandbox_processor_token_create_request.rb +253 -0
- data/lib/plaid/models/sandbox_processor_token_create_request_options.rb +236 -0
- data/lib/plaid/models/sandbox_processor_token_create_response.rb +239 -0
- data/lib/plaid/models/sandbox_public_token_create_request.rb +271 -0
- data/lib/plaid/models/sandbox_public_token_create_request_options.rb +255 -0
- data/lib/plaid/models/sandbox_public_token_create_request_options_transactions.rb +230 -0
- data/lib/plaid/models/sandbox_public_token_create_response.rb +240 -0
- data/lib/plaid/models/security.rb +382 -0
- data/lib/plaid/models/servicer_address_data.rb +265 -0
- data/lib/plaid/models/standalone_account_type.rb +285 -0
- data/lib/plaid/models/standalone_currency_code_list.rb +240 -0
- data/lib/plaid/models/standalone_investment_transaction_subtype.rb +650 -0
- data/lib/plaid/models/standalone_investment_transaction_type.rb +300 -0
- data/lib/plaid/models/student_loan.rb +483 -0
- data/lib/plaid/models/student_loan_repayment_model.rb +255 -0
- data/lib/plaid/models/student_loan_status.rb +266 -0
- data/lib/plaid/models/student_repayment_plan.rb +266 -0
- data/lib/plaid/models/transaction.rb +478 -0
- data/lib/plaid/models/transaction_code.rb +48 -0
- data/lib/plaid/models/transaction_data.rb +285 -0
- data/lib/plaid/models/transaction_override.rb +280 -0
- data/lib/plaid/models/transactions_get_request.rb +284 -0
- data/lib/plaid/models/transactions_get_request_options.rb +285 -0
- data/lib/plaid/models/transactions_get_response.rb +288 -0
- data/lib/plaid/models/transactions_refresh_request.rb +240 -0
- data/lib/plaid/models/transactions_refresh_response.rb +225 -0
- data/lib/plaid/models/transactions_removed_webhook.rb +282 -0
- data/lib/plaid/models/user_custom_password.rb +297 -0
- data/lib/plaid/models/user_permission_revoked_webhook.rb +265 -0
- data/lib/plaid/models/verification_expired_webhook.rb +270 -0
- data/lib/plaid/models/verification_status.rb +40 -0
- data/lib/plaid/models/warning.rb +254 -0
- data/lib/plaid/models/webhook_update_acknowledged_webhook.rb +280 -0
- data/lib/plaid/models/webhook_verification_key_get_request.rb +245 -0
- data/lib/plaid/models/webhook_verification_key_get_response.rb +239 -0
- data/lib/plaid/models/ytd_gross_income_summary_field_number.rb +245 -0
- data/lib/plaid/models/ytd_net_income_summary_field_number.rb +245 -0
- data/lib/plaid/version.rb +13 -2
- data/plaid.gemspec +44 -49
- data/templates/ruby/api_client.mustache +266 -0
- data/templates/ruby/api_client_faraday_partial.mustache +120 -0
- data/templates/ruby/configuration.mustache +353 -0
- data/templates/ruby/gemspec.mustache +41 -0
- data/test/test_accounts.rb +103 -0
- data/test/test_asset_report.rb +147 -0
- data/test/test_auth.rb +61 -0
- data/test/test_bank_transfers.rb +219 -0
- data/test/test_categories.rb +10 -0
- data/test/test_configuration.rb +26 -0
- data/test/test_deposit_switch.rb +73 -0
- data/test/test_helper.rb +109 -0
- data/test/test_identity.rb +38 -0
- data/test/test_institutions.rb +159 -0
- data/test/test_investments.rb +205 -0
- data/test/test_item.rb +285 -0
- data/test/test_liabilities.rb +45 -0
- data/test/test_link_token.rb +97 -0
- data/test/test_payment_initiation.rb +95 -0
- data/test/test_processor.rb +67 -0
- data/test/test_transactions.rb +165 -0
- data/test/test_webhooks.rb +22 -0
- metadata +687 -97
- data/.circleci/config.yml +0 -21
- data/.env.sample +0 -3
- data/.rubocop.yml +0 -18
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/lib/plaid/client.rb +0 -197
- data/lib/plaid/errors.rb +0 -89
- data/lib/plaid/middleware.rb +0 -31
- data/lib/plaid/models.rb +0 -2076
- data/lib/plaid/products/accounts.rb +0 -63
- data/lib/plaid/products/asset_report.rb +0 -199
- data/lib/plaid/products/auth.rb +0 -42
- data/lib/plaid/products/base_product.rb +0 -69
- data/lib/plaid/products/categories.rb +0 -21
- data/lib/plaid/products/credit_details.rb +0 -40
- data/lib/plaid/products/deposit_switch.rb +0 -99
- data/lib/plaid/products/identity.rb +0 -31
- data/lib/plaid/products/income.rb +0 -31
- data/lib/plaid/products/institutions.rb +0 -88
- data/lib/plaid/products/investments.rb +0 -127
- data/lib/plaid/products/item.rb +0 -232
- data/lib/plaid/products/liabilities.rb +0 -39
- data/lib/plaid/products/payment_initiation.rb +0 -218
- data/lib/plaid/products/processor.rb +0 -190
- data/lib/plaid/products/sandbox.rb +0 -148
- data/lib/plaid/products/transactions.rb +0 -81
- data/lib/plaid/products/webhooks.rb +0 -23
@@ -1,63 +0,0 @@
|
|
1
|
-
module Plaid
|
2
|
-
# Public: Class used to call the Balance product.
|
3
|
-
class Balance < BaseProduct
|
4
|
-
# Public: Get information about all available balances.
|
5
|
-
#
|
6
|
-
# Does a POST /accounts/balance/get call to get real-time balance
|
7
|
-
# information for all accounts associated with the access_token's item.
|
8
|
-
#
|
9
|
-
# access_token - The String access_token for the item to fetch balances
|
10
|
-
# for.
|
11
|
-
# account_ids - The Array with specific account IDs to fetch balances for
|
12
|
-
# (optional).
|
13
|
-
# options - Additional options to be merged into the request
|
14
|
-
# (optional).
|
15
|
-
#
|
16
|
-
# Returns the AccountsResponse object with accounts information.
|
17
|
-
def get(access_token, account_ids: nil, options: nil)
|
18
|
-
post_with_auth 'accounts/balance/get',
|
19
|
-
AccountsResponse,
|
20
|
-
build_payload(access_token,
|
21
|
-
account_ids: account_ids,
|
22
|
-
options: options)
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
# Public: Class used to call the Accounts product.
|
27
|
-
class Accounts < BaseProduct
|
28
|
-
##
|
29
|
-
# Public: The Plaid::Balance product accessor.
|
30
|
-
subproduct :balance
|
31
|
-
|
32
|
-
# Public: Get information about all available accounts.
|
33
|
-
#
|
34
|
-
# Does a POST /accounts/get call to retrieve high level account information
|
35
|
-
# associated with an access_token's item
|
36
|
-
#
|
37
|
-
# access_token - access_token who's item to fetch accounts for
|
38
|
-
# account_ids - Specific account ids to fetch accounts for (optional)
|
39
|
-
# options - Additional options to be merged into API request
|
40
|
-
#
|
41
|
-
# Returns the AccountsResponse object with accounts information.
|
42
|
-
def get(access_token, account_ids: nil, options: nil)
|
43
|
-
post_with_auth 'accounts/get',
|
44
|
-
AccountsResponse,
|
45
|
-
build_payload(access_token,
|
46
|
-
account_ids: account_ids,
|
47
|
-
options: options)
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
# Public: The response wrapper for /accounts/get and /accounts/balance/get.
|
52
|
-
class AccountsResponse < Models::BaseResponse
|
53
|
-
##
|
54
|
-
# :attr_reader:
|
55
|
-
# Public: The item: Plaid::Models::Item.
|
56
|
-
property :item, coerce: Models::Item
|
57
|
-
|
58
|
-
##
|
59
|
-
# :attr_reader:
|
60
|
-
# Public: The list of accounts: Array of Plaid::Models::Account.
|
61
|
-
property :accounts, coerce: Array[Models::Account]
|
62
|
-
end
|
63
|
-
end
|
@@ -1,199 +0,0 @@
|
|
1
|
-
module Plaid
|
2
|
-
# Public: Class used to call the Assets product. Documentation available at
|
3
|
-
# https://plaid.com/docs/api/#assets.
|
4
|
-
class AssetReport < BaseProduct
|
5
|
-
# Public: Create an asset report.
|
6
|
-
#
|
7
|
-
# access_tokens - An array of access tokens, one token for each Item to be
|
8
|
-
# included in the Asset Report.
|
9
|
-
# days_requested - Days of transaction history requested to be included in
|
10
|
-
# the Asset Report. Plaid will return as much data as
|
11
|
-
# possible within the implied date range, up to a maximum
|
12
|
-
# of 730 days (2 years) of history.
|
13
|
-
# options - An optional object containing client-provided user
|
14
|
-
# information, a client-provided report ID, and a webhook.
|
15
|
-
# For more information, see the website listed above.
|
16
|
-
#
|
17
|
-
# Returns a AssetReportCreateResponse object.
|
18
|
-
def create(access_tokens, days_requested, options = {})
|
19
|
-
post_with_auth 'asset_report/create',
|
20
|
-
AssetReportCreateResponse,
|
21
|
-
access_tokens: access_tokens,
|
22
|
-
days_requested: days_requested,
|
23
|
-
options: options
|
24
|
-
end
|
25
|
-
|
26
|
-
# Public: Create a new, filtered asset report.
|
27
|
-
#
|
28
|
-
# asset_report_token - The asset report token for the asset report you
|
29
|
-
# want to filter.
|
30
|
-
# account_ids_to_exclude - The list of account IDs to exclude from the
|
31
|
-
# original asset report.
|
32
|
-
#
|
33
|
-
# Returns a AssetReportFilterResponse object.
|
34
|
-
def filter(asset_report_token, account_ids_to_exclude)
|
35
|
-
post_with_auth 'asset_report/filter',
|
36
|
-
AssetReportFilterResponse,
|
37
|
-
asset_report_token: asset_report_token,
|
38
|
-
account_ids_to_exclude: account_ids_to_exclude
|
39
|
-
end
|
40
|
-
|
41
|
-
# Public: Create a new, refreshed asset report.
|
42
|
-
#
|
43
|
-
# asset_report_token - The asset report token for the asset report you want
|
44
|
-
# to refresh.
|
45
|
-
# days_requested - Days of transaction history requested to be included
|
46
|
-
# in the Asset Report. Plaid will return as much data
|
47
|
-
# as possible within the implied date range, up to a
|
48
|
-
# maximum of 730 days (2 years) of history.
|
49
|
-
# options - An optional object containing client-provided user
|
50
|
-
# information, a client-provided report ID, and a
|
51
|
-
# webhook. For more information, see the website
|
52
|
-
# listed above.
|
53
|
-
#
|
54
|
-
# Returns a AssetReportRefreshResponse object.
|
55
|
-
def refresh(asset_report_token, days_requested, options = {})
|
56
|
-
post_with_auth 'asset_report/refresh',
|
57
|
-
AssetReportRefreshResponse,
|
58
|
-
asset_report_token: asset_report_token,
|
59
|
-
days_requested: days_requested,
|
60
|
-
options: options
|
61
|
-
end
|
62
|
-
|
63
|
-
# Public: Retrieve an asset report.
|
64
|
-
#
|
65
|
-
# asset_report_token - The asset report token from the `create` response.
|
66
|
-
# include_insights - An optional boolean specifying whether we should
|
67
|
-
# retrieve the report as an "Assets + Insights"
|
68
|
-
# report. For information about Assets + Insights
|
69
|
-
# reports, see https://plaid.com/docs/#assets.
|
70
|
-
#
|
71
|
-
# Returns a AssetReportGetResponse object.
|
72
|
-
def get(asset_report_token, include_insights: false)
|
73
|
-
post_with_auth 'asset_report/get',
|
74
|
-
AssetReportGetResponse,
|
75
|
-
asset_report_token: asset_report_token,
|
76
|
-
include_insights: include_insights
|
77
|
-
end
|
78
|
-
|
79
|
-
# Public: Retrieve an asset report as a PDF.
|
80
|
-
#
|
81
|
-
# asset_report_token - The asset report token from the `create` response.
|
82
|
-
#
|
83
|
-
# Returns the PDF.
|
84
|
-
def get_pdf(asset_report_token)
|
85
|
-
client.post_with_auth 'asset_report/pdf/get',
|
86
|
-
asset_report_token: asset_report_token
|
87
|
-
end
|
88
|
-
|
89
|
-
# Public: Remove an asset report.
|
90
|
-
#
|
91
|
-
# asset_report_token - The asset report token from the `create` response.
|
92
|
-
#
|
93
|
-
# Returns a AssetReportRemoveResponse object.
|
94
|
-
def remove(asset_report_token)
|
95
|
-
post_with_auth 'asset_report/remove',
|
96
|
-
AssetReportRemoveResponse,
|
97
|
-
asset_report_token: asset_report_token
|
98
|
-
end
|
99
|
-
|
100
|
-
# Public: Create an audit copy token.
|
101
|
-
#
|
102
|
-
# asset_report_token - The asset report token from the `create` response.
|
103
|
-
# auditor_id - The ID of the third party with which you would like
|
104
|
-
# to share the asset report.
|
105
|
-
#
|
106
|
-
# Returns a AuditCopyCreateResponse object.
|
107
|
-
def create_audit_copy(asset_report_token, auditor_id)
|
108
|
-
post_with_auth 'asset_report/audit_copy/create',
|
109
|
-
AuditCopyCreateResponse,
|
110
|
-
asset_report_token: asset_report_token,
|
111
|
-
auditor_id: auditor_id
|
112
|
-
end
|
113
|
-
|
114
|
-
# Public: Retrieve an audit copy.
|
115
|
-
#
|
116
|
-
# audit_copy_token - The audit copy token from the `create_audit_copy`
|
117
|
-
# response.
|
118
|
-
#
|
119
|
-
# Returns a AuditCopyGetResponse object.
|
120
|
-
def get_audit_copy(audit_copy_token)
|
121
|
-
post_with_auth 'asset_report/audit_copy/get',
|
122
|
-
AuditCopyGetResponse,
|
123
|
-
audit_copy_token: audit_copy_token
|
124
|
-
end
|
125
|
-
|
126
|
-
# Public: Remove an audit copy token.
|
127
|
-
#
|
128
|
-
# audit_copy_token - The audit copy token from the `create` response.
|
129
|
-
#
|
130
|
-
# Returns a AuditCopyRemoveResponse object.
|
131
|
-
def remove_audit_copy(audit_copy_token)
|
132
|
-
post_with_auth 'asset_report/audit_copy/remove',
|
133
|
-
AuditCopyRemoveResponse,
|
134
|
-
audit_copy_token: audit_copy_token
|
135
|
-
end
|
136
|
-
end
|
137
|
-
|
138
|
-
# Public: The response wrapper for /asset_report/create.
|
139
|
-
class AssetReportCreateResponse < Models::BaseResponse
|
140
|
-
##
|
141
|
-
# :attr_reader:
|
142
|
-
# Public: The asset report token.
|
143
|
-
property :asset_report_token
|
144
|
-
|
145
|
-
##
|
146
|
-
# :attr_reader:
|
147
|
-
# Public: The asset report ID.
|
148
|
-
property :asset_report_id
|
149
|
-
end
|
150
|
-
|
151
|
-
# Public: The response wrapper for /asset_report/filter.
|
152
|
-
class AssetReportFilterResponse < AssetReportCreateResponse
|
153
|
-
end
|
154
|
-
|
155
|
-
# Public: The response wrapper for /asset_report/refresh.
|
156
|
-
class AssetReportRefreshResponse < AssetReportCreateResponse
|
157
|
-
end
|
158
|
-
|
159
|
-
# Public: The response wrapper for /asset_report/get.
|
160
|
-
class AssetReportGetResponse < Models::BaseResponse
|
161
|
-
##
|
162
|
-
# :attr_reader:
|
163
|
-
# Public: The asset report token.
|
164
|
-
property :report, coerce: Models::AssetReport
|
165
|
-
|
166
|
-
##
|
167
|
-
# :attr_reader:
|
168
|
-
# Public: Warnings encountered during asset report generation.
|
169
|
-
property :warnings, coerce: Array[Models::Warning]
|
170
|
-
end
|
171
|
-
|
172
|
-
# Public: The response wrapper for /asset_report/remove.
|
173
|
-
class AssetReportRemoveResponse < Models::BaseResponse
|
174
|
-
##
|
175
|
-
# :attr_reader:
|
176
|
-
# Public: A boolean indicating whether the report was removed.
|
177
|
-
property :removed
|
178
|
-
end
|
179
|
-
|
180
|
-
# Public: The response wrapper for /asset_report/audit_copy/create.
|
181
|
-
class AuditCopyCreateResponse < Models::BaseResponse
|
182
|
-
##
|
183
|
-
# :attr_reader:
|
184
|
-
# Public: The audit copy token.
|
185
|
-
property :audit_copy_token
|
186
|
-
end
|
187
|
-
|
188
|
-
# Public: The response wrapper for /asset_report/audit_copy/get.
|
189
|
-
class AuditCopyGetResponse < AssetReportGetResponse
|
190
|
-
end
|
191
|
-
|
192
|
-
# Public: The response wrapper for /asset_report/audit_copy/remove.
|
193
|
-
class AuditCopyRemoveResponse < Models::BaseResponse
|
194
|
-
##
|
195
|
-
# :attr_reader:
|
196
|
-
# Public: A boolean indicating whether the audit copy was removed.
|
197
|
-
property :removed
|
198
|
-
end
|
199
|
-
end
|
data/lib/plaid/products/auth.rb
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
module Plaid
|
2
|
-
# Public: Class used to call the Auth product.
|
3
|
-
class Auth < BaseProduct
|
4
|
-
# Public: Get information about account and routing numbers for checking
|
5
|
-
# and savings accounts.
|
6
|
-
#
|
7
|
-
# Does a POST /auth/get call which returns high level account information
|
8
|
-
# along with account and routing numbers for checking and savings
|
9
|
-
# accounts.
|
10
|
-
#
|
11
|
-
# access_token - access_token who's item to fetch Auth for.
|
12
|
-
# account_ids - Specific account ids to fetch numbers for (optional).
|
13
|
-
# options - Additional options to merge into API request.
|
14
|
-
#
|
15
|
-
# Returns AuthResponse.
|
16
|
-
def get(access_token, account_ids: nil, options: nil)
|
17
|
-
post_with_auth 'auth/get',
|
18
|
-
AuthResponse,
|
19
|
-
build_payload(access_token,
|
20
|
-
account_ids: account_ids,
|
21
|
-
options: options)
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
# Public: Response wrapper for /accounts/get and /accounts/balance/get
|
26
|
-
class AuthResponse < Models::BaseResponse
|
27
|
-
##
|
28
|
-
# :attr_reader:
|
29
|
-
# Public: The list of accounts: Array of Plaid::Models::Account.
|
30
|
-
property :accounts, coerce: Array[Models::Account]
|
31
|
-
|
32
|
-
##
|
33
|
-
# :attr_reader:
|
34
|
-
# Public: The item: Plaid::Models::Numbers.
|
35
|
-
property :numbers, coerce: Models::Numbers
|
36
|
-
|
37
|
-
##
|
38
|
-
# :attr_reader:
|
39
|
-
# Public: The item: Plaid::Models::Item.
|
40
|
-
property :item, coerce: Models::Item
|
41
|
-
end
|
42
|
-
end
|
@@ -1,69 +0,0 @@
|
|
1
|
-
module Plaid
|
2
|
-
# Internal: Support for subproduct metaprogramming
|
3
|
-
#
|
4
|
-
# Allows to write
|
5
|
-
#
|
6
|
-
# class SomeProduct
|
7
|
-
# subproduct :cool, Plaid::Cool
|
8
|
-
# end
|
9
|
-
#
|
10
|
-
# You may even skip the class part:
|
11
|
-
#
|
12
|
-
# class SomeProduct
|
13
|
-
# subproduct :foo_bar
|
14
|
-
# end
|
15
|
-
#
|
16
|
-
# will use Plaid::FooBar.
|
17
|
-
module SubproductMixin
|
18
|
-
def subproduct(name, klass = nil)
|
19
|
-
unless klass
|
20
|
-
class_name = name.to_s.split('_').map(&:capitalize).join
|
21
|
-
klass = Plaid.const_get(class_name)
|
22
|
-
end
|
23
|
-
|
24
|
-
define_method(name) do
|
25
|
-
ivar = "@#{name}"
|
26
|
-
|
27
|
-
if instance_variable_defined?(ivar)
|
28
|
-
instance_variable_get(ivar)
|
29
|
-
else
|
30
|
-
instance_variable_set(ivar, klass.new(client))
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
|
36
|
-
# Internal: The base class for all client products
|
37
|
-
class BaseProduct
|
38
|
-
def initialize(client)
|
39
|
-
@client = client
|
40
|
-
end
|
41
|
-
|
42
|
-
attr_reader :client
|
43
|
-
|
44
|
-
extend SubproductMixin
|
45
|
-
|
46
|
-
protected
|
47
|
-
|
48
|
-
# Internal: Build a simple payload with access_token, options, and
|
49
|
-
# account_ids.
|
50
|
-
def build_payload(access_token, account_ids: nil, options: nil)
|
51
|
-
options_payload = {}
|
52
|
-
options_payload[:account_ids] = account_ids unless account_ids.nil?
|
53
|
-
options_payload.merge!(options) unless options.nil?
|
54
|
-
|
55
|
-
{ access_token: access_token,
|
56
|
-
options: options_payload }
|
57
|
-
end
|
58
|
-
|
59
|
-
# Internal: Do a POST to API and capture it into a response object.
|
60
|
-
def post_with_auth(path, response_class, payload)
|
61
|
-
response_class.new(client.post_with_auth(path, payload))
|
62
|
-
end
|
63
|
-
|
64
|
-
# Internal: Do a POST to API and capture it into a response object.
|
65
|
-
def post_with_public_key(path, response_class, payload)
|
66
|
-
response_class.new(client.post_with_public_key(path, payload))
|
67
|
-
end
|
68
|
-
end
|
69
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
module Plaid
|
2
|
-
# Public: Class used to call the Categories product.
|
3
|
-
class Categories < BaseProduct
|
4
|
-
# Public: Get information about all Plaid categories
|
5
|
-
#
|
6
|
-
# Does a POST /categories/get call to retrieve a list of all categories.
|
7
|
-
#
|
8
|
-
# Returns the CategoriesResponse object with a list of categories.
|
9
|
-
def get
|
10
|
-
CategoriesResponse.new(client.post('categories/get', {}))
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
# Public: Response wrapper for /categories/get.
|
15
|
-
class CategoriesResponse < Models::BaseResponse
|
16
|
-
##
|
17
|
-
# :attr_reader:
|
18
|
-
# Public: Categories: Array of Plaid::Models::Category.
|
19
|
-
property :categories, coerce: Array[Models::Category]
|
20
|
-
end
|
21
|
-
end
|
@@ -1,40 +0,0 @@
|
|
1
|
-
module Plaid
|
2
|
-
# Public: Class used to call the CreditDetails product.
|
3
|
-
class CreditDetails < BaseProduct
|
4
|
-
# Public: Get information about all available credit_details.
|
5
|
-
#
|
6
|
-
# Does a POST /credit_details/get call which fetches credit details
|
7
|
-
# associated with an access_token's item.
|
8
|
-
#
|
9
|
-
# access_token - access_token of an item to fetch credit details for.
|
10
|
-
# account_ids - Specific account ids to fetch credit details for
|
11
|
-
# (optional).
|
12
|
-
#
|
13
|
-
# Returns the CreditDetailsResponse object with credit details info.
|
14
|
-
def get(access_token, account_ids: nil)
|
15
|
-
post_with_auth 'credit_details/get',
|
16
|
-
CreditDetailsResponse,
|
17
|
-
build_payload(access_token,
|
18
|
-
account_ids: account_ids)
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
# Public: Response wrapper for /credit_details/get.
|
23
|
-
class CreditDetailsResponse < Models::BaseResponse
|
24
|
-
##
|
25
|
-
# :attr_reader:
|
26
|
-
# Public: The list of accounts: Array of Plaid::Models::Account.
|
27
|
-
property :accounts, coerce: Array[Models::Account]
|
28
|
-
|
29
|
-
##
|
30
|
-
# :attr_reader:
|
31
|
-
# Public: The list of credit details: Array of
|
32
|
-
# Plaid::Models::CreditDetails.
|
33
|
-
property :credit_details, coerce: Array[Models::CreditDetails]
|
34
|
-
|
35
|
-
##
|
36
|
-
# :attr_reader:
|
37
|
-
# Public: The item: Plaid::Models::Item.
|
38
|
-
property :item, coerce: Models::Item
|
39
|
-
end
|
40
|
-
end
|
@@ -1,99 +0,0 @@
|
|
1
|
-
module Plaid
|
2
|
-
# Public: Class used to call the Deposit Switch product.
|
3
|
-
class DepositSwitch < BaseProduct
|
4
|
-
# Public: Get Deposit Switch information.
|
5
|
-
#
|
6
|
-
# Does a POST /deposit_switch/get call which fetches deposit switch
|
7
|
-
# associated with a deposit switch id.
|
8
|
-
#
|
9
|
-
# deposit_switch_id - deposit_switch_id to fetch deposit switch
|
10
|
-
# Returns the DepositSwitchResponse object with deposit switch data.
|
11
|
-
def get(deposit_switch_id)
|
12
|
-
post_with_auth 'deposit_switch/get',
|
13
|
-
GetResponse,
|
14
|
-
deposit_switch_id: deposit_switch_id
|
15
|
-
end
|
16
|
-
|
17
|
-
# Public: Response wrapper for /deposit_switch/get.
|
18
|
-
class GetResponse < Models::BaseResponse
|
19
|
-
##
|
20
|
-
# :attr_reader:
|
21
|
-
# Public: The ID associated with the deposit switch.
|
22
|
-
property :deposit_switch_id
|
23
|
-
|
24
|
-
##
|
25
|
-
# :attr_reader:
|
26
|
-
# Public: The ID of the item that the deposit switch was a target to.
|
27
|
-
property :target_item_id
|
28
|
-
|
29
|
-
##
|
30
|
-
# :attr_reader:
|
31
|
-
# Public: The ID of the account that the deposit switch was a target to.
|
32
|
-
property :target_account_id
|
33
|
-
|
34
|
-
##
|
35
|
-
# :attr_reader:
|
36
|
-
# Public: The state that the deposit switch is in.
|
37
|
-
property :state
|
38
|
-
|
39
|
-
##
|
40
|
-
# :attr_reader:
|
41
|
-
# Public: The date on which the deposit switch was created.
|
42
|
-
property :date_created
|
43
|
-
|
44
|
-
##
|
45
|
-
# :attr_reader:
|
46
|
-
# Public: The date on which the deposit switch was completed.
|
47
|
-
property :date_completed
|
48
|
-
end
|
49
|
-
|
50
|
-
# Public: Create Deposit Switch.
|
51
|
-
#
|
52
|
-
# Does a POST /deposit_switch/create call which creates a deposit switch
|
53
|
-
#
|
54
|
-
# target_account_id - ID of the bank account for the deposit switch
|
55
|
-
# target_access_token - access token for the switch
|
56
|
-
#
|
57
|
-
# Returns the DepositSwitchResponse object with deposit switch data.
|
58
|
-
def create(target_account_id, target_access_token)
|
59
|
-
post_with_auth 'deposit_switch/create',
|
60
|
-
CreateResponse,
|
61
|
-
target_account_id: target_account_id,
|
62
|
-
target_access_token: target_access_token
|
63
|
-
end
|
64
|
-
# Public: Response wrapper for /deposit_switch/create.
|
65
|
-
class CreateResponse < Models::BaseResponse
|
66
|
-
##
|
67
|
-
# :attr_reader:
|
68
|
-
# Public: The ID associated with the deposit switch
|
69
|
-
property :deposit_switch_id
|
70
|
-
end
|
71
|
-
|
72
|
-
# Public: Create Deposit Switch token.
|
73
|
-
#
|
74
|
-
# Does a POST /deposit_switch/token/create call which creates a deposit
|
75
|
-
# switch.
|
76
|
-
#
|
77
|
-
# deposit_switch_item - ID of the deposit switch
|
78
|
-
#
|
79
|
-
# Returns the CreateTokenResponse object.
|
80
|
-
def create_token(deposit_switch_id)
|
81
|
-
post_with_auth 'deposit_switch/token/create',
|
82
|
-
CreateTokenResponse,
|
83
|
-
deposit_switch_id: deposit_switch_id
|
84
|
-
end
|
85
|
-
|
86
|
-
# Public: Response wrapper for /deposit_switch/create.
|
87
|
-
class CreateTokenResponse < Models::BaseResponse
|
88
|
-
##
|
89
|
-
# :attr_reader:
|
90
|
-
# Public: A deposit switch token for the deposit switch.
|
91
|
-
property :deposit_switch_token
|
92
|
-
|
93
|
-
##
|
94
|
-
# :attr_reader:
|
95
|
-
# Public: The expiration time of the deposit switch token
|
96
|
-
property :deposit_switch_token_expiration_time
|
97
|
-
end
|
98
|
-
end
|
99
|
-
end
|