nucleus_api 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/README.md +787 -0
- data/Rakefile +8 -0
- data/docs/Account.md +22 -0
- data/docs/AccountAllocationMapping.md +17 -0
- data/docs/AccountApi.md +1919 -0
- data/docs/AccountMap.md +9 -0
- data/docs/AccountPermissionVO.md +9 -0
- data/docs/AccountPortfolioRebalanceRequest.md +21 -0
- data/docs/AccountStatus.md +16 -0
- data/docs/AccountType.md +23 -0
- data/docs/AclClientPermissionVO.md +10 -0
- data/docs/AdminClient.md +18 -0
- data/docs/AdminClientApi.md +309 -0
- data/docs/AggregationAccount.md +30 -0
- data/docs/AggregationAccountApi.md +1702 -0
- data/docs/AggregationAccountBalance.md +18 -0
- data/docs/AggregationAccountHolding.md +26 -0
- data/docs/AggregationAccountTransaction.md +23 -0
- data/docs/AggregationAccountsMap.md +9 -0
- data/docs/Allocation.md +22 -0
- data/docs/AllocationAggregatedVO.md +13 -0
- data/docs/AllocationApi.md +872 -0
- data/docs/AllocationComposition.md +18 -0
- data/docs/AllocationCompositionAggregatedVO.md +19 -0
- data/docs/AllocationCompositionModelHoldingsVO.md +22 -0
- data/docs/AllocationNodeMap.md +8 -0
- data/docs/Answer.md +18 -0
- data/docs/AnswerMap.md +8 -0
- data/docs/Application.md +15 -0
- data/docs/ApplicationApi.md +309 -0
- data/docs/AuditLog.md +23 -0
- data/docs/AuditLogApi.md +191 -0
- data/docs/AvailableDateDoubleVO.md +14 -0
- data/docs/BankCredit.md +15 -0
- data/docs/BankLink.md +29 -0
- data/docs/BankLinkMap.md +9 -0
- data/docs/Benchmark.md +17 -0
- data/docs/BenchmarkApi.md +375 -0
- data/docs/BenchmarkComposition.md +9 -0
- data/docs/Brokers.md +9 -0
- data/docs/Budget.md +25 -0
- data/docs/BudgetAggregationAccount.md +8 -0
- data/docs/BudgetApi.md +315 -0
- data/docs/BudgetObject.md +10 -0
- data/docs/BulkApi.md +249 -0
- data/docs/BulkTransaction.md +13 -0
- data/docs/BulkTransactionVO.md +12 -0
- data/docs/Business.md +32 -0
- data/docs/BusinessAddress.md +15 -0
- data/docs/BusinessApi.md +523 -0
- data/docs/Card.md +35 -0
- data/docs/CardAddress.md +14 -0
- data/docs/CardApi.md +754 -0
- data/docs/CardProgram.md +23 -0
- data/docs/Cash.md +10 -0
- data/docs/CategoriesMap.md +9 -0
- data/docs/CategoryInternalResponseVO.md +10 -0
- data/docs/CategoryResponseVO.md +9 -0
- data/docs/Check.md +10 -0
- data/docs/CheckImages.md +9 -0
- data/docs/Client.md +39 -0
- data/docs/ClientAccountMapping.md +10 -0
- data/docs/ClientAddress.md +15 -0
- data/docs/ClientApi.md +1008 -0
- data/docs/ClientRelationship.md +10 -0
- data/docs/ClientResponse.md +17 -0
- data/docs/ClientStatus.md +16 -0
- data/docs/ClientViewGoalData.md +21 -0
- data/docs/Country.md +12 -0
- data/docs/Currency.md +11 -0
- data/docs/Customer.md +21 -0
- data/docs/CustomerAddress.md +14 -0
- data/docs/CustomerApi.md +616 -0
- data/docs/CustomerRevenue.md +16 -0
- data/docs/DailyDeposit.md +28 -0
- data/docs/DailyWithdrawal.md +29 -0
- data/docs/DateDoubleVO.md +10 -0
- data/docs/DecisionTree.md +17 -0
- data/docs/DecisionTreeApi.md +971 -0
- data/docs/DecisionTreeCO.md +9 -0
- data/docs/DecisionTreeResultVO.md +9 -0
- data/docs/Document.md +30 -0
- data/docs/DocumentApi.md +309 -0
- data/docs/Employment.md +11 -0
- data/docs/ExternalAccountTransfer.md +28 -0
- data/docs/Feature.md +18 -0
- data/docs/FeatureApi.md +610 -0
- data/docs/FeatureTrack.md +14 -0
- data/docs/FinancialStatement.md +23 -0
- data/docs/FinancialStatementApi.md +315 -0
- data/docs/Funding.md +37 -0
- data/docs/FundingApi.md +1601 -0
- data/docs/FundingRequestMap.md +8 -0
- data/docs/FxRateView.md +11 -0
- data/docs/Goal.md +24 -0
- data/docs/GoalAccountMapping.md +11 -0
- data/docs/GoalApi.md +841 -0
- data/docs/GoalTrack.md +26 -0
- data/docs/GoalTrackAccounts.md +8 -0
- data/docs/Household.md +18 -0
- data/docs/HouseholdApi.md +523 -0
- data/docs/Investment.md +16 -0
- data/docs/Invoice.md +32 -0
- data/docs/InvoiceApi.md +622 -0
- data/docs/InvoicePayment.md +15 -0
- data/docs/JsonNode.md +29 -0
- data/docs/LineItems.md +15 -0
- data/docs/Location.md +15 -0
- data/docs/MXMerchantRes.md +14 -0
- data/docs/Member.md +11 -0
- data/docs/MerchantCategoryCode.md +11 -0
- data/docs/MerchantsMap.md +9 -0
- data/docs/Model.md +29 -0
- data/docs/ModelApi.md +1580 -0
- data/docs/ModelAssetSize.md +16 -0
- data/docs/ModelComment.md +15 -0
- data/docs/ModelHolding.md +25 -0
- data/docs/ModelHoldingVO.md +11 -0
- data/docs/ModelTransaction.md +17 -0
- data/docs/Node.md +15 -0
- data/docs/NodeRelationship.md +18 -0
- data/docs/Notification.md +20 -0
- data/docs/NotificationApi.md +911 -0
- data/docs/NotificationClient.md +19 -0
- data/docs/NotificationSetting.md +19 -0
- data/docs/Order.md +27 -0
- data/docs/OrderApi.md +1764 -0
- data/docs/OrderBulk.md +18 -0
- data/docs/OrderReconcileRequest.md +12 -0
- data/docs/OrderReconcileReturnObject.md +12 -0
- data/docs/OrderStatus.md +14 -0
- data/docs/OrderTrack.md +20 -0
- data/docs/OrderVoClone.md +20 -0
- data/docs/Overflow.md +16 -0
- data/docs/OverflowApi.md +492 -0
- data/docs/OverflowBankLinkMap.md +9 -0
- data/docs/OverflowSettings.md +17 -0
- data/docs/OverflowVO.md +10 -0
- data/docs/Ownership.md +12 -0
- data/docs/PageAccount.md +16 -0
- data/docs/PageAccountAllocationMapping.md +16 -0
- data/docs/PageAccountPermissionVO.md +16 -0
- data/docs/PageAccountStatus.md +16 -0
- data/docs/PageAccountType.md +16 -0
- data/docs/PageAdminClient.md +16 -0
- data/docs/PageAggregationAccount.md +16 -0
- data/docs/PageAggregationAccountBalance.md +16 -0
- data/docs/PageAggregationAccountHolding.md +16 -0
- data/docs/PageAggregationAccountTransaction.md +16 -0
- data/docs/PageAllocation.md +16 -0
- data/docs/PageAllocationComposition.md +16 -0
- data/docs/PageAnswer.md +16 -0
- data/docs/PageApplication.md +16 -0
- data/docs/PageAuditLog.md +16 -0
- data/docs/PageBankLink.md +16 -0
- data/docs/PageBenchmark.md +16 -0
- data/docs/PageBudget.md +16 -0
- data/docs/PageBusiness.md +16 -0
- data/docs/PageCard.md +16 -0
- data/docs/PageCardProgram.md +16 -0
- data/docs/PageClient.md +16 -0
- data/docs/PageClientResponse.md +16 -0
- data/docs/PageClientStatus.md +16 -0
- data/docs/PageCustomer.md +16 -0
- data/docs/PageCustomerRevenue.md +16 -0
- data/docs/PageDailyDeposit.md +16 -0
- data/docs/PageDailyWithdrawal.md +16 -0
- data/docs/PageDecisionTree.md +16 -0
- data/docs/PageDocument.md +16 -0
- data/docs/PageExternalAccountTransfer.md +16 -0
- data/docs/PageFeature.md +16 -0
- data/docs/PageFeatureTrack.md +16 -0
- data/docs/PageFinancialStatement.md +16 -0
- data/docs/PageFunding.md +16 -0
- data/docs/PageGoal.md +16 -0
- data/docs/PageGoalTrack.md +16 -0
- data/docs/PageHousehold.md +16 -0
- data/docs/PageInvoice.md +16 -0
- data/docs/PageInvoicePayment.md +16 -0
- data/docs/PageMXMerchantRes.md +16 -0
- data/docs/PageModel.md +16 -0
- data/docs/PageModelAssetSize.md +16 -0
- data/docs/PageModelComment.md +16 -0
- data/docs/PageModelHolding.md +16 -0
- data/docs/PageModelTransaction.md +16 -0
- data/docs/PageNode.md +16 -0
- data/docs/PageNodeRelationship.md +16 -0
- data/docs/PageNotification.md +16 -0
- data/docs/PageNotificationClient.md +16 -0
- data/docs/PageNotificationSetting.md +16 -0
- data/docs/PageOrder.md +16 -0
- data/docs/PageOrderBulk.md +16 -0
- data/docs/PageOrderStatus.md +16 -0
- data/docs/PageOrderTrack.md +16 -0
- data/docs/PageOverflow.md +16 -0
- data/docs/PageOverflowSettings.md +16 -0
- data/docs/PagePortfolio.md +16 -0
- data/docs/PagePortfolioAssetSizeLog.md +16 -0
- data/docs/PagePortfolioComment.md +16 -0
- data/docs/PagePortfolioGoal.md +16 -0
- data/docs/PagePortfolioHoldingLog.md +16 -0
- data/docs/PagePortfolioTransaction.md +16 -0
- data/docs/PageQuestion.md +16 -0
- data/docs/PageQuestionnaire.md +16 -0
- data/docs/PageReasonCode.md +16 -0
- data/docs/PageRiskProfile.md +16 -0
- data/docs/PageRoundup.md +16 -0
- data/docs/PageRoundupSettings.md +16 -0
- data/docs/PageScore.md +16 -0
- data/docs/PageSecurity.md +16 -0
- data/docs/PageSecurityExclusion.md +16 -0
- data/docs/PageSecurityPrice.md +16 -0
- data/docs/PageSpendingControl.md +16 -0
- data/docs/PageStage.md +16 -0
- data/docs/PageTransactionCode.md +16 -0
- data/docs/PageVAccountAssetSize.md +16 -0
- data/docs/PageWebhook.md +16 -0
- data/docs/PerformanceApi.md +973 -0
- data/docs/PermissionVO.md +9 -0
- data/docs/Portfolio.md +22 -0
- data/docs/PortfolioApi.md +1902 -0
- data/docs/PortfolioAssetSizeLog.md +20 -0
- data/docs/PortfolioComment.md +16 -0
- data/docs/PortfolioGoal.md +14 -0
- data/docs/PortfolioGoalMap.md +9 -0
- data/docs/PortfolioHoldingAgg.md +14 -0
- data/docs/PortfolioHoldingLog.md +21 -0
- data/docs/PortfolioTransaction.md +37 -0
- data/docs/Question.md +23 -0
- data/docs/Questionnaire.md +17 -0
- data/docs/QuestionnaireApi.md +1212 -0
- data/docs/ReasonCode.md +17 -0
- data/docs/ResourceApi.md +534 -0
- data/docs/RiskProfile.md +18 -0
- data/docs/RiskProfileApi.md +309 -0
- data/docs/Roundup.md +15 -0
- data/docs/RoundupApi.md +492 -0
- data/docs/RoundupCO.md +12 -0
- data/docs/RoundupSettings.md +21 -0
- data/docs/Score.md +23 -0
- data/docs/ScoreApi.md +309 -0
- data/docs/SecuritiesApi.md +917 -0
- data/docs/SecuritiesComposition.md +11 -0
- data/docs/SecuritiesCountry.md +9 -0
- data/docs/Security.md +32 -0
- data/docs/SecurityCompositionVO.md +21 -0
- data/docs/SecurityCountryVO.md +9 -0
- data/docs/SecurityExclusion.md +18 -0
- data/docs/SecurityPrice.md +20 -0
- data/docs/Sort.md +13 -0
- data/docs/SpendingControl.md +21 -0
- data/docs/SpendingControlApi.md +309 -0
- data/docs/Stage.md +22 -0
- data/docs/Stat.md +9 -0
- data/docs/State.md +10 -0
- data/docs/StatisticResourceVO.md +11 -0
- data/docs/TokenDateRequest.md +13 -0
- data/docs/TransactionCode.md +20 -0
- data/docs/UtilsApi.md +911 -0
- data/docs/VAccountAssetSize.md +11 -0
- data/docs/VAccountVO.md +13 -0
- data/docs/VClientGoalViewData.md +13 -0
- data/docs/VPortfolioVO.md +11 -0
- data/docs/Webhook.md +15 -0
- data/docs/WebhookApi.md +309 -0
- data/git_push.sh +55 -0
- data/lib/nucleus_api.rb +303 -0
- data/lib/nucleus_api/api/account_api.rb +1794 -0
- data/lib/nucleus_api/api/admin_client_api.rb +301 -0
- data/lib/nucleus_api/api/aggregation_account_api.rb +1587 -0
- data/lib/nucleus_api/api/allocation_api.rb +824 -0
- data/lib/nucleus_api/api/application_api.rb +301 -0
- data/lib/nucleus_api/api/audit_log_api.rb +190 -0
- data/lib/nucleus_api/api/benchmark_api.rb +362 -0
- data/lib/nucleus_api/api/budget_api.rb +307 -0
- data/lib/nucleus_api/api/bulk_api.rb +253 -0
- data/lib/nucleus_api/api/business_api.rb +508 -0
- data/lib/nucleus_api/api/card_api.rb +719 -0
- data/lib/nucleus_api/api/client_api.rb +950 -0
- data/lib/nucleus_api/api/customer_api.rb +585 -0
- data/lib/nucleus_api/api/decision_tree_api.rb +913 -0
- data/lib/nucleus_api/api/document_api.rb +301 -0
- data/lib/nucleus_api/api/feature_api.rb +579 -0
- data/lib/nucleus_api/api/financial_statement_api.rb +307 -0
- data/lib/nucleus_api/api/funding_api.rb +1497 -0
- data/lib/nucleus_api/api/goal_api.rb +819 -0
- data/lib/nucleus_api/api/household_api.rb +508 -0
- data/lib/nucleus_api/api/invoice_api.rb +591 -0
- data/lib/nucleus_api/api/model_api.rb +1479 -0
- data/lib/nucleus_api/api/notification_api.rb +857 -0
- data/lib/nucleus_api/api/order_api.rb +1688 -0
- data/lib/nucleus_api/api/overflow_api.rb +468 -0
- data/lib/nucleus_api/api/performance_api.rb +1131 -0
- data/lib/nucleus_api/api/portfolio_api.rb +1776 -0
- data/lib/nucleus_api/api/questionnaire_api.rb +1135 -0
- data/lib/nucleus_api/api/resource_api.rb +479 -0
- data/lib/nucleus_api/api/risk_profile_api.rb +301 -0
- data/lib/nucleus_api/api/roundup_api.rb +468 -0
- data/lib/nucleus_api/api/score_api.rb +301 -0
- data/lib/nucleus_api/api/securities_api.rb +863 -0
- data/lib/nucleus_api/api/spending_control_api.rb +301 -0
- data/lib/nucleus_api/api/utils_api.rb +857 -0
- data/lib/nucleus_api/api/webhook_api.rb +301 -0
- data/lib/nucleus_api/api_client.rb +428 -0
- data/lib/nucleus_api/api_error.rb +38 -0
- data/lib/nucleus_api/auth_configuration.rb +177 -0
- data/lib/nucleus_api/configuration.rb +224 -0
- data/lib/nucleus_api/models/account.rb +333 -0
- data/lib/nucleus_api/models/account_allocation_mapping.rb +294 -0
- data/lib/nucleus_api/models/account_map.rb +202 -0
- data/lib/nucleus_api/models/account_permission_vo.rb +195 -0
- data/lib/nucleus_api/models/account_portfolio_rebalance_request.rb +313 -0
- data/lib/nucleus_api/models/account_status.rb +275 -0
- data/lib/nucleus_api/models/account_type.rb +335 -0
- data/lib/nucleus_api/models/acl_client_permission_vo.rb +236 -0
- data/lib/nucleus_api/models/admin_client.rb +272 -0
- data/lib/nucleus_api/models/aggregation_account.rb +420 -0
- data/lib/nucleus_api/models/aggregation_account_balance.rb +284 -0
- data/lib/nucleus_api/models/aggregation_account_holding.rb +364 -0
- data/lib/nucleus_api/models/aggregation_account_transaction.rb +382 -0
- data/lib/nucleus_api/models/aggregation_accounts_map.rb +202 -0
- data/lib/nucleus_api/models/allocation.rb +325 -0
- data/lib/nucleus_api/models/allocation_aggregated_vo.rb +228 -0
- data/lib/nucleus_api/models/allocation_composition.rb +304 -0
- data/lib/nucleus_api/models/allocation_composition_aggregated_vo.rb +282 -0
- data/lib/nucleus_api/models/allocation_composition_model_holdings_vo.rb +311 -0
- data/lib/nucleus_api/models/allocation_node_map.rb +187 -0
- data/lib/nucleus_api/models/answer.rb +286 -0
- data/lib/nucleus_api/models/answer_map.rb +181 -0
- data/lib/nucleus_api/models/application.rb +256 -0
- data/lib/nucleus_api/models/audit_log.rb +357 -0
- data/lib/nucleus_api/models/available_date_double_vo.rb +243 -0
- data/lib/nucleus_api/models/bank_credit.rb +262 -0
- data/lib/nucleus_api/models/bank_link.rb +410 -0
- data/lib/nucleus_api/models/bank_link_map.rb +202 -0
- data/lib/nucleus_api/models/benchmark.rb +277 -0
- data/lib/nucleus_api/models/benchmark_composition.rb +202 -0
- data/lib/nucleus_api/models/brokers.rb +203 -0
- data/lib/nucleus_api/models/budget.rb +372 -0
- data/lib/nucleus_api/models/budget_aggregation_account.rb +187 -0
- data/lib/nucleus_api/models/budget_object.rb +213 -0
- data/lib/nucleus_api/models/bulk_transaction.rb +226 -0
- data/lib/nucleus_api/models/bulk_transaction_vo.rb +217 -0
- data/lib/nucleus_api/models/business.rb +430 -0
- data/lib/nucleus_api/models/business_address.rb +278 -0
- data/lib/nucleus_api/models/card.rb +489 -0
- data/lib/nucleus_api/models/card_address.rb +268 -0
- data/lib/nucleus_api/models/card_program.rb +350 -0
- data/lib/nucleus_api/models/cash.rb +213 -0
- data/lib/nucleus_api/models/categories_map.rb +202 -0
- data/lib/nucleus_api/models/category_internal_response_vo.rb +201 -0
- data/lib/nucleus_api/models/category_response_vo.rb +192 -0
- data/lib/nucleus_api/models/check.rb +210 -0
- data/lib/nucleus_api/models/check_images.rb +198 -0
- data/lib/nucleus_api/models/client.rb +523 -0
- data/lib/nucleus_api/models/client_account_mapping.rb +212 -0
- data/lib/nucleus_api/models/client_address.rb +278 -0
- data/lib/nucleus_api/models/client_relationship.rb +209 -0
- data/lib/nucleus_api/models/client_response.rb +280 -0
- data/lib/nucleus_api/models/client_status.rb +275 -0
- data/lib/nucleus_api/models/client_view_goal_data.rb +302 -0
- data/lib/nucleus_api/models/country.rb +233 -0
- data/lib/nucleus_api/models/currency.rb +212 -0
- data/lib/nucleus_api/models/customer.rb +317 -0
- data/lib/nucleus_api/models/customer_address.rb +268 -0
- data/lib/nucleus_api/models/customer_revenue.rb +284 -0
- data/lib/nucleus_api/models/daily_deposit.rb +395 -0
- data/lib/nucleus_api/models/daily_withdrawal.rb +405 -0
- data/lib/nucleus_api/models/date_double_vo.rb +203 -0
- data/lib/nucleus_api/models/decision_tree.rb +275 -0
- data/lib/nucleus_api/models/decision_tree_co.rb +202 -0
- data/lib/nucleus_api/models/decision_tree_result_vo.rb +192 -0
- data/lib/nucleus_api/models/document.rb +409 -0
- data/lib/nucleus_api/models/employment.rb +213 -0
- data/lib/nucleus_api/models/external_account_transfer.rb +412 -0
- data/lib/nucleus_api/models/feature.rb +286 -0
- data/lib/nucleus_api/models/feature_track.rb +251 -0
- data/lib/nucleus_api/models/financial_statement.rb +352 -0
- data/lib/nucleus_api/models/funding.rb +496 -0
- data/lib/nucleus_api/models/funding_request_map.rb +187 -0
- data/lib/nucleus_api/models/fx_rate_view.rb +233 -0
- data/lib/nucleus_api/models/goal.rb +340 -0
- data/lib/nucleus_api/models/goal_account_mapping.rb +218 -0
- data/lib/nucleus_api/models/goal_track.rb +372 -0
- data/lib/nucleus_api/models/goal_track_accounts.rb +187 -0
- data/lib/nucleus_api/models/household.rb +285 -0
- data/lib/nucleus_api/models/investment.rb +283 -0
- data/lib/nucleus_api/models/invoice.rb +452 -0
- data/lib/nucleus_api/models/invoice_payment.rb +269 -0
- data/lib/nucleus_api/models/json_node.rb +404 -0
- data/lib/nucleus_api/models/line_items.rb +278 -0
- data/lib/nucleus_api/models/location.rb +253 -0
- data/lib/nucleus_api/models/member.rb +217 -0
- data/lib/nucleus_api/models/merchant_category_code.rb +213 -0
- data/lib/nucleus_api/models/merchants_map.rb +202 -0
- data/lib/nucleus_api/models/model.rb +396 -0
- data/lib/nucleus_api/models/model_asset_size.rb +274 -0
- data/lib/nucleus_api/models/model_comment.rb +264 -0
- data/lib/nucleus_api/models/model_holding.rb +370 -0
- data/lib/nucleus_api/models/model_holding_vo.rb +208 -0
- data/lib/nucleus_api/models/model_transaction.rb +298 -0
- data/lib/nucleus_api/models/mx_merchant_res.rb +235 -0
- data/lib/nucleus_api/models/node.rb +260 -0
- data/lib/nucleus_api/models/node_relationship.rb +300 -0
- data/lib/nucleus_api/models/notification.rb +313 -0
- data/lib/nucleus_api/models/notification_client.rb +309 -0
- data/lib/nucleus_api/models/notification_setting.rb +300 -0
- data/lib/nucleus_api/models/order.rb +390 -0
- data/lib/nucleus_api/models/order_bulk.rb +309 -0
- data/lib/nucleus_api/models/order_reconcile_request.rb +220 -0
- data/lib/nucleus_api/models/order_reconcile_return_object.rb +227 -0
- data/lib/nucleus_api/models/order_status.rb +250 -0
- data/lib/nucleus_api/models/order_track.rb +316 -0
- data/lib/nucleus_api/models/order_vo_clone.rb +304 -0
- data/lib/nucleus_api/models/overflow.rb +281 -0
- data/lib/nucleus_api/models/overflow_bank_link_map.rb +202 -0
- data/lib/nucleus_api/models/overflow_settings.rb +287 -0
- data/lib/nucleus_api/models/overflow_vo.rb +203 -0
- data/lib/nucleus_api/models/ownership.rb +233 -0
- data/lib/nucleus_api/models/page_account.rb +258 -0
- data/lib/nucleus_api/models/page_account_allocation_mapping.rb +258 -0
- data/lib/nucleus_api/models/page_account_permission_vo.rb +258 -0
- data/lib/nucleus_api/models/page_account_status.rb +258 -0
- data/lib/nucleus_api/models/page_account_type.rb +258 -0
- data/lib/nucleus_api/models/page_admin_client.rb +258 -0
- data/lib/nucleus_api/models/page_aggregation_account.rb +258 -0
- data/lib/nucleus_api/models/page_aggregation_account_balance.rb +258 -0
- data/lib/nucleus_api/models/page_aggregation_account_holding.rb +258 -0
- data/lib/nucleus_api/models/page_aggregation_account_transaction.rb +258 -0
- data/lib/nucleus_api/models/page_allocation.rb +258 -0
- data/lib/nucleus_api/models/page_allocation_composition.rb +258 -0
- data/lib/nucleus_api/models/page_answer.rb +258 -0
- data/lib/nucleus_api/models/page_application.rb +258 -0
- data/lib/nucleus_api/models/page_audit_log.rb +258 -0
- data/lib/nucleus_api/models/page_bank_link.rb +258 -0
- data/lib/nucleus_api/models/page_benchmark.rb +258 -0
- data/lib/nucleus_api/models/page_budget.rb +258 -0
- data/lib/nucleus_api/models/page_business.rb +258 -0
- data/lib/nucleus_api/models/page_card.rb +258 -0
- data/lib/nucleus_api/models/page_card_program.rb +258 -0
- data/lib/nucleus_api/models/page_client.rb +258 -0
- data/lib/nucleus_api/models/page_client_response.rb +258 -0
- data/lib/nucleus_api/models/page_client_status.rb +258 -0
- data/lib/nucleus_api/models/page_customer.rb +258 -0
- data/lib/nucleus_api/models/page_customer_revenue.rb +258 -0
- data/lib/nucleus_api/models/page_daily_deposit.rb +258 -0
- data/lib/nucleus_api/models/page_daily_withdrawal.rb +258 -0
- data/lib/nucleus_api/models/page_decision_tree.rb +258 -0
- data/lib/nucleus_api/models/page_document.rb +258 -0
- data/lib/nucleus_api/models/page_external_account_transfer.rb +258 -0
- data/lib/nucleus_api/models/page_feature.rb +258 -0
- data/lib/nucleus_api/models/page_feature_track.rb +258 -0
- data/lib/nucleus_api/models/page_financial_statement.rb +258 -0
- data/lib/nucleus_api/models/page_funding.rb +258 -0
- data/lib/nucleus_api/models/page_goal.rb +258 -0
- data/lib/nucleus_api/models/page_goal_track.rb +258 -0
- data/lib/nucleus_api/models/page_household.rb +258 -0
- data/lib/nucleus_api/models/page_invoice.rb +258 -0
- data/lib/nucleus_api/models/page_invoice_payment.rb +258 -0
- data/lib/nucleus_api/models/page_model.rb +258 -0
- data/lib/nucleus_api/models/page_model_asset_size.rb +258 -0
- data/lib/nucleus_api/models/page_model_comment.rb +258 -0
- data/lib/nucleus_api/models/page_model_holding.rb +258 -0
- data/lib/nucleus_api/models/page_model_transaction.rb +258 -0
- data/lib/nucleus_api/models/page_mx_merchant_res.rb +255 -0
- data/lib/nucleus_api/models/page_node.rb +258 -0
- data/lib/nucleus_api/models/page_node_relationship.rb +258 -0
- data/lib/nucleus_api/models/page_notification.rb +258 -0
- data/lib/nucleus_api/models/page_notification_client.rb +258 -0
- data/lib/nucleus_api/models/page_notification_setting.rb +258 -0
- data/lib/nucleus_api/models/page_order.rb +258 -0
- data/lib/nucleus_api/models/page_order_bulk.rb +258 -0
- data/lib/nucleus_api/models/page_order_status.rb +258 -0
- data/lib/nucleus_api/models/page_order_track.rb +258 -0
- data/lib/nucleus_api/models/page_overflow.rb +258 -0
- data/lib/nucleus_api/models/page_overflow_settings.rb +258 -0
- data/lib/nucleus_api/models/page_portfolio.rb +258 -0
- data/lib/nucleus_api/models/page_portfolio_asset_size_log.rb +258 -0
- data/lib/nucleus_api/models/page_portfolio_comment.rb +258 -0
- data/lib/nucleus_api/models/page_portfolio_goal.rb +258 -0
- data/lib/nucleus_api/models/page_portfolio_holding_log.rb +258 -0
- data/lib/nucleus_api/models/page_portfolio_transaction.rb +258 -0
- data/lib/nucleus_api/models/page_question.rb +258 -0
- data/lib/nucleus_api/models/page_questionnaire.rb +258 -0
- data/lib/nucleus_api/models/page_reason_code.rb +258 -0
- data/lib/nucleus_api/models/page_risk_profile.rb +258 -0
- data/lib/nucleus_api/models/page_roundup.rb +258 -0
- data/lib/nucleus_api/models/page_roundup_settings.rb +258 -0
- data/lib/nucleus_api/models/page_score.rb +258 -0
- data/lib/nucleus_api/models/page_security.rb +258 -0
- data/lib/nucleus_api/models/page_security_exclusion.rb +258 -0
- data/lib/nucleus_api/models/page_security_price.rb +258 -0
- data/lib/nucleus_api/models/page_spending_control.rb +258 -0
- data/lib/nucleus_api/models/page_stage.rb +258 -0
- data/lib/nucleus_api/models/page_transaction_code.rb +258 -0
- data/lib/nucleus_api/models/page_v_account_asset_size.rb +258 -0
- data/lib/nucleus_api/models/page_webhook.rb +258 -0
- data/lib/nucleus_api/models/permission_vo.rb +226 -0
- data/lib/nucleus_api/models/portfolio.rb +341 -0
- data/lib/nucleus_api/models/portfolio_asset_size_log.rb +329 -0
- data/lib/nucleus_api/models/portfolio_comment.rb +279 -0
- data/lib/nucleus_api/models/portfolio_goal.rb +255 -0
- data/lib/nucleus_api/models/portfolio_goal_map.rb +202 -0
- data/lib/nucleus_api/models/portfolio_holding_agg.rb +243 -0
- data/lib/nucleus_api/models/portfolio_holding_log.rb +339 -0
- data/lib/nucleus_api/models/portfolio_transaction.rb +495 -0
- data/lib/nucleus_api/models/question.rb +334 -0
- data/lib/nucleus_api/models/questionnaire.rb +275 -0
- data/lib/nucleus_api/models/reason_code.rb +274 -0
- data/lib/nucleus_api/models/risk_profile.rb +286 -0
- data/lib/nucleus_api/models/roundup.rb +266 -0
- data/lib/nucleus_api/models/roundup_co.rb +232 -0
- data/lib/nucleus_api/models/roundup_settings.rb +331 -0
- data/lib/nucleus_api/models/score.rb +374 -0
- data/lib/nucleus_api/models/securities_composition.rb +232 -0
- data/lib/nucleus_api/models/securities_country.rb +202 -0
- data/lib/nucleus_api/models/security.rb +434 -0
- data/lib/nucleus_api/models/security_composition_vo.rb +300 -0
- data/lib/nucleus_api/models/security_country_vo.rb +190 -0
- data/lib/nucleus_api/models/security_exclusion.rb +300 -0
- data/lib/nucleus_api/models/security_price.rb +313 -0
- data/lib/nucleus_api/models/sort.rb +233 -0
- data/lib/nucleus_api/models/spending_control.rb +331 -0
- data/lib/nucleus_api/models/stage.rb +325 -0
- data/lib/nucleus_api/models/stat.rb +203 -0
- data/lib/nucleus_api/models/state.rb +202 -0
- data/lib/nucleus_api/models/statistic_resource_vo.rb +208 -0
- data/lib/nucleus_api/models/token_date_request.rb +233 -0
- data/lib/nucleus_api/models/transaction_code.rb +362 -0
- data/lib/nucleus_api/models/v_account_asset_size.rb +212 -0
- data/lib/nucleus_api/models/v_account_vo.rb +226 -0
- data/lib/nucleus_api/models/v_client_goal_view_data.rb +228 -0
- data/lib/nucleus_api/models/v_portfolio_vo.rb +208 -0
- data/lib/nucleus_api/models/webhook.rb +280 -0
- data/lib/nucleus_api/version.rb +15 -0
- data/nucleus_api.gemspec +46 -0
- data/spec/api/account_api_spec.rb +455 -0
- data/spec/api/admin_client_api_spec.rb +100 -0
- data/spec/api/aggregation_account_api_spec.rb +399 -0
- data/spec/api/allocation_api_spec.rb +225 -0
- data/spec/api/application_api_spec.rb +100 -0
- data/spec/api/audit_log_api_spec.rb +75 -0
- data/spec/api/benchmark_api_spec.rb +115 -0
- data/spec/api/budget_api_spec.rb +102 -0
- data/spec/api/bulk_api_spec.rb +86 -0
- data/spec/api/business_api_spec.rb +153 -0
- data/spec/api/card_api_spec.rb +201 -0
- data/spec/api/client_api_spec.rb +256 -0
- data/spec/api/customer_api_spec.rb +167 -0
- data/spec/api/decision_tree_api_spec.rb +242 -0
- data/spec/api/document_api_spec.rb +100 -0
- data/spec/api/feature_api_spec.rb +165 -0
- data/spec/api/financial_statement_api_spec.rb +102 -0
- data/spec/api/funding_api_spec.rb +382 -0
- data/spec/api/goal_api_spec.rb +225 -0
- data/spec/api/household_api_spec.rb +153 -0
- data/spec/api/invoice_api_spec.rb +169 -0
- data/spec/api/model_api_spec.rb +375 -0
- data/spec/api/notification_api_spec.rb +230 -0
- data/spec/api/order_api_spec.rb +412 -0
- data/spec/api/overflow_api_spec.rb +140 -0
- data/spec/api/performance_api_spec.rb +355 -0
- data/spec/api/portfolio_api_spec.rb +448 -0
- data/spec/api/questionnaire_api_spec.rb +295 -0
- data/spec/api/resource_api_spec.rb +148 -0
- data/spec/api/risk_profile_api_spec.rb +100 -0
- data/spec/api/roundup_api_spec.rb +140 -0
- data/spec/api/score_api_spec.rb +100 -0
- data/spec/api/securities_api_spec.rb +232 -0
- data/spec/api/spending_control_api_spec.rb +100 -0
- data/spec/api/utils_api_spec.rb +230 -0
- data/spec/api/webhook_api_spec.rb +100 -0
- data/spec/api_client_spec.rb +243 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/account_allocation_mapping_spec.rb +95 -0
- data/spec/models/account_map_spec.rb +47 -0
- data/spec/models/account_permission_vo_spec.rb +47 -0
- data/spec/models/account_portfolio_rebalance_request_spec.rb +119 -0
- data/spec/models/account_spec.rb +125 -0
- data/spec/models/account_status_spec.rb +89 -0
- data/spec/models/account_type_spec.rb +131 -0
- data/spec/models/acl_client_permission_vo_spec.rb +57 -0
- data/spec/models/admin_client_spec.rb +101 -0
- data/spec/models/aggregation_account_balance_spec.rb +101 -0
- data/spec/models/aggregation_account_holding_spec.rb +149 -0
- data/spec/models/aggregation_account_spec.rb +173 -0
- data/spec/models/aggregation_account_transaction_spec.rb +139 -0
- data/spec/models/aggregation_accounts_map_spec.rb +47 -0
- data/spec/models/allocation_aggregated_vo_spec.rb +71 -0
- data/spec/models/allocation_composition_aggregated_vo_spec.rb +107 -0
- data/spec/models/allocation_composition_model_holdings_vo_spec.rb +125 -0
- data/spec/models/allocation_composition_spec.rb +101 -0
- data/spec/models/allocation_node_map_spec.rb +41 -0
- data/spec/models/allocation_spec.rb +125 -0
- data/spec/models/answer_map_spec.rb +41 -0
- data/spec/models/answer_spec.rb +101 -0
- data/spec/models/application_spec.rb +83 -0
- data/spec/models/audit_log_spec.rb +131 -0
- data/spec/models/available_date_double_vo_spec.rb +77 -0
- data/spec/models/bank_credit_spec.rb +83 -0
- data/spec/models/bank_link_map_spec.rb +47 -0
- data/spec/models/bank_link_spec.rb +167 -0
- data/spec/models/benchmark_composition_spec.rb +47 -0
- data/spec/models/benchmark_spec.rb +95 -0
- data/spec/models/brokers_spec.rb +47 -0
- data/spec/models/budget_aggregation_account_spec.rb +41 -0
- data/spec/models/budget_object_spec.rb +53 -0
- data/spec/models/budget_spec.rb +143 -0
- data/spec/models/bulk_transaction_spec.rb +71 -0
- data/spec/models/bulk_transaction_vo_spec.rb +65 -0
- data/spec/models/business_address_spec.rb +83 -0
- data/spec/models/business_spec.rb +185 -0
- data/spec/models/card_address_spec.rb +77 -0
- data/spec/models/card_program_spec.rb +131 -0
- data/spec/models/card_spec.rb +202 -0
- data/spec/models/cash_spec.rb +53 -0
- data/spec/models/categories_map_spec.rb +47 -0
- data/spec/models/category_internal_response_vo_spec.rb +53 -0
- data/spec/models/category_response_vo_spec.rb +47 -0
- data/spec/models/check_images_spec.rb +47 -0
- data/spec/models/check_spec.rb +53 -0
- data/spec/models/client_account_mapping_spec.rb +53 -0
- data/spec/models/client_address_spec.rb +83 -0
- data/spec/models/client_relationship_spec.rb +53 -0
- data/spec/models/client_response_spec.rb +95 -0
- data/spec/models/client_spec.rb +239 -0
- data/spec/models/client_status_spec.rb +89 -0
- data/spec/models/client_view_goal_data_spec.rb +119 -0
- data/spec/models/country_spec.rb +65 -0
- data/spec/models/currency_spec.rb +59 -0
- data/spec/models/customer_address_spec.rb +77 -0
- data/spec/models/customer_revenue_spec.rb +89 -0
- data/spec/models/customer_spec.rb +119 -0
- data/spec/models/daily_deposit_spec.rb +161 -0
- data/spec/models/daily_withdrawal_spec.rb +167 -0
- data/spec/models/date_double_vo_spec.rb +53 -0
- data/spec/models/decision_tree_co_spec.rb +47 -0
- data/spec/models/decision_tree_result_vo_spec.rb +47 -0
- data/spec/models/decision_tree_spec.rb +95 -0
- data/spec/models/document_spec.rb +173 -0
- data/spec/models/employment_spec.rb +59 -0
- data/spec/models/external_account_transfer_spec.rb +161 -0
- data/spec/models/feature_spec.rb +101 -0
- data/spec/models/feature_track_spec.rb +77 -0
- data/spec/models/financial_statement_spec.rb +131 -0
- data/spec/models/funding_request_map_spec.rb +41 -0
- data/spec/models/funding_spec.rb +215 -0
- data/spec/models/fx_rate_view_spec.rb +59 -0
- data/spec/models/goal_account_mapping_spec.rb +59 -0
- data/spec/models/goal_spec.rb +137 -0
- data/spec/models/goal_track_accounts_spec.rb +41 -0
- data/spec/models/goal_track_spec.rb +149 -0
- data/spec/models/household_spec.rb +101 -0
- data/spec/models/investment_spec.rb +89 -0
- data/spec/models/invoice_payment_spec.rb +83 -0
- data/spec/models/invoice_spec.rb +185 -0
- data/spec/models/json_node_spec.rb +171 -0
- data/spec/models/line_items_spec.rb +83 -0
- data/spec/models/location_spec.rb +83 -0
- data/spec/models/member_spec.rb +59 -0
- data/spec/models/merchant_category_code_spec.rb +59 -0
- data/spec/models/merchants_map_spec.rb +47 -0
- data/spec/models/model_asset_size_spec.rb +89 -0
- data/spec/models/model_comment_spec.rb +83 -0
- data/spec/models/model_holding_spec.rb +143 -0
- data/spec/models/model_holding_vo_spec.rb +59 -0
- data/spec/models/model_spec.rb +167 -0
- data/spec/models/model_transaction_spec.rb +95 -0
- data/spec/models/mx_merchant_res_spec.rb +77 -0
- data/spec/models/node_relationship_spec.rb +101 -0
- data/spec/models/node_spec.rb +83 -0
- data/spec/models/notification_client_spec.rb +107 -0
- data/spec/models/notification_setting_spec.rb +107 -0
- data/spec/models/notification_spec.rb +113 -0
- data/spec/models/order_bulk_spec.rb +101 -0
- data/spec/models/order_reconcile_request_spec.rb +65 -0
- data/spec/models/order_reconcile_return_object_spec.rb +65 -0
- data/spec/models/order_spec.rb +155 -0
- data/spec/models/order_status_spec.rb +77 -0
- data/spec/models/order_track_spec.rb +113 -0
- data/spec/models/order_vo_clone_spec.rb +113 -0
- data/spec/models/overflow_bank_link_map_spec.rb +47 -0
- data/spec/models/overflow_settings_spec.rb +95 -0
- data/spec/models/overflow_spec.rb +89 -0
- data/spec/models/overflow_vo_spec.rb +53 -0
- data/spec/models/ownership_spec.rb +65 -0
- data/spec/models/page_account_allocation_mapping_spec.rb +89 -0
- data/spec/models/page_account_permission_vo_spec.rb +89 -0
- data/spec/models/page_account_spec.rb +89 -0
- data/spec/models/page_account_status_spec.rb +89 -0
- data/spec/models/page_account_type_spec.rb +89 -0
- data/spec/models/page_admin_client_spec.rb +89 -0
- data/spec/models/page_aggregation_account_balance_spec.rb +89 -0
- data/spec/models/page_aggregation_account_holding_spec.rb +89 -0
- data/spec/models/page_aggregation_account_spec.rb +89 -0
- data/spec/models/page_aggregation_account_transaction_spec.rb +89 -0
- data/spec/models/page_allocation_composition_spec.rb +89 -0
- data/spec/models/page_allocation_spec.rb +89 -0
- data/spec/models/page_answer_spec.rb +89 -0
- data/spec/models/page_application_spec.rb +89 -0
- data/spec/models/page_audit_log_spec.rb +89 -0
- data/spec/models/page_bank_link_spec.rb +89 -0
- data/spec/models/page_benchmark_spec.rb +89 -0
- data/spec/models/page_budget_spec.rb +89 -0
- data/spec/models/page_business_spec.rb +89 -0
- data/spec/models/page_card_program_spec.rb +89 -0
- data/spec/models/page_card_spec.rb +89 -0
- data/spec/models/page_client_response_spec.rb +89 -0
- data/spec/models/page_client_spec.rb +89 -0
- data/spec/models/page_client_status_spec.rb +89 -0
- data/spec/models/page_customer_revenue_spec.rb +89 -0
- data/spec/models/page_customer_spec.rb +89 -0
- data/spec/models/page_daily_deposit_spec.rb +89 -0
- data/spec/models/page_daily_withdrawal_spec.rb +89 -0
- data/spec/models/page_decision_tree_spec.rb +89 -0
- data/spec/models/page_document_spec.rb +89 -0
- data/spec/models/page_external_account_transfer_spec.rb +89 -0
- data/spec/models/page_feature_spec.rb +89 -0
- data/spec/models/page_feature_track_spec.rb +89 -0
- data/spec/models/page_financial_statement_spec.rb +89 -0
- data/spec/models/page_funding_spec.rb +89 -0
- data/spec/models/page_goal_spec.rb +89 -0
- data/spec/models/page_goal_track_spec.rb +89 -0
- data/spec/models/page_household_spec.rb +89 -0
- data/spec/models/page_invoice_payment_spec.rb +89 -0
- data/spec/models/page_invoice_spec.rb +89 -0
- data/spec/models/page_model_asset_size_spec.rb +89 -0
- data/spec/models/page_model_comment_spec.rb +89 -0
- data/spec/models/page_model_holding_spec.rb +89 -0
- data/spec/models/page_model_spec.rb +89 -0
- data/spec/models/page_model_transaction_spec.rb +89 -0
- data/spec/models/page_mx_merchant_res_spec.rb +89 -0
- data/spec/models/page_node_relationship_spec.rb +89 -0
- data/spec/models/page_node_spec.rb +89 -0
- data/spec/models/page_notification_client_spec.rb +89 -0
- data/spec/models/page_notification_setting_spec.rb +89 -0
- data/spec/models/page_notification_spec.rb +89 -0
- data/spec/models/page_order_bulk_spec.rb +89 -0
- data/spec/models/page_order_spec.rb +89 -0
- data/spec/models/page_order_status_spec.rb +89 -0
- data/spec/models/page_order_track_spec.rb +89 -0
- data/spec/models/page_overflow_settings_spec.rb +89 -0
- data/spec/models/page_overflow_spec.rb +89 -0
- data/spec/models/page_portfolio_asset_size_log_spec.rb +89 -0
- data/spec/models/page_portfolio_comment_spec.rb +89 -0
- data/spec/models/page_portfolio_goal_spec.rb +89 -0
- data/spec/models/page_portfolio_holding_log_spec.rb +89 -0
- data/spec/models/page_portfolio_spec.rb +89 -0
- data/spec/models/page_portfolio_transaction_spec.rb +89 -0
- data/spec/models/page_question_spec.rb +89 -0
- data/spec/models/page_questionnaire_spec.rb +89 -0
- data/spec/models/page_reason_code_spec.rb +89 -0
- data/spec/models/page_risk_profile_spec.rb +89 -0
- data/spec/models/page_roundup_settings_spec.rb +89 -0
- data/spec/models/page_roundup_spec.rb +89 -0
- data/spec/models/page_score_spec.rb +89 -0
- data/spec/models/page_security_exclusion_spec.rb +89 -0
- data/spec/models/page_security_price_spec.rb +89 -0
- data/spec/models/page_security_spec.rb +89 -0
- data/spec/models/page_spending_control_spec.rb +89 -0
- data/spec/models/page_stage_spec.rb +89 -0
- data/spec/models/page_transaction_code_spec.rb +89 -0
- data/spec/models/page_v_account_asset_size_spec.rb +89 -0
- data/spec/models/page_webhook_spec.rb +89 -0
- data/spec/models/permission_vo_spec.rb +51 -0
- data/spec/models/portfolio_asset_size_log_spec.rb +113 -0
- data/spec/models/portfolio_comment_spec.rb +89 -0
- data/spec/models/portfolio_goal_map_spec.rb +47 -0
- data/spec/models/portfolio_goal_spec.rb +77 -0
- data/spec/models/portfolio_holding_agg_spec.rb +77 -0
- data/spec/models/portfolio_holding_log_spec.rb +119 -0
- data/spec/models/portfolio_spec.rb +125 -0
- data/spec/models/portfolio_transaction_spec.rb +215 -0
- data/spec/models/question_spec.rb +131 -0
- data/spec/models/questionnaire_spec.rb +95 -0
- data/spec/models/reason_code_spec.rb +95 -0
- data/spec/models/risk_profile_spec.rb +101 -0
- data/spec/models/roundup_co_spec.rb +65 -0
- data/spec/models/roundup_settings_spec.rb +119 -0
- data/spec/models/roundup_spec.rb +83 -0
- data/spec/models/score_spec.rb +135 -0
- data/spec/models/securities_composition_spec.rb +59 -0
- data/spec/models/securities_country_spec.rb +47 -0
- data/spec/models/security_composition_vo_spec.rb +119 -0
- data/spec/models/security_country_vo_spec.rb +47 -0
- data/spec/models/security_exclusion_spec.rb +101 -0
- data/spec/models/security_price_spec.rb +113 -0
- data/spec/models/security_spec.rb +185 -0
- data/spec/models/sort_spec.rb +71 -0
- data/spec/models/spending_control_spec.rb +119 -0
- data/spec/models/stage_spec.rb +125 -0
- data/spec/models/stat_spec.rb +47 -0
- data/spec/models/state_spec.rb +53 -0
- data/spec/models/statistic_resource_vo_spec.rb +59 -0
- data/spec/models/token_date_request_spec.rb +71 -0
- data/spec/models/transaction_code_spec.rb +125 -0
- data/spec/models/v_account_asset_size_spec.rb +59 -0
- data/spec/models/v_account_vo_spec.rb +71 -0
- data/spec/models/v_client_goal_view_data_spec.rb +71 -0
- data/spec/models/v_portfolio_vo_spec.rb +59 -0
- data/spec/models/webhook_spec.rb +87 -0
- data/spec/spec_helper.rb +111 -0
- metadata +1312 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Hydrogen Nucleus API
|
|
3
|
+
|
|
4
|
+
#The Hydrogen Nucleus API
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 1.8.0
|
|
7
|
+
Contact: info@hydrogenplatform.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.18
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for NucleusApi::SpendingControlApi
|
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'SpendingControlApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@instance = NucleusApi::SpendingControlApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of SpendingControlApi' do
|
|
30
|
+
it 'should create an instance of SpendingControlApi' do
|
|
31
|
+
expect(@instance).to be_instance_of(NucleusApi::SpendingControlApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for create_spending_control_using_post
|
|
36
|
+
# Create a Spending Control
|
|
37
|
+
# Create a new Spending Control.
|
|
38
|
+
# @param spending_control spendingControl
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [SpendingControl]
|
|
41
|
+
describe 'create_spending_control_using_post test' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# unit tests for delete_spending_control_using_delete
|
|
48
|
+
# Delete a Spending Control
|
|
49
|
+
# Permanently Delete Spending Control.
|
|
50
|
+
# @param spending_control_id spending_control_id
|
|
51
|
+
# @param [Hash] opts the optional parameters
|
|
52
|
+
# @return [nil]
|
|
53
|
+
describe 'delete_spending_control_using_delete test' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# unit tests for get_spending_control_all_using_get
|
|
60
|
+
# List all Spending Control
|
|
61
|
+
# List all Spending Control.
|
|
62
|
+
# @param [Hash] opts the optional parameters
|
|
63
|
+
# @option opts [BOOLEAN] :ascending ascending
|
|
64
|
+
# @option opts [String] :filter filter
|
|
65
|
+
# @option opts [String] :order_by order_by
|
|
66
|
+
# @option opts [Integer] :page page
|
|
67
|
+
# @option opts [Integer] :size size
|
|
68
|
+
# @return [PageSpendingControl]
|
|
69
|
+
describe 'get_spending_control_all_using_get test' do
|
|
70
|
+
it 'should work' do
|
|
71
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# unit tests for get_spending_control_using_get
|
|
76
|
+
# Retrieve a Spending Control
|
|
77
|
+
# Retrieve a Spending Control.
|
|
78
|
+
# @param spending_control_id spending_control_id
|
|
79
|
+
# @param [Hash] opts the optional parameters
|
|
80
|
+
# @return [SpendingControl]
|
|
81
|
+
describe 'get_spending_control_using_get test' do
|
|
82
|
+
it 'should work' do
|
|
83
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# unit tests for update_spending_control_using_put
|
|
88
|
+
# Update a Spending Control
|
|
89
|
+
# Update a Spending Control.
|
|
90
|
+
# @param spending_control spending_control
|
|
91
|
+
# @param spending_control_id UUID spending_control_id
|
|
92
|
+
# @param [Hash] opts the optional parameters
|
|
93
|
+
# @return [SpendingControl]
|
|
94
|
+
describe 'update_spending_control_using_put test' do
|
|
95
|
+
it 'should work' do
|
|
96
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
end
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Hydrogen Nucleus API
|
|
3
|
+
|
|
4
|
+
#The Hydrogen Nucleus API
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 1.8.0
|
|
7
|
+
Contact: info@hydrogenplatform.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.18
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for NucleusApi::UtilsApi
|
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'UtilsApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@instance = NucleusApi::UtilsApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of UtilsApi' do
|
|
30
|
+
it 'should create an instance of UtilsApi' do
|
|
31
|
+
expect(@instance).to be_instance_of(NucleusApi::UtilsApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for create_reason_code_using_post
|
|
36
|
+
# Create a reason code
|
|
37
|
+
# Create a new reason code for your firm.
|
|
38
|
+
# @param reason_code_request reasonCodeRequest
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [ReasonCode]
|
|
41
|
+
describe 'create_reason_code_using_post test' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# unit tests for create_stage_using_post
|
|
48
|
+
# Create an account stage
|
|
49
|
+
# Create a new account stage
|
|
50
|
+
# @param stage_request stageRequest
|
|
51
|
+
# @param [Hash] opts the optional parameters
|
|
52
|
+
# @return [Stage]
|
|
53
|
+
describe 'create_stage_using_post test' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# unit tests for create_transaction_code_using_post
|
|
60
|
+
# Create a transaction code
|
|
61
|
+
# Create a new transaction code for your firm.
|
|
62
|
+
# @param transaction_request transactionRequest
|
|
63
|
+
# @param [Hash] opts the optional parameters
|
|
64
|
+
# @return [TransactionCode]
|
|
65
|
+
describe 'create_transaction_code_using_post test' do
|
|
66
|
+
it 'should work' do
|
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# unit tests for delete_reason_code_using_delete
|
|
72
|
+
# Delete a reason code
|
|
73
|
+
# Permanently delete a reason code for your firm.
|
|
74
|
+
# @param reason_code_id UUID reason_code_id
|
|
75
|
+
# @param [Hash] opts the optional parameters
|
|
76
|
+
# @return [nil]
|
|
77
|
+
describe 'delete_reason_code_using_delete test' do
|
|
78
|
+
it 'should work' do
|
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# unit tests for delete_stage_using_delete
|
|
84
|
+
# Delete an account stage
|
|
85
|
+
# Permanently delete an account stage.
|
|
86
|
+
# @param stage_id UUID stage_id
|
|
87
|
+
# @param [Hash] opts the optional parameters
|
|
88
|
+
# @return [nil]
|
|
89
|
+
describe 'delete_stage_using_delete test' do
|
|
90
|
+
it 'should work' do
|
|
91
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# unit tests for delete_transaction_code_using_delete
|
|
96
|
+
# Delete a transaction code
|
|
97
|
+
# Permanently delete a transaction code for your firm.
|
|
98
|
+
# @param transaction_code_id UUID transaction_code_id
|
|
99
|
+
# @param [Hash] opts the optional parameters
|
|
100
|
+
# @return [nil]
|
|
101
|
+
describe 'delete_transaction_code_using_delete test' do
|
|
102
|
+
it 'should work' do
|
|
103
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
104
|
+
end
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# unit tests for get_reason_code_all_using_get
|
|
108
|
+
# List all reason codes
|
|
109
|
+
# Get the information for all reason codes defined by your firm.
|
|
110
|
+
# @param [Hash] opts the optional parameters
|
|
111
|
+
# @option opts [BOOLEAN] :ascending ascending
|
|
112
|
+
# @option opts [String] :filter filter
|
|
113
|
+
# @option opts [String] :order_by order_by
|
|
114
|
+
# @option opts [Integer] :page page
|
|
115
|
+
# @option opts [Integer] :size size
|
|
116
|
+
# @return [PageReasonCode]
|
|
117
|
+
describe 'get_reason_code_all_using_get test' do
|
|
118
|
+
it 'should work' do
|
|
119
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# unit tests for get_reason_code_using_get
|
|
124
|
+
# Retrieve a reason code
|
|
125
|
+
# Retrieve the information for a reason code defined by your firm.
|
|
126
|
+
# @param reason_code_id UUID reason_code_id
|
|
127
|
+
# @param [Hash] opts the optional parameters
|
|
128
|
+
# @return [ReasonCode]
|
|
129
|
+
describe 'get_reason_code_using_get test' do
|
|
130
|
+
it 'should work' do
|
|
131
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
132
|
+
end
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# unit tests for get_stage_all_using_get
|
|
136
|
+
# List all account stages
|
|
137
|
+
# Get the information for all possible account stages.
|
|
138
|
+
# @param [Hash] opts the optional parameters
|
|
139
|
+
# @option opts [BOOLEAN] :ascending ascending
|
|
140
|
+
# @option opts [String] :filter filter
|
|
141
|
+
# @option opts [String] :order_by order_by
|
|
142
|
+
# @option opts [Integer] :page page
|
|
143
|
+
# @option opts [Integer] :size size
|
|
144
|
+
# @return [PageStage]
|
|
145
|
+
describe 'get_stage_all_using_get test' do
|
|
146
|
+
it 'should work' do
|
|
147
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
148
|
+
end
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# unit tests for get_stage_using_get
|
|
152
|
+
# Retrieve an account stage
|
|
153
|
+
# Retrieve the information for a specific account stage.
|
|
154
|
+
# @param stage_id UUID stage_id
|
|
155
|
+
# @param [Hash] opts the optional parameters
|
|
156
|
+
# @return [Stage]
|
|
157
|
+
describe 'get_stage_using_get test' do
|
|
158
|
+
it 'should work' do
|
|
159
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
160
|
+
end
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
# unit tests for get_transaction_code_all_using_get
|
|
164
|
+
# List all transaction codes
|
|
165
|
+
# Get the information for all transaction codes defined by your firm.
|
|
166
|
+
# @param [Hash] opts the optional parameters
|
|
167
|
+
# @option opts [BOOLEAN] :ascending ascending
|
|
168
|
+
# @option opts [String] :filter filter
|
|
169
|
+
# @option opts [String] :order_by order_by
|
|
170
|
+
# @option opts [Integer] :page page
|
|
171
|
+
# @option opts [Integer] :size size
|
|
172
|
+
# @return [PageTransactionCode]
|
|
173
|
+
describe 'get_transaction_code_all_using_get test' do
|
|
174
|
+
it 'should work' do
|
|
175
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
176
|
+
end
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# unit tests for get_transaction_code_using_get
|
|
180
|
+
# Retrieve a transaction code
|
|
181
|
+
# Retrieve the information for a transaction code defined by your firm.
|
|
182
|
+
# @param transaction_code_id UUID transaction_code_id
|
|
183
|
+
# @param [Hash] opts the optional parameters
|
|
184
|
+
# @return [TransactionCode]
|
|
185
|
+
describe 'get_transaction_code_using_get test' do
|
|
186
|
+
it 'should work' do
|
|
187
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
188
|
+
end
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
# unit tests for update_reason_code_using_put
|
|
192
|
+
# Update a reason code
|
|
193
|
+
# Update a reason code for your firm.
|
|
194
|
+
# @param reason_code reason_code
|
|
195
|
+
# @param reason_code_id UUID reason_code_id
|
|
196
|
+
# @param [Hash] opts the optional parameters
|
|
197
|
+
# @return [ReasonCode]
|
|
198
|
+
describe 'update_reason_code_using_put test' do
|
|
199
|
+
it 'should work' do
|
|
200
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
201
|
+
end
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# unit tests for update_stage_using_put
|
|
205
|
+
# Update an account stage
|
|
206
|
+
# Update the information for an account stage.
|
|
207
|
+
# @param stage stage
|
|
208
|
+
# @param stage_id UUID stage_id
|
|
209
|
+
# @param [Hash] opts the optional parameters
|
|
210
|
+
# @return [Stage]
|
|
211
|
+
describe 'update_stage_using_put test' do
|
|
212
|
+
it 'should work' do
|
|
213
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
214
|
+
end
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# unit tests for update_transaction_code_using_put
|
|
218
|
+
# Update a transaction code
|
|
219
|
+
# Update a transaction code for your firm.
|
|
220
|
+
# @param transaction_code transaction_code
|
|
221
|
+
# @param transaction_code_id UUID transaction_code_id
|
|
222
|
+
# @param [Hash] opts the optional parameters
|
|
223
|
+
# @return [TransactionCode]
|
|
224
|
+
describe 'update_transaction_code_using_put test' do
|
|
225
|
+
it 'should work' do
|
|
226
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
227
|
+
end
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
end
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Hydrogen Nucleus API
|
|
3
|
+
|
|
4
|
+
#The Hydrogen Nucleus API
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 1.8.0
|
|
7
|
+
Contact: info@hydrogenplatform.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.18
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for NucleusApi::WebhookApi
|
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'WebhookApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@instance = NucleusApi::WebhookApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of WebhookApi' do
|
|
30
|
+
it 'should create an instance of WebhookApi' do
|
|
31
|
+
expect(@instance).to be_instance_of(NucleusApi::WebhookApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for create_webhook_using_post
|
|
36
|
+
# Create a webhook
|
|
37
|
+
# One active webhook service is allowed at all times.
|
|
38
|
+
# @param webhook_request webhookRequest
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [Webhook]
|
|
41
|
+
describe 'create_webhook_using_post test' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# unit tests for delete_webhook_using_delete
|
|
48
|
+
# Delete a webhook
|
|
49
|
+
# Permanently delete a webhook for your firm. The webhook_id must be provided.
|
|
50
|
+
# @param webhook_id UUID webhook_id
|
|
51
|
+
# @param [Hash] opts the optional parameters
|
|
52
|
+
# @return [nil]
|
|
53
|
+
describe 'delete_webhook_using_delete test' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# unit tests for get_webhook_all_using_get
|
|
60
|
+
# List all webhooks
|
|
61
|
+
# Get information for all webhooks defined for your firm.
|
|
62
|
+
# @param [Hash] opts the optional parameters
|
|
63
|
+
# @option opts [BOOLEAN] :ascending ascending
|
|
64
|
+
# @option opts [String] :filter filter
|
|
65
|
+
# @option opts [String] :order_by order_by
|
|
66
|
+
# @option opts [Integer] :page page
|
|
67
|
+
# @option opts [Integer] :size size
|
|
68
|
+
# @return [PageWebhook]
|
|
69
|
+
describe 'get_webhook_all_using_get test' do
|
|
70
|
+
it 'should work' do
|
|
71
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# unit tests for get_webhook_using_get
|
|
76
|
+
# Retrieve a webhook
|
|
77
|
+
# Retrieve the information for a specific webhook. The webhook_id must be provided.
|
|
78
|
+
# @param webhook_id UUID webhook_id
|
|
79
|
+
# @param [Hash] opts the optional parameters
|
|
80
|
+
# @return [Webhook]
|
|
81
|
+
describe 'get_webhook_using_get test' do
|
|
82
|
+
it 'should work' do
|
|
83
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# unit tests for update_webhook_using_put
|
|
88
|
+
# Update a webhook
|
|
89
|
+
# Update a webhook for your firm. The webhook_id must be provided
|
|
90
|
+
# @param webhook webhook
|
|
91
|
+
# @param webhook_id UUID webhook_id
|
|
92
|
+
# @param [Hash] opts the optional parameters
|
|
93
|
+
# @return [Webhook]
|
|
94
|
+
describe 'update_webhook_using_put test' do
|
|
95
|
+
it 'should work' do
|
|
96
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
end
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Hydrogen Nucleus API
|
|
3
|
+
|
|
4
|
+
#The Hydrogen Nucleus API
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 1.8.0
|
|
7
|
+
Contact: info@hydrogenplatform.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.18
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
|
|
15
|
+
describe NucleusApi::ApiClient do
|
|
16
|
+
context 'initialization' do
|
|
17
|
+
context 'URL stuff' do
|
|
18
|
+
context 'host' do
|
|
19
|
+
it 'removes http from host' do
|
|
20
|
+
NucleusApi.configure { |c| c.host = 'http://example.com' }
|
|
21
|
+
expect(NucleusApi::Configuration.default.host).to eq('example.com')
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
it 'removes https from host' do
|
|
25
|
+
NucleusApi.configure { |c| c.host = 'https://wookiee.com' }
|
|
26
|
+
expect(NucleusApi::ApiClient.default.config.host).to eq('wookiee.com')
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
it 'removes trailing path from host' do
|
|
30
|
+
NucleusApi.configure { |c| c.host = 'hobo.com/v4' }
|
|
31
|
+
expect(NucleusApi::Configuration.default.host).to eq('hobo.com')
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
context 'base_path' do
|
|
36
|
+
it "prepends a slash to base_path" do
|
|
37
|
+
NucleusApi.configure { |c| c.base_path = 'v4/dog' }
|
|
38
|
+
expect(NucleusApi::Configuration.default.base_path).to eq('/v4/dog')
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
it "doesn't prepend a slash if one is already there" do
|
|
42
|
+
NucleusApi.configure { |c| c.base_path = '/v4/dog' }
|
|
43
|
+
expect(NucleusApi::Configuration.default.base_path).to eq('/v4/dog')
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
it "ends up as a blank string if nil" do
|
|
47
|
+
NucleusApi.configure { |c| c.base_path = nil }
|
|
48
|
+
expect(NucleusApi::Configuration.default.base_path).to eq('')
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
describe 'params_encoding in #build_request' do
|
|
55
|
+
let(:config) { NucleusApi::Configuration.new }
|
|
56
|
+
let(:api_client) { NucleusApi::ApiClient.new(config) }
|
|
57
|
+
|
|
58
|
+
it 'defaults to nil' do
|
|
59
|
+
expect(NucleusApi::Configuration.default.params_encoding).to eq(nil)
|
|
60
|
+
expect(config.params_encoding).to eq(nil)
|
|
61
|
+
|
|
62
|
+
request = api_client.build_request(:get, '/test')
|
|
63
|
+
expect(request.options[:params_encoding]).to eq(nil)
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
it 'can be customized' do
|
|
67
|
+
config.params_encoding = :multi
|
|
68
|
+
request = api_client.build_request(:get, '/test')
|
|
69
|
+
expect(request.options[:params_encoding]).to eq(:multi)
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
describe 'timeout in #build_request' do
|
|
74
|
+
let(:config) { NucleusApi::Configuration.new }
|
|
75
|
+
let(:api_client) { NucleusApi::ApiClient.new(config) }
|
|
76
|
+
|
|
77
|
+
it 'defaults to 0' do
|
|
78
|
+
expect(NucleusApi::Configuration.default.timeout).to eq(0)
|
|
79
|
+
expect(config.timeout).to eq(0)
|
|
80
|
+
|
|
81
|
+
request = api_client.build_request(:get, '/test')
|
|
82
|
+
expect(request.options[:timeout]).to eq(0)
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
it 'can be customized' do
|
|
86
|
+
config.timeout = 100
|
|
87
|
+
request = api_client.build_request(:get, '/test')
|
|
88
|
+
expect(request.options[:timeout]).to eq(100)
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
describe '#build_request' do
|
|
93
|
+
let(:config) { NucleusApi::Configuration.new }
|
|
94
|
+
let(:api_client) { NucleusApi::ApiClient.new(config) }
|
|
95
|
+
|
|
96
|
+
it 'does not send multipart to request' do
|
|
97
|
+
expect(Typhoeus::Request).to receive(:new).with(anything, hash_not_including(:multipart))
|
|
98
|
+
api_client.build_request(:get, '/test')
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
context 'when the content type is multipart' do
|
|
102
|
+
it 'sends multipart to request' do
|
|
103
|
+
expect(Typhoeus::Request).to receive(:new).with(anything, hash_including(multipart: true))
|
|
104
|
+
api_client.build_request(:get, '/test', {header_params: { 'Content-Type' => 'multipart/form-data'}})
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
describe '#deserialize' do
|
|
110
|
+
it "handles Array<Integer>" do
|
|
111
|
+
api_client = NucleusApi::ApiClient.new
|
|
112
|
+
headers = { 'Content-Type' => 'application/json' }
|
|
113
|
+
response = double('response', headers: headers, body: '[12, 34]')
|
|
114
|
+
data = api_client.deserialize(response, 'Array<Integer>')
|
|
115
|
+
expect(data).to be_instance_of(Array)
|
|
116
|
+
expect(data).to eq([12, 34])
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
it 'handles Array<Array<Integer>>' do
|
|
120
|
+
api_client = NucleusApi::ApiClient.new
|
|
121
|
+
headers = { 'Content-Type' => 'application/json' }
|
|
122
|
+
response = double('response', headers: headers, body: '[[12, 34], [56]]')
|
|
123
|
+
data = api_client.deserialize(response, 'Array<Array<Integer>>')
|
|
124
|
+
expect(data).to be_instance_of(Array)
|
|
125
|
+
expect(data).to eq([[12, 34], [56]])
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
it 'handles Hash<String, String>' do
|
|
129
|
+
api_client = NucleusApi::ApiClient.new
|
|
130
|
+
headers = { 'Content-Type' => 'application/json' }
|
|
131
|
+
response = double('response', headers: headers, body: '{"message": "Hello"}')
|
|
132
|
+
data = api_client.deserialize(response, 'Hash<String, String>')
|
|
133
|
+
expect(data).to be_instance_of(Hash)
|
|
134
|
+
expect(data).to eq(:message => 'Hello')
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
describe "#object_to_hash" do
|
|
139
|
+
it 'ignores nils and includes empty arrays' do
|
|
140
|
+
# uncomment below to test object_to_hash for model
|
|
141
|
+
# api_client = NucleusApi::ApiClient.new
|
|
142
|
+
# _model = NucleusApi::ModelName.new
|
|
143
|
+
# update the model attribute below
|
|
144
|
+
# _model.id = 1
|
|
145
|
+
# update the expected value (hash) below
|
|
146
|
+
# expected = {id: 1, name: '', tags: []}
|
|
147
|
+
# expect(api_client.object_to_hash(_model)).to eq(expected)
|
|
148
|
+
end
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
describe '#build_collection_param' do
|
|
152
|
+
let(:param) { ['aa', 'bb', 'cc'] }
|
|
153
|
+
let(:api_client) { NucleusApi::ApiClient.new }
|
|
154
|
+
|
|
155
|
+
it 'works for csv' do
|
|
156
|
+
expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
it 'works for ssv' do
|
|
160
|
+
expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc')
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
it 'works for tsv' do
|
|
164
|
+
expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc")
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
it 'works for pipes' do
|
|
168
|
+
expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc')
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
it 'works for multi' do
|
|
172
|
+
expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc'])
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
it 'fails for invalid collection format' do
|
|
176
|
+
expect(proc { api_client.build_collection_param(param, :INVALID) }).to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
describe '#json_mime?' do
|
|
181
|
+
let(:api_client) { NucleusApi::ApiClient.new }
|
|
182
|
+
|
|
183
|
+
it 'works' do
|
|
184
|
+
expect(api_client.json_mime?(nil)).to eq false
|
|
185
|
+
expect(api_client.json_mime?('')).to eq false
|
|
186
|
+
|
|
187
|
+
expect(api_client.json_mime?('application/json')).to eq true
|
|
188
|
+
expect(api_client.json_mime?('application/json; charset=UTF8')).to eq true
|
|
189
|
+
expect(api_client.json_mime?('APPLICATION/JSON')).to eq true
|
|
190
|
+
|
|
191
|
+
expect(api_client.json_mime?('application/xml')).to eq false
|
|
192
|
+
expect(api_client.json_mime?('text/plain')).to eq false
|
|
193
|
+
expect(api_client.json_mime?('application/jsonp')).to eq false
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
describe '#select_header_accept' do
|
|
198
|
+
let(:api_client) { NucleusApi::ApiClient.new }
|
|
199
|
+
|
|
200
|
+
it 'works' do
|
|
201
|
+
expect(api_client.select_header_accept(nil)).to be_nil
|
|
202
|
+
expect(api_client.select_header_accept([])).to be_nil
|
|
203
|
+
|
|
204
|
+
expect(api_client.select_header_accept(['application/json'])).to eq('application/json')
|
|
205
|
+
expect(api_client.select_header_accept(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
|
206
|
+
expect(api_client.select_header_accept(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
|
|
207
|
+
|
|
208
|
+
expect(api_client.select_header_accept(['application/xml'])).to eq('application/xml')
|
|
209
|
+
expect(api_client.select_header_accept(['text/html', 'application/xml'])).to eq('text/html,application/xml')
|
|
210
|
+
end
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
describe '#select_header_content_type' do
|
|
214
|
+
let(:api_client) { NucleusApi::ApiClient.new }
|
|
215
|
+
|
|
216
|
+
it 'works' do
|
|
217
|
+
expect(api_client.select_header_content_type(nil)).to eq('application/json')
|
|
218
|
+
expect(api_client.select_header_content_type([])).to eq('application/json')
|
|
219
|
+
|
|
220
|
+
expect(api_client.select_header_content_type(['application/json'])).to eq('application/json')
|
|
221
|
+
expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
|
222
|
+
expect(api_client.select_header_content_type(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
|
|
223
|
+
expect(api_client.select_header_content_type(['application/xml'])).to eq('application/xml')
|
|
224
|
+
expect(api_client.select_header_content_type(['text/plain', 'application/xml'])).to eq('text/plain')
|
|
225
|
+
end
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
describe '#sanitize_filename' do
|
|
229
|
+
let(:api_client) { NucleusApi::ApiClient.new }
|
|
230
|
+
|
|
231
|
+
it 'works' do
|
|
232
|
+
expect(api_client.sanitize_filename('sun')).to eq('sun')
|
|
233
|
+
expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif')
|
|
234
|
+
expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif')
|
|
235
|
+
expect(api_client.sanitize_filename('/var/tmp/sun.gif')).to eq('sun.gif')
|
|
236
|
+
expect(api_client.sanitize_filename('./sun.gif')).to eq('sun.gif')
|
|
237
|
+
expect(api_client.sanitize_filename('..\sun.gif')).to eq('sun.gif')
|
|
238
|
+
expect(api_client.sanitize_filename('\var\tmp\sun.gif')).to eq('sun.gif')
|
|
239
|
+
expect(api_client.sanitize_filename('c:\var\tmp\sun.gif')).to eq('sun.gif')
|
|
240
|
+
expect(api_client.sanitize_filename('.\sun.gif')).to eq('sun.gif')
|
|
241
|
+
end
|
|
242
|
+
end
|
|
243
|
+
end
|