plaid 13.2.0 → 14.0.0.beta.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 +4 -4
- data/CHANGELOG.md +73 -9
- data/CONTRIBUTING.md +2 -32
- data/Dockerfile +11 -0
- data/Gemfile.lock +45 -40
- data/LICENSE.txt +1 -1
- data/PUBLISH.md +0 -1
- data/README.md +99 -93
- 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 -61
- 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 -99
- data/.circleci/config.yml +0 -21
- data/.env.sample +0 -3
- data/.github/workflows/add_to_project.yml +0 -21
- data/.rubocop.yml +0 -18
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/lib/plaid/client.rb +0 -190
- data/lib/plaid/errors.rb +0 -89
- data/lib/plaid/middleware.rb +0 -31
- data/lib/plaid/models.rb +0 -2221
- 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 -64
- 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 -91
- data/lib/plaid/products/investments.rb +0 -127
- data/lib/plaid/products/item.rb +0 -209
- data/lib/plaid/products/liabilities.rb +0 -39
- data/lib/plaid/products/link_token.rb +0 -74
- data/lib/plaid/products/payment_initiation.rb +0 -251
- 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
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#The Plaid API
|
|
3
|
+
|
|
4
|
+
#The Plaid REST API. Please see https://plaid.com/docs/api for more details.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2020-09-14_1.5.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 5.0.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Plaid
|
|
17
|
+
# An object containing liability accounts
|
|
18
|
+
class LiabilitiesObject
|
|
19
|
+
# The credit accounts returned. If no credit accounts are returned, `credit` will not be present in the schema.
|
|
20
|
+
attr_accessor :credit
|
|
21
|
+
|
|
22
|
+
# The mortgage accounts returned. If no mortgage accounts are returned, `mortgage` will not be present in the schema.
|
|
23
|
+
attr_accessor :mortgage
|
|
24
|
+
|
|
25
|
+
# The student loan accounts returned. If no student loan accounts are returned, `student` will not be present in the schema.
|
|
26
|
+
attr_accessor :student
|
|
27
|
+
|
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
|
+
def self.attribute_map
|
|
30
|
+
{
|
|
31
|
+
:'credit' => :'credit',
|
|
32
|
+
:'mortgage' => :'mortgage',
|
|
33
|
+
:'student' => :'student'
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Returns all the JSON keys this model knows about
|
|
38
|
+
def self.acceptable_attributes
|
|
39
|
+
attribute_map.values
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Attribute type mapping.
|
|
43
|
+
def self.openapi_types
|
|
44
|
+
{
|
|
45
|
+
:'credit' => :'Array<CreditCardLiability>',
|
|
46
|
+
:'mortgage' => :'Array<MortgageLiability>',
|
|
47
|
+
:'student' => :'Array<StudentLoan>'
|
|
48
|
+
}
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# List of attributes with nullable: true
|
|
52
|
+
def self.openapi_nullable
|
|
53
|
+
Set.new([
|
|
54
|
+
:'credit',
|
|
55
|
+
:'mortgage',
|
|
56
|
+
:'student'
|
|
57
|
+
])
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Initializes the object
|
|
61
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
62
|
+
def initialize(attributes = {})
|
|
63
|
+
if (!attributes.is_a?(Hash))
|
|
64
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Plaid::LiabilitiesObject` initialize method"
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
68
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
69
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
70
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Plaid::LiabilitiesObject`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
71
|
+
end
|
|
72
|
+
h[k.to_sym] = v
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if attributes.key?(:'credit')
|
|
76
|
+
if (value = attributes[:'credit']).is_a?(Array)
|
|
77
|
+
self.credit = value
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
if attributes.key?(:'mortgage')
|
|
82
|
+
if (value = attributes[:'mortgage']).is_a?(Array)
|
|
83
|
+
self.mortgage = value
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
if attributes.key?(:'student')
|
|
88
|
+
if (value = attributes[:'student']).is_a?(Array)
|
|
89
|
+
self.student = value
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
95
|
+
# @return Array for valid properties with the reasons
|
|
96
|
+
def list_invalid_properties
|
|
97
|
+
invalid_properties = Array.new
|
|
98
|
+
invalid_properties
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Check to see if the all the properties in the model are valid
|
|
102
|
+
# @return true if the model is valid
|
|
103
|
+
def valid?
|
|
104
|
+
true
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Checks equality by comparing each attribute.
|
|
108
|
+
# @param [Object] Object to be compared
|
|
109
|
+
def ==(o)
|
|
110
|
+
return true if self.equal?(o)
|
|
111
|
+
self.class == o.class &&
|
|
112
|
+
credit == o.credit &&
|
|
113
|
+
mortgage == o.mortgage &&
|
|
114
|
+
student == o.student
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# @see the `==` method
|
|
118
|
+
# @param [Object] Object to be compared
|
|
119
|
+
def eql?(o)
|
|
120
|
+
self == o
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Calculates hash code according to all attributes.
|
|
124
|
+
# @return [Integer] Hash code
|
|
125
|
+
def hash
|
|
126
|
+
[credit, mortgage, student].hash
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Builds the object from hash
|
|
130
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
131
|
+
# @return [Object] Returns the model itself
|
|
132
|
+
def self.build_from_hash(attributes)
|
|
133
|
+
new.build_from_hash(attributes)
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Builds the object from hash
|
|
137
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
138
|
+
# @return [Object] Returns the model itself
|
|
139
|
+
def build_from_hash(attributes)
|
|
140
|
+
return nil unless attributes.is_a?(Hash)
|
|
141
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
142
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
143
|
+
self.send("#{key}=", nil)
|
|
144
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
145
|
+
# check to ensure the input is an array given that the attribute
|
|
146
|
+
# is documented as an array but the input is not
|
|
147
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
148
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
149
|
+
end
|
|
150
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
151
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
self
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# Deserializes the data based on type
|
|
159
|
+
# @param string type Data type
|
|
160
|
+
# @param string value Value to be deserialized
|
|
161
|
+
# @return [Object] Deserialized data
|
|
162
|
+
def _deserialize(type, value)
|
|
163
|
+
case type.to_sym
|
|
164
|
+
when :Time
|
|
165
|
+
Time.parse(value)
|
|
166
|
+
when :Date
|
|
167
|
+
Date.parse(value)
|
|
168
|
+
when :String
|
|
169
|
+
value.to_s
|
|
170
|
+
when :Integer
|
|
171
|
+
value.to_i
|
|
172
|
+
when :Float
|
|
173
|
+
value.to_f
|
|
174
|
+
when :Boolean
|
|
175
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
176
|
+
true
|
|
177
|
+
else
|
|
178
|
+
false
|
|
179
|
+
end
|
|
180
|
+
when :Object
|
|
181
|
+
# generic object (usually a Hash), return directly
|
|
182
|
+
value
|
|
183
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
184
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
185
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
186
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
187
|
+
k_type = Regexp.last_match[:k_type]
|
|
188
|
+
v_type = Regexp.last_match[:v_type]
|
|
189
|
+
{}.tap do |hash|
|
|
190
|
+
value.each do |k, v|
|
|
191
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
192
|
+
end
|
|
193
|
+
end
|
|
194
|
+
else # model
|
|
195
|
+
# models (e.g. Pet) or oneOf
|
|
196
|
+
klass = Plaid.const_get(type)
|
|
197
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
198
|
+
end
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# Returns the string representation of the object
|
|
202
|
+
# @return [String] String presentation of the object
|
|
203
|
+
def to_s
|
|
204
|
+
to_hash.to_s
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
208
|
+
# @return [Hash] Returns the object in the form of hash
|
|
209
|
+
def to_body
|
|
210
|
+
to_hash
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
# Returns the object in the form of hash
|
|
214
|
+
# @return [Hash] Returns the object in the form of hash
|
|
215
|
+
def to_hash
|
|
216
|
+
hash = {}
|
|
217
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
218
|
+
value = self.send(attr)
|
|
219
|
+
if value.nil?
|
|
220
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
221
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
hash[param] = _to_hash(value)
|
|
225
|
+
end
|
|
226
|
+
hash
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
# Outputs non-array value in the form of hash
|
|
230
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
231
|
+
# @param [Object] value Any valid value
|
|
232
|
+
# @return [Hash] Returns the value in the form of hash
|
|
233
|
+
def _to_hash(value)
|
|
234
|
+
if value.is_a?(Array)
|
|
235
|
+
value.compact.map { |v| _to_hash(v) }
|
|
236
|
+
elsif value.is_a?(Hash)
|
|
237
|
+
{}.tap do |hash|
|
|
238
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
239
|
+
end
|
|
240
|
+
elsif value.respond_to? :to_hash
|
|
241
|
+
value.to_hash
|
|
242
|
+
else
|
|
243
|
+
value
|
|
244
|
+
end
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
end
|
|
@@ -0,0 +1,583 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#The Plaid API
|
|
3
|
+
|
|
4
|
+
#The Plaid REST API. Please see https://plaid.com/docs/api for more details.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2020-09-14_1.5.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 5.0.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Plaid
|
|
17
|
+
# Used to configure Sandbox test data for the Liabilities product
|
|
18
|
+
class LiabilityOverride
|
|
19
|
+
# The type of the liability object, either `credit` or `student`.
|
|
20
|
+
attr_accessor :type
|
|
21
|
+
|
|
22
|
+
# The purchase APR percentage value. For simplicity, this is the only interest rate used to calculate interest charges. Can only be set if `type` is `credit`.
|
|
23
|
+
attr_accessor :purchase_apr
|
|
24
|
+
|
|
25
|
+
# The cash APR percentage value. Can only be set if `type` is `credit`.
|
|
26
|
+
attr_accessor :cash_apr
|
|
27
|
+
|
|
28
|
+
# The balance transfer APR percentage value. Can only be set if `type` is `credit`. Can only be set if `type` is `credit`.
|
|
29
|
+
attr_accessor :balance_transfer_apr
|
|
30
|
+
|
|
31
|
+
# The special APR percentage value. Can only be set if `type` is `credit`.
|
|
32
|
+
attr_accessor :special_apr
|
|
33
|
+
|
|
34
|
+
# Override the `last_payment_amount` field. Can only be set if `type` is `credit`.
|
|
35
|
+
attr_accessor :last_payment_amount
|
|
36
|
+
|
|
37
|
+
# Override the `last_statement_balance` field. Can only be set if `type` is `credit`.
|
|
38
|
+
attr_accessor :last_statement_balance
|
|
39
|
+
|
|
40
|
+
# Override the `minimum_payment_amount` field. Can only be set if `type` is `credit`.
|
|
41
|
+
attr_accessor :minimum_payment_amount
|
|
42
|
+
|
|
43
|
+
# Override the `is_overdue` field
|
|
44
|
+
attr_accessor :is_overdue
|
|
45
|
+
|
|
46
|
+
# The date on which the loan was initially lent, in ISO 8601 (YYYY-MM-DD) format. Can only be set if `type` is `student`.
|
|
47
|
+
attr_accessor :origination_date
|
|
48
|
+
|
|
49
|
+
# The original loan principal. Can only be set if `type` is `student`.
|
|
50
|
+
attr_accessor :principal
|
|
51
|
+
|
|
52
|
+
# The interest rate on the loan as a percentage. Can only be set if `type` is `student`.
|
|
53
|
+
attr_accessor :nominal_apr
|
|
54
|
+
|
|
55
|
+
# If set, interest capitalization begins at the given number of months after loan origination. By default interest is never capitalized. Can only be set if `type` is `student`.
|
|
56
|
+
attr_accessor :interest_capitalization_grace_period_months
|
|
57
|
+
|
|
58
|
+
attr_accessor :repayment_model
|
|
59
|
+
|
|
60
|
+
# Override the `expected_payoff_date` field. Can only be set if `type` is `student`.
|
|
61
|
+
attr_accessor :expected_payoff_date
|
|
62
|
+
|
|
63
|
+
# Override the `guarantor` field. Can only be set if `type` is `student`.
|
|
64
|
+
attr_accessor :guarantor
|
|
65
|
+
|
|
66
|
+
# Override the `is_federal` field. Can only be set if `type` is `student`.
|
|
67
|
+
attr_accessor :is_federal
|
|
68
|
+
|
|
69
|
+
# Override the `loan_name` field. Can only be set if `type` is `student`.
|
|
70
|
+
attr_accessor :loan_name
|
|
71
|
+
|
|
72
|
+
# Override the `loan_status` field. Can only be set if `type` is `student`.
|
|
73
|
+
attr_accessor :loan_status
|
|
74
|
+
|
|
75
|
+
# Override the `payment_reference_number` field. Can only be set if `type` is `student`.
|
|
76
|
+
attr_accessor :payment_reference_number
|
|
77
|
+
|
|
78
|
+
# Override the `pslf_status` field. Can only be set if `type` is `student`.
|
|
79
|
+
attr_accessor :pslf_status
|
|
80
|
+
|
|
81
|
+
# Override the `repayment_plan.description` field. Can only be set if `type` is `student`.
|
|
82
|
+
attr_accessor :repayment_plan_description
|
|
83
|
+
|
|
84
|
+
# Override the `repayment_plan.type` field. Can only be set if `type` is `student`. Possible values are: `\"extended graduated\"`, `\"extended standard\"`, `\"graduated\"`, `\"income-contingent repayment\"`, `\"income-based repayment\"`, `\"interest only\"`, `\"other\"`, `\"pay as you earn\"`, `\"revised pay as you earn\"`, or `\"standard\"`.
|
|
85
|
+
attr_accessor :repayment_plan_type
|
|
86
|
+
|
|
87
|
+
# Override the `sequence_number` field. Can only be set if `type` is `student`.
|
|
88
|
+
attr_accessor :sequence_number
|
|
89
|
+
|
|
90
|
+
attr_accessor :servicer_address
|
|
91
|
+
|
|
92
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
93
|
+
def self.attribute_map
|
|
94
|
+
{
|
|
95
|
+
:'type' => :'type',
|
|
96
|
+
:'purchase_apr' => :'purchase_apr',
|
|
97
|
+
:'cash_apr' => :'cash_apr',
|
|
98
|
+
:'balance_transfer_apr' => :'balance_transfer_apr',
|
|
99
|
+
:'special_apr' => :'special_apr',
|
|
100
|
+
:'last_payment_amount' => :'last_payment_amount',
|
|
101
|
+
:'last_statement_balance' => :'last_statement_balance',
|
|
102
|
+
:'minimum_payment_amount' => :'minimum_payment_amount',
|
|
103
|
+
:'is_overdue' => :'is_overdue',
|
|
104
|
+
:'origination_date' => :'origination_date',
|
|
105
|
+
:'principal' => :'principal',
|
|
106
|
+
:'nominal_apr' => :'nominal_apr',
|
|
107
|
+
:'interest_capitalization_grace_period_months' => :'interest_capitalization_grace_period_months',
|
|
108
|
+
:'repayment_model' => :'repayment_model',
|
|
109
|
+
:'expected_payoff_date' => :'expected_payoff_date',
|
|
110
|
+
:'guarantor' => :'guarantor',
|
|
111
|
+
:'is_federal' => :'is_federal',
|
|
112
|
+
:'loan_name' => :'loan_name',
|
|
113
|
+
:'loan_status' => :'loan_status',
|
|
114
|
+
:'payment_reference_number' => :'payment_reference_number',
|
|
115
|
+
:'pslf_status' => :'pslf_status',
|
|
116
|
+
:'repayment_plan_description' => :'repayment_plan_description',
|
|
117
|
+
:'repayment_plan_type' => :'repayment_plan_type',
|
|
118
|
+
:'sequence_number' => :'sequence_number',
|
|
119
|
+
:'servicer_address' => :'servicer_address'
|
|
120
|
+
}
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Returns all the JSON keys this model knows about
|
|
124
|
+
def self.acceptable_attributes
|
|
125
|
+
attribute_map.values
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Attribute type mapping.
|
|
129
|
+
def self.openapi_types
|
|
130
|
+
{
|
|
131
|
+
:'type' => :'String',
|
|
132
|
+
:'purchase_apr' => :'Float',
|
|
133
|
+
:'cash_apr' => :'Float',
|
|
134
|
+
:'balance_transfer_apr' => :'Float',
|
|
135
|
+
:'special_apr' => :'Float',
|
|
136
|
+
:'last_payment_amount' => :'Float',
|
|
137
|
+
:'last_statement_balance' => :'Float',
|
|
138
|
+
:'minimum_payment_amount' => :'Float',
|
|
139
|
+
:'is_overdue' => :'Boolean',
|
|
140
|
+
:'origination_date' => :'String',
|
|
141
|
+
:'principal' => :'Float',
|
|
142
|
+
:'nominal_apr' => :'Float',
|
|
143
|
+
:'interest_capitalization_grace_period_months' => :'Float',
|
|
144
|
+
:'repayment_model' => :'StudentLoanRepaymentModel',
|
|
145
|
+
:'expected_payoff_date' => :'String',
|
|
146
|
+
:'guarantor' => :'String',
|
|
147
|
+
:'is_federal' => :'Boolean',
|
|
148
|
+
:'loan_name' => :'String',
|
|
149
|
+
:'loan_status' => :'String',
|
|
150
|
+
:'payment_reference_number' => :'String',
|
|
151
|
+
:'pslf_status' => :'String',
|
|
152
|
+
:'repayment_plan_description' => :'String',
|
|
153
|
+
:'repayment_plan_type' => :'String',
|
|
154
|
+
:'sequence_number' => :'String',
|
|
155
|
+
:'servicer_address' => :'Address'
|
|
156
|
+
}
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# List of attributes with nullable: true
|
|
160
|
+
def self.openapi_nullable
|
|
161
|
+
Set.new([
|
|
162
|
+
])
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Initializes the object
|
|
166
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
167
|
+
def initialize(attributes = {})
|
|
168
|
+
if (!attributes.is_a?(Hash))
|
|
169
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Plaid::LiabilityOverride` initialize method"
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
173
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
174
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
175
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Plaid::LiabilityOverride`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
176
|
+
end
|
|
177
|
+
h[k.to_sym] = v
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
if attributes.key?(:'type')
|
|
181
|
+
self.type = attributes[:'type']
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
if attributes.key?(:'purchase_apr')
|
|
185
|
+
self.purchase_apr = attributes[:'purchase_apr']
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
if attributes.key?(:'cash_apr')
|
|
189
|
+
self.cash_apr = attributes[:'cash_apr']
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
if attributes.key?(:'balance_transfer_apr')
|
|
193
|
+
self.balance_transfer_apr = attributes[:'balance_transfer_apr']
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
if attributes.key?(:'special_apr')
|
|
197
|
+
self.special_apr = attributes[:'special_apr']
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
if attributes.key?(:'last_payment_amount')
|
|
201
|
+
self.last_payment_amount = attributes[:'last_payment_amount']
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
if attributes.key?(:'last_statement_balance')
|
|
205
|
+
self.last_statement_balance = attributes[:'last_statement_balance']
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
if attributes.key?(:'minimum_payment_amount')
|
|
209
|
+
self.minimum_payment_amount = attributes[:'minimum_payment_amount']
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
if attributes.key?(:'is_overdue')
|
|
213
|
+
self.is_overdue = attributes[:'is_overdue']
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
if attributes.key?(:'origination_date')
|
|
217
|
+
self.origination_date = attributes[:'origination_date']
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
if attributes.key?(:'principal')
|
|
221
|
+
self.principal = attributes[:'principal']
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
if attributes.key?(:'nominal_apr')
|
|
225
|
+
self.nominal_apr = attributes[:'nominal_apr']
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
if attributes.key?(:'interest_capitalization_grace_period_months')
|
|
229
|
+
self.interest_capitalization_grace_period_months = attributes[:'interest_capitalization_grace_period_months']
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
if attributes.key?(:'repayment_model')
|
|
233
|
+
self.repayment_model = attributes[:'repayment_model']
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
if attributes.key?(:'expected_payoff_date')
|
|
237
|
+
self.expected_payoff_date = attributes[:'expected_payoff_date']
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
if attributes.key?(:'guarantor')
|
|
241
|
+
self.guarantor = attributes[:'guarantor']
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
if attributes.key?(:'is_federal')
|
|
245
|
+
self.is_federal = attributes[:'is_federal']
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
if attributes.key?(:'loan_name')
|
|
249
|
+
self.loan_name = attributes[:'loan_name']
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
if attributes.key?(:'loan_status')
|
|
253
|
+
self.loan_status = attributes[:'loan_status']
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
if attributes.key?(:'payment_reference_number')
|
|
257
|
+
self.payment_reference_number = attributes[:'payment_reference_number']
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
if attributes.key?(:'pslf_status')
|
|
261
|
+
self.pslf_status = attributes[:'pslf_status']
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
if attributes.key?(:'repayment_plan_description')
|
|
265
|
+
self.repayment_plan_description = attributes[:'repayment_plan_description']
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
if attributes.key?(:'repayment_plan_type')
|
|
269
|
+
self.repayment_plan_type = attributes[:'repayment_plan_type']
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
if attributes.key?(:'sequence_number')
|
|
273
|
+
self.sequence_number = attributes[:'sequence_number']
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
if attributes.key?(:'servicer_address')
|
|
277
|
+
self.servicer_address = attributes[:'servicer_address']
|
|
278
|
+
end
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
282
|
+
# @return Array for valid properties with the reasons
|
|
283
|
+
def list_invalid_properties
|
|
284
|
+
invalid_properties = Array.new
|
|
285
|
+
if @type.nil?
|
|
286
|
+
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
if @purchase_apr.nil?
|
|
290
|
+
invalid_properties.push('invalid value for "purchase_apr", purchase_apr cannot be nil.')
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
if @cash_apr.nil?
|
|
294
|
+
invalid_properties.push('invalid value for "cash_apr", cash_apr cannot be nil.')
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
if @balance_transfer_apr.nil?
|
|
298
|
+
invalid_properties.push('invalid value for "balance_transfer_apr", balance_transfer_apr cannot be nil.')
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
if @special_apr.nil?
|
|
302
|
+
invalid_properties.push('invalid value for "special_apr", special_apr cannot be nil.')
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
if @last_payment_amount.nil?
|
|
306
|
+
invalid_properties.push('invalid value for "last_payment_amount", last_payment_amount cannot be nil.')
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
if @last_statement_balance.nil?
|
|
310
|
+
invalid_properties.push('invalid value for "last_statement_balance", last_statement_balance cannot be nil.')
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
if @minimum_payment_amount.nil?
|
|
314
|
+
invalid_properties.push('invalid value for "minimum_payment_amount", minimum_payment_amount cannot be nil.')
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
if @is_overdue.nil?
|
|
318
|
+
invalid_properties.push('invalid value for "is_overdue", is_overdue cannot be nil.')
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
if @origination_date.nil?
|
|
322
|
+
invalid_properties.push('invalid value for "origination_date", origination_date cannot be nil.')
|
|
323
|
+
end
|
|
324
|
+
|
|
325
|
+
if @principal.nil?
|
|
326
|
+
invalid_properties.push('invalid value for "principal", principal cannot be nil.')
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
if @nominal_apr.nil?
|
|
330
|
+
invalid_properties.push('invalid value for "nominal_apr", nominal_apr cannot be nil.')
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
if @interest_capitalization_grace_period_months.nil?
|
|
334
|
+
invalid_properties.push('invalid value for "interest_capitalization_grace_period_months", interest_capitalization_grace_period_months cannot be nil.')
|
|
335
|
+
end
|
|
336
|
+
|
|
337
|
+
if @repayment_model.nil?
|
|
338
|
+
invalid_properties.push('invalid value for "repayment_model", repayment_model cannot be nil.')
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
if @expected_payoff_date.nil?
|
|
342
|
+
invalid_properties.push('invalid value for "expected_payoff_date", expected_payoff_date cannot be nil.')
|
|
343
|
+
end
|
|
344
|
+
|
|
345
|
+
if @guarantor.nil?
|
|
346
|
+
invalid_properties.push('invalid value for "guarantor", guarantor cannot be nil.')
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
if @is_federal.nil?
|
|
350
|
+
invalid_properties.push('invalid value for "is_federal", is_federal cannot be nil.')
|
|
351
|
+
end
|
|
352
|
+
|
|
353
|
+
if @loan_name.nil?
|
|
354
|
+
invalid_properties.push('invalid value for "loan_name", loan_name cannot be nil.')
|
|
355
|
+
end
|
|
356
|
+
|
|
357
|
+
if @loan_status.nil?
|
|
358
|
+
invalid_properties.push('invalid value for "loan_status", loan_status cannot be nil.')
|
|
359
|
+
end
|
|
360
|
+
|
|
361
|
+
if @payment_reference_number.nil?
|
|
362
|
+
invalid_properties.push('invalid value for "payment_reference_number", payment_reference_number cannot be nil.')
|
|
363
|
+
end
|
|
364
|
+
|
|
365
|
+
if @pslf_status.nil?
|
|
366
|
+
invalid_properties.push('invalid value for "pslf_status", pslf_status cannot be nil.')
|
|
367
|
+
end
|
|
368
|
+
|
|
369
|
+
if @repayment_plan_description.nil?
|
|
370
|
+
invalid_properties.push('invalid value for "repayment_plan_description", repayment_plan_description cannot be nil.')
|
|
371
|
+
end
|
|
372
|
+
|
|
373
|
+
if @repayment_plan_type.nil?
|
|
374
|
+
invalid_properties.push('invalid value for "repayment_plan_type", repayment_plan_type cannot be nil.')
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
if @sequence_number.nil?
|
|
378
|
+
invalid_properties.push('invalid value for "sequence_number", sequence_number cannot be nil.')
|
|
379
|
+
end
|
|
380
|
+
|
|
381
|
+
if @servicer_address.nil?
|
|
382
|
+
invalid_properties.push('invalid value for "servicer_address", servicer_address cannot be nil.')
|
|
383
|
+
end
|
|
384
|
+
|
|
385
|
+
invalid_properties
|
|
386
|
+
end
|
|
387
|
+
|
|
388
|
+
# Check to see if the all the properties in the model are valid
|
|
389
|
+
# @return true if the model is valid
|
|
390
|
+
def valid?
|
|
391
|
+
return false if @type.nil?
|
|
392
|
+
return false if @purchase_apr.nil?
|
|
393
|
+
return false if @cash_apr.nil?
|
|
394
|
+
return false if @balance_transfer_apr.nil?
|
|
395
|
+
return false if @special_apr.nil?
|
|
396
|
+
return false if @last_payment_amount.nil?
|
|
397
|
+
return false if @last_statement_balance.nil?
|
|
398
|
+
return false if @minimum_payment_amount.nil?
|
|
399
|
+
return false if @is_overdue.nil?
|
|
400
|
+
return false if @origination_date.nil?
|
|
401
|
+
return false if @principal.nil?
|
|
402
|
+
return false if @nominal_apr.nil?
|
|
403
|
+
return false if @interest_capitalization_grace_period_months.nil?
|
|
404
|
+
return false if @repayment_model.nil?
|
|
405
|
+
return false if @expected_payoff_date.nil?
|
|
406
|
+
return false if @guarantor.nil?
|
|
407
|
+
return false if @is_federal.nil?
|
|
408
|
+
return false if @loan_name.nil?
|
|
409
|
+
return false if @loan_status.nil?
|
|
410
|
+
return false if @payment_reference_number.nil?
|
|
411
|
+
return false if @pslf_status.nil?
|
|
412
|
+
return false if @repayment_plan_description.nil?
|
|
413
|
+
return false if @repayment_plan_type.nil?
|
|
414
|
+
return false if @sequence_number.nil?
|
|
415
|
+
return false if @servicer_address.nil?
|
|
416
|
+
true
|
|
417
|
+
end
|
|
418
|
+
|
|
419
|
+
# Checks equality by comparing each attribute.
|
|
420
|
+
# @param [Object] Object to be compared
|
|
421
|
+
def ==(o)
|
|
422
|
+
return true if self.equal?(o)
|
|
423
|
+
self.class == o.class &&
|
|
424
|
+
type == o.type &&
|
|
425
|
+
purchase_apr == o.purchase_apr &&
|
|
426
|
+
cash_apr == o.cash_apr &&
|
|
427
|
+
balance_transfer_apr == o.balance_transfer_apr &&
|
|
428
|
+
special_apr == o.special_apr &&
|
|
429
|
+
last_payment_amount == o.last_payment_amount &&
|
|
430
|
+
last_statement_balance == o.last_statement_balance &&
|
|
431
|
+
minimum_payment_amount == o.minimum_payment_amount &&
|
|
432
|
+
is_overdue == o.is_overdue &&
|
|
433
|
+
origination_date == o.origination_date &&
|
|
434
|
+
principal == o.principal &&
|
|
435
|
+
nominal_apr == o.nominal_apr &&
|
|
436
|
+
interest_capitalization_grace_period_months == o.interest_capitalization_grace_period_months &&
|
|
437
|
+
repayment_model == o.repayment_model &&
|
|
438
|
+
expected_payoff_date == o.expected_payoff_date &&
|
|
439
|
+
guarantor == o.guarantor &&
|
|
440
|
+
is_federal == o.is_federal &&
|
|
441
|
+
loan_name == o.loan_name &&
|
|
442
|
+
loan_status == o.loan_status &&
|
|
443
|
+
payment_reference_number == o.payment_reference_number &&
|
|
444
|
+
pslf_status == o.pslf_status &&
|
|
445
|
+
repayment_plan_description == o.repayment_plan_description &&
|
|
446
|
+
repayment_plan_type == o.repayment_plan_type &&
|
|
447
|
+
sequence_number == o.sequence_number &&
|
|
448
|
+
servicer_address == o.servicer_address
|
|
449
|
+
end
|
|
450
|
+
|
|
451
|
+
# @see the `==` method
|
|
452
|
+
# @param [Object] Object to be compared
|
|
453
|
+
def eql?(o)
|
|
454
|
+
self == o
|
|
455
|
+
end
|
|
456
|
+
|
|
457
|
+
# Calculates hash code according to all attributes.
|
|
458
|
+
# @return [Integer] Hash code
|
|
459
|
+
def hash
|
|
460
|
+
[type, purchase_apr, cash_apr, balance_transfer_apr, special_apr, last_payment_amount, last_statement_balance, minimum_payment_amount, is_overdue, origination_date, principal, nominal_apr, interest_capitalization_grace_period_months, repayment_model, expected_payoff_date, guarantor, is_federal, loan_name, loan_status, payment_reference_number, pslf_status, repayment_plan_description, repayment_plan_type, sequence_number, servicer_address].hash
|
|
461
|
+
end
|
|
462
|
+
|
|
463
|
+
# Builds the object from hash
|
|
464
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
465
|
+
# @return [Object] Returns the model itself
|
|
466
|
+
def self.build_from_hash(attributes)
|
|
467
|
+
new.build_from_hash(attributes)
|
|
468
|
+
end
|
|
469
|
+
|
|
470
|
+
# Builds the object from hash
|
|
471
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
472
|
+
# @return [Object] Returns the model itself
|
|
473
|
+
def build_from_hash(attributes)
|
|
474
|
+
return nil unless attributes.is_a?(Hash)
|
|
475
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
476
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
477
|
+
self.send("#{key}=", nil)
|
|
478
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
479
|
+
# check to ensure the input is an array given that the attribute
|
|
480
|
+
# is documented as an array but the input is not
|
|
481
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
482
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
483
|
+
end
|
|
484
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
485
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
486
|
+
end
|
|
487
|
+
end
|
|
488
|
+
|
|
489
|
+
self
|
|
490
|
+
end
|
|
491
|
+
|
|
492
|
+
# Deserializes the data based on type
|
|
493
|
+
# @param string type Data type
|
|
494
|
+
# @param string value Value to be deserialized
|
|
495
|
+
# @return [Object] Deserialized data
|
|
496
|
+
def _deserialize(type, value)
|
|
497
|
+
case type.to_sym
|
|
498
|
+
when :Time
|
|
499
|
+
Time.parse(value)
|
|
500
|
+
when :Date
|
|
501
|
+
Date.parse(value)
|
|
502
|
+
when :String
|
|
503
|
+
value.to_s
|
|
504
|
+
when :Integer
|
|
505
|
+
value.to_i
|
|
506
|
+
when :Float
|
|
507
|
+
value.to_f
|
|
508
|
+
when :Boolean
|
|
509
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
510
|
+
true
|
|
511
|
+
else
|
|
512
|
+
false
|
|
513
|
+
end
|
|
514
|
+
when :Object
|
|
515
|
+
# generic object (usually a Hash), return directly
|
|
516
|
+
value
|
|
517
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
518
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
519
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
520
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
521
|
+
k_type = Regexp.last_match[:k_type]
|
|
522
|
+
v_type = Regexp.last_match[:v_type]
|
|
523
|
+
{}.tap do |hash|
|
|
524
|
+
value.each do |k, v|
|
|
525
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
526
|
+
end
|
|
527
|
+
end
|
|
528
|
+
else # model
|
|
529
|
+
# models (e.g. Pet) or oneOf
|
|
530
|
+
klass = Plaid.const_get(type)
|
|
531
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
532
|
+
end
|
|
533
|
+
end
|
|
534
|
+
|
|
535
|
+
# Returns the string representation of the object
|
|
536
|
+
# @return [String] String presentation of the object
|
|
537
|
+
def to_s
|
|
538
|
+
to_hash.to_s
|
|
539
|
+
end
|
|
540
|
+
|
|
541
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
542
|
+
# @return [Hash] Returns the object in the form of hash
|
|
543
|
+
def to_body
|
|
544
|
+
to_hash
|
|
545
|
+
end
|
|
546
|
+
|
|
547
|
+
# Returns the object in the form of hash
|
|
548
|
+
# @return [Hash] Returns the object in the form of hash
|
|
549
|
+
def to_hash
|
|
550
|
+
hash = {}
|
|
551
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
552
|
+
value = self.send(attr)
|
|
553
|
+
if value.nil?
|
|
554
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
555
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
556
|
+
end
|
|
557
|
+
|
|
558
|
+
hash[param] = _to_hash(value)
|
|
559
|
+
end
|
|
560
|
+
hash
|
|
561
|
+
end
|
|
562
|
+
|
|
563
|
+
# Outputs non-array value in the form of hash
|
|
564
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
565
|
+
# @param [Object] value Any valid value
|
|
566
|
+
# @return [Hash] Returns the value in the form of hash
|
|
567
|
+
def _to_hash(value)
|
|
568
|
+
if value.is_a?(Array)
|
|
569
|
+
value.compact.map { |v| _to_hash(v) }
|
|
570
|
+
elsif value.is_a?(Hash)
|
|
571
|
+
{}.tap do |hash|
|
|
572
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
573
|
+
end
|
|
574
|
+
elsif value.respond_to? :to_hash
|
|
575
|
+
value.to_hash
|
|
576
|
+
else
|
|
577
|
+
value
|
|
578
|
+
end
|
|
579
|
+
end
|
|
580
|
+
|
|
581
|
+
end
|
|
582
|
+
|
|
583
|
+
end
|