proton_api 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/README.md +246 -0
- data/Rakefile +8 -0
- data/docs/AccumulationGoalDepositConfig.md +14 -0
- data/docs/AnnuitiesApi.md +344 -0
- data/docs/AnnuityCalculatorAccumulationHorizonRequest.md +19 -0
- data/docs/AnnuityCalculatorAnnuityAmountRequest.md +19 -0
- data/docs/AnnuityCalculatorDecumulationHorizonRequest.md +19 -0
- data/docs/AnnuityCalculatorDepositAmountRequest.md +19 -0
- data/docs/AnnuityCalculatorInitialBalanceRequest.md +19 -0
- data/docs/AnnuityDepositSchedule.md +10 -0
- data/docs/BacktestRequest.md +17 -0
- data/docs/BeneficiaryBequestConfig.md +10 -0
- data/docs/BudgetAggregationAccount.md +8 -0
- data/docs/BudgetCalculatorRequest.md +16 -0
- data/docs/BudgetComponent.md +10 -0
- data/docs/BudgetDetails.md +17 -0
- data/docs/BusinessFinancialHealthCheckRequest.md +22 -0
- data/docs/BusinessFinancialManagementApi.md +288 -0
- data/docs/BusinessInvoiceAnalysisRequest.md +20 -0
- data/docs/CalculatorDepositSchedule.md +9 -0
- data/docs/CalculatorDepositSchedule1.md +10 -0
- data/docs/CardLimitCheckRequest.md +9 -0
- data/docs/CardTransactionAuthorizationRequest.md +19 -0
- data/docs/CardsApi.md +120 -0
- data/docs/CashAnalysisRequest.md +17 -0
- data/docs/CashFlowAnalysisRequest.md +20 -0
- data/docs/ChildrenEducationConfig.md +9 -0
- data/docs/CustomerAnalysisRequest.md +17 -0
- data/docs/DecumulationGoalDepositConfig.md +14 -0
- data/docs/DimensionalRiskScoreRequest.md +16 -0
- data/docs/DiversificationScoreRequest.md +19 -0
- data/docs/EducationCalculatorAnnualCostRequest.md +18 -0
- data/docs/EducationCalculatorDepositAmountRequest.md +19 -0
- data/docs/EducationCalculatorPercentCoveredRequest.md +18 -0
- data/docs/EducationConfig.md +10 -0
- data/docs/EmergencyFundCalculatorRequest.md +24 -0
- data/docs/EventStudyRequest.md +18 -0
- data/docs/FeeAnalysisRequest.md +13 -0
- data/docs/FinancialHealthApi.md +232 -0
- data/docs/FinancialHealthCheckRequest.md +17 -0
- data/docs/FinancialPictureRequest.md +16 -0
- data/docs/FinancialPlanningApi.md +680 -0
- data/docs/FinancialStatementAnalysisRequest.md +22 -0
- data/docs/GoalAccumulationAllocationRequest.md +33 -0
- data/docs/GoalAccumulationRecommendationRequest.md +28 -0
- data/docs/GoalAccumulationStatusRequest.md +28 -0
- data/docs/GoalConfig.md +9 -0
- data/docs/GoalDecumulationAllocationRequest.md +34 -0
- data/docs/GoalDecumulationRecommendationRequest.md +29 -0
- data/docs/GoalDecumulationStatusRequest.md +29 -0
- data/docs/GoalWithdrawalConfig.md +14 -0
- data/docs/GoalsApi.md +344 -0
- data/docs/GuaranteedRateBenefit.md +11 -0
- data/docs/IncomeConfig.md +10 -0
- data/docs/LifeInsuranceApi.md +64 -0
- data/docs/LifeInsuranceNeedsCalculatorRequest.md +22 -0
- data/docs/MonteCarloRequest.md +29 -0
- data/docs/MortgageCalculatorDownPaymentRequest.md +11 -0
- data/docs/MortgageCalculatorHomePriceRequest.md +11 -0
- data/docs/MortgageCalculatorPeriodicPaymentRequest.md +11 -0
- data/docs/MvoRequest.md +18 -0
- data/docs/OptConfig.md +14 -0
- data/docs/OptConfig1.md +12 -0
- data/docs/Periods.md +9 -0
- data/docs/PersonalFinancialManagementApi.md +288 -0
- data/docs/PortfolioConstructionApi.md +64 -0
- data/docs/PortfolioManagementApi.md +64 -0
- data/docs/PortfolioOptimizationScoreRequest.md +21 -0
- data/docs/PortfolioWhatIfRequest.md +21 -0
- data/docs/PurchaseCalculatorAmountRequest.md +16 -0
- data/docs/PurchaseCalculatorDepositAmountRequest.md +17 -0
- data/docs/PurchaseCalculatorHorizonRequest.md +15 -0
- data/docs/RatioTargets.md +13 -0
- data/docs/RatioTargets1.md +13 -0
- data/docs/RebalancingSignalRequest.md +13 -0
- data/docs/RecommendationConfig.md +15 -0
- data/docs/RecommendationConfig1.md +14 -0
- data/docs/RecurringTransactionAnalysisRequest.md +19 -0
- data/docs/RetirementCalculatorDepositAmountRequest.md +20 -0
- data/docs/RetirementCalculatorExpensesRequest.md +19 -0
- data/docs/RetirementCalculatorPercentCoveredRequest.md +19 -0
- data/docs/RiskAllocationRequest.md +14 -0
- data/docs/RiskScoreRequest.md +13 -0
- data/docs/RiskScoringApi.md +176 -0
- data/docs/SavingsCalculatorRequest.md +17 -0
- data/docs/SavingsDepositSchedule.md +11 -0
- data/docs/ScenarioAnalysisRequest.md +22 -0
- data/docs/SensitivityAnalysisRequest.md +22 -0
- data/docs/SensitivityFactor.md +11 -0
- data/docs/Settings.md +13 -0
- data/docs/SimulationsApi.md +400 -0
- data/docs/VariableAnnuityRequest.md +34 -0
- data/docs/WConfig.md +12 -0
- data/docs/WConfig1.md +12 -0
- data/git_push.sh +55 -0
- data/lib/proton_api.rb +132 -0
- data/lib/proton_api/api/annuities_api.rb +347 -0
- data/lib/proton_api/api/business_financial_management_api.rb +293 -0
- data/lib/proton_api/api/cards_api.rb +131 -0
- data/lib/proton_api/api/financial_health_api.rb +239 -0
- data/lib/proton_api/api/financial_planning_api.rb +671 -0
- data/lib/proton_api/api/goals_api.rb +347 -0
- data/lib/proton_api/api/life_insurance_api.rb +77 -0
- data/lib/proton_api/api/personal_financial_management_api.rb +293 -0
- data/lib/proton_api/api/portfolio_construction_api.rb +77 -0
- data/lib/proton_api/api/portfolio_management_api.rb +77 -0
- data/lib/proton_api/api/risk_scoring_api.rb +185 -0
- data/lib/proton_api/api/simulations_api.rb +401 -0
- data/lib/proton_api/api_client.rb +391 -0
- data/lib/proton_api/api_error.rb +38 -0
- data/lib/proton_api/auth_configuration.rb +177 -0
- data/lib/proton_api/configuration.rb +209 -0
- data/lib/proton_api/models/accumulation_goal_deposit_config.rb +338 -0
- data/lib/proton_api/models/annuity_calculator_accumulation_horizon_request.rb +462 -0
- data/lib/proton_api/models/annuity_calculator_annuity_amount_request.rb +464 -0
- data/lib/proton_api/models/annuity_calculator_decumulation_horizon_request.rb +462 -0
- data/lib/proton_api/models/annuity_calculator_deposit_amount_request.rb +471 -0
- data/lib/proton_api/models/annuity_calculator_initial_balance_request.rb +471 -0
- data/lib/proton_api/models/annuity_deposit_schedule.rb +257 -0
- data/lib/proton_api/models/backtest_request.rb +298 -0
- data/lib/proton_api/models/beneficiary_bequest_config.rb +260 -0
- data/lib/proton_api/models/budget_aggregation_account.rb +189 -0
- data/lib/proton_api/models/budget_calculator_request.rb +315 -0
- data/lib/proton_api/models/budget_component.rb +231 -0
- data/lib/proton_api/models/budget_details.rb +340 -0
- data/lib/proton_api/models/business_financial_health_check_request.rb +478 -0
- data/lib/proton_api/models/business_invoice_analysis_request.rb +355 -0
- data/lib/proton_api/models/calculator_deposit_schedule.rb +231 -0
- data/lib/proton_api/models/calculator_deposit_schedule1.rb +257 -0
- data/lib/proton_api/models/card_limit_check_request.rb +203 -0
- data/lib/proton_api/models/card_transaction_authorization_request.rb +359 -0
- data/lib/proton_api/models/cash_analysis_request.rb +321 -0
- data/lib/proton_api/models/cash_flow_analysis_request.rb +338 -0
- data/lib/proton_api/models/children_education_config.rb +224 -0
- data/lib/proton_api/models/customer_analysis_request.rb +286 -0
- data/lib/proton_api/models/decumulation_goal_deposit_config.rb +338 -0
- data/lib/proton_api/models/dimensional_risk_score_request.rb +285 -0
- data/lib/proton_api/models/diversification_score_request.rb +327 -0
- data/lib/proton_api/models/education_calculator_annual_cost_request.rb +453 -0
- data/lib/proton_api/models/education_calculator_deposit_amount_request.rb +486 -0
- data/lib/proton_api/models/education_calculator_percent_covered_request.rb +451 -0
- data/lib/proton_api/models/education_config.rb +274 -0
- data/lib/proton_api/models/emergency_fund_calculator_request.rb +564 -0
- data/lib/proton_api/models/event_study_request.rb +320 -0
- data/lib/proton_api/models/fee_analysis_request.rb +231 -0
- data/lib/proton_api/models/financial_health_check_request.rb +387 -0
- data/lib/proton_api/models/financial_picture_request.rb +269 -0
- data/lib/proton_api/models/financial_statement_analysis_request.rb +455 -0
- data/lib/proton_api/models/goal_accumulation_allocation_request.rb +732 -0
- data/lib/proton_api/models/goal_accumulation_recommendation_request.rb +625 -0
- data/lib/proton_api/models/goal_accumulation_status_request.rb +625 -0
- data/lib/proton_api/models/goal_config.rb +225 -0
- data/lib/proton_api/models/goal_decumulation_allocation_request.rb +767 -0
- data/lib/proton_api/models/goal_decumulation_recommendation_request.rb +660 -0
- data/lib/proton_api/models/goal_decumulation_status_request.rb +660 -0
- data/lib/proton_api/models/goal_withdrawal_config.rb +338 -0
- data/lib/proton_api/models/guaranteed_rate_benefit.rb +275 -0
- data/lib/proton_api/models/income_config.rb +269 -0
- data/lib/proton_api/models/life_insurance_needs_calculator_request.rb +518 -0
- data/lib/proton_api/models/monte_carlo_request.rb +507 -0
- data/lib/proton_api/models/mortgage_calculator_down_payment_request.rb +302 -0
- data/lib/proton_api/models/mortgage_calculator_home_price_request.rb +302 -0
- data/lib/proton_api/models/mortgage_calculator_periodic_payment_request.rb +302 -0
- data/lib/proton_api/models/mvo_request.rb +369 -0
- data/lib/proton_api/models/opt_config.rb +303 -0
- data/lib/proton_api/models/opt_config1.rb +263 -0
- data/lib/proton_api/models/periods.rb +223 -0
- data/lib/proton_api/models/portfolio_optimization_score_request.rb +359 -0
- data/lib/proton_api/models/portfolio_what_if_request.rb +354 -0
- data/lib/proton_api/models/purchase_calculator_amount_request.rb +404 -0
- data/lib/proton_api/models/purchase_calculator_deposit_amount_request.rb +437 -0
- data/lib/proton_api/models/purchase_calculator_horizon_request.rb +359 -0
- data/lib/proton_api/models/ratio_targets.rb +331 -0
- data/lib/proton_api/models/ratio_targets1.rb +331 -0
- data/lib/proton_api/models/rebalancing_signal_request.rb +241 -0
- data/lib/proton_api/models/recommendation_config.rb +360 -0
- data/lib/proton_api/models/recommendation_config1.rb +349 -0
- data/lib/proton_api/models/recurring_transaction_analysis_request.rb +370 -0
- data/lib/proton_api/models/retirement_calculator_deposit_amount_request.rb +512 -0
- data/lib/proton_api/models/retirement_calculator_expenses_request.rb +479 -0
- data/lib/proton_api/models/retirement_calculator_percent_covered_request.rb +477 -0
- data/lib/proton_api/models/risk_allocation_request.rb +319 -0
- data/lib/proton_api/models/risk_score_request.rb +242 -0
- data/lib/proton_api/models/savings_calculator_request.rb +398 -0
- data/lib/proton_api/models/savings_deposit_schedule.rb +279 -0
- data/lib/proton_api/models/scenario_analysis_request.rb +404 -0
- data/lib/proton_api/models/sensitivity_analysis_request.rb +402 -0
- data/lib/proton_api/models/sensitivity_factor.rb +281 -0
- data/lib/proton_api/models/settings.rb +290 -0
- data/lib/proton_api/models/variable_annuity_request.rb +703 -0
- data/lib/proton_api/models/w_config.rb +385 -0
- data/lib/proton_api/models/w_config1.rb +350 -0
- data/lib/proton_api/version.rb +15 -0
- data/proton_api.gemspec +46 -0
- data/spec/api/annuities_api_spec.rb +107 -0
- data/spec/api/business_financial_management_api_spec.rb +95 -0
- data/spec/api/cards_api_spec.rb +59 -0
- data/spec/api/financial_health_api_spec.rb +83 -0
- data/spec/api/financial_planning_api_spec.rb +179 -0
- data/spec/api/goals_api_spec.rb +107 -0
- data/spec/api/life_insurance_api_spec.rb +47 -0
- data/spec/api/personal_financial_management_api_spec.rb +95 -0
- data/spec/api/portfolio_construction_api_spec.rb +47 -0
- data/spec/api/portfolio_management_api_spec.rb +47 -0
- data/spec/api/risk_scoring_api_spec.rb +71 -0
- data/spec/api/simulations_api_spec.rb +119 -0
- data/spec/api_client_spec.rb +243 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/accumulation_goal_deposit_config_spec.rb +89 -0
- data/spec/models/annuity_calculator_accumulation_horizon_request_spec.rb +111 -0
- data/spec/models/annuity_calculator_annuity_amount_request_spec.rb +111 -0
- data/spec/models/annuity_calculator_decumulation_horizon_request_spec.rb +111 -0
- data/spec/models/annuity_calculator_deposit_amount_request_spec.rb +111 -0
- data/spec/models/annuity_calculator_initial_balance_request_spec.rb +111 -0
- data/spec/models/annuity_deposit_schedule_spec.rb +57 -0
- data/spec/models/backtest_request_spec.rb +95 -0
- data/spec/models/beneficiary_bequest_config_spec.rb +53 -0
- data/spec/models/budget_aggregation_account_spec.rb +41 -0
- data/spec/models/budget_calculator_request_spec.rb +93 -0
- data/spec/models/budget_component_spec.rb +53 -0
- data/spec/models/budget_details_spec.rb +99 -0
- data/spec/models/business_financial_health_check_request_spec.rb +137 -0
- data/spec/models/business_invoice_analysis_request_spec.rb +117 -0
- data/spec/models/calculator_deposit_schedule1_spec.rb +57 -0
- data/spec/models/calculator_deposit_schedule_spec.rb +51 -0
- data/spec/models/card_limit_check_request_spec.rb +47 -0
- data/spec/models/card_transaction_authorization_request_spec.rb +115 -0
- data/spec/models/cash_analysis_request_spec.rb +103 -0
- data/spec/models/cash_flow_analysis_request_spec.rb +117 -0
- data/spec/models/children_education_config_spec.rb +47 -0
- data/spec/models/customer_analysis_request_spec.rb +95 -0
- data/spec/models/decumulation_goal_deposit_config_spec.rb +89 -0
- data/spec/models/dimensional_risk_score_request_spec.rb +89 -0
- data/spec/models/diversification_score_request_spec.rb +111 -0
- data/spec/models/education_calculator_annual_cost_request_spec.rb +101 -0
- data/spec/models/education_calculator_deposit_amount_request_spec.rb +107 -0
- data/spec/models/education_calculator_percent_covered_request_spec.rb +101 -0
- data/spec/models/education_config_spec.rb +53 -0
- data/spec/models/emergency_fund_calculator_request_spec.rb +141 -0
- data/spec/models/event_study_request_spec.rb +109 -0
- data/spec/models/fee_analysis_request_spec.rb +71 -0
- data/spec/models/financial_health_check_request_spec.rb +95 -0
- data/spec/models/financial_picture_request_spec.rb +89 -0
- data/spec/models/financial_statement_analysis_request_spec.rb +149 -0
- data/spec/models/goal_accumulation_allocation_request_spec.rb +215 -0
- data/spec/models/goal_accumulation_recommendation_request_spec.rb +173 -0
- data/spec/models/goal_accumulation_status_request_spec.rb +173 -0
- data/spec/models/goal_config_spec.rb +47 -0
- data/spec/models/goal_decumulation_allocation_request_spec.rb +221 -0
- data/spec/models/goal_decumulation_recommendation_request_spec.rb +179 -0
- data/spec/models/goal_decumulation_status_request_spec.rb +179 -0
- data/spec/models/goal_withdrawal_config_spec.rb +89 -0
- data/spec/models/guaranteed_rate_benefit_spec.rb +59 -0
- data/spec/models/income_config_spec.rb +53 -0
- data/spec/models/life_insurance_needs_calculator_request_spec.rb +125 -0
- data/spec/models/monte_carlo_request_spec.rb +179 -0
- data/spec/models/mortgage_calculator_down_payment_request_spec.rb +59 -0
- data/spec/models/mortgage_calculator_home_price_request_spec.rb +59 -0
- data/spec/models/mortgage_calculator_periodic_payment_request_spec.rb +59 -0
- data/spec/models/mvo_request_spec.rb +113 -0
- data/spec/models/opt_config1_spec.rb +69 -0
- data/spec/models/opt_config_spec.rb +81 -0
- data/spec/models/periods_spec.rb +47 -0
- data/spec/models/portfolio_optimization_score_request_spec.rb +127 -0
- data/spec/models/portfolio_what_if_request_spec.rb +123 -0
- data/spec/models/purchase_calculator_amount_request_spec.rb +93 -0
- data/spec/models/purchase_calculator_deposit_amount_request_spec.rb +99 -0
- data/spec/models/purchase_calculator_horizon_request_spec.rb +83 -0
- data/spec/models/ratio_targets1_spec.rb +71 -0
- data/spec/models/ratio_targets_spec.rb +71 -0
- data/spec/models/rebalancing_signal_request_spec.rb +71 -0
- data/spec/models/recommendation_config1_spec.rb +77 -0
- data/spec/models/recommendation_config_spec.rb +83 -0
- data/spec/models/recurring_transaction_analysis_request_spec.rb +111 -0
- data/spec/models/retirement_calculator_deposit_amount_request_spec.rb +113 -0
- data/spec/models/retirement_calculator_expenses_request_spec.rb +107 -0
- data/spec/models/retirement_calculator_percent_covered_request_spec.rb +107 -0
- data/spec/models/risk_allocation_request_spec.rb +85 -0
- data/spec/models/risk_score_request_spec.rb +71 -0
- data/spec/models/savings_calculator_request_spec.rb +99 -0
- data/spec/models/savings_deposit_schedule_spec.rb +63 -0
- data/spec/models/scenario_analysis_request_spec.rb +133 -0
- data/spec/models/sensitivity_analysis_request_spec.rb +133 -0
- data/spec/models/sensitivity_factor_spec.rb +59 -0
- data/spec/models/settings_spec.rb +79 -0
- data/spec/models/variable_annuity_request_spec.rb +209 -0
- data/spec/models/w_config1_spec.rb +65 -0
- data/spec/models/w_config_spec.rb +65 -0
- data/spec/spec_helper.rb +111 -0
- metadata +628 -0
@@ -0,0 +1,34 @@
|
|
1
|
+
# ProtonApi::VariableAnnuityRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**portfolio_id** | **String** | | [optional]
|
7
|
+
**result_type** | **String** | | [optional] [default to 'median']
|
8
|
+
**inflation_rate** | **Float** | | [optional] [default to 0.0]
|
9
|
+
**remove_outliers** | **BOOLEAN** | | [optional] [default to false]
|
10
|
+
**deposit_schedule** | [**AnnuityDepositSchedule**](AnnuityDepositSchedule.md) | | [optional]
|
11
|
+
**annuitization_rate** | **Float** | | [optional] [default to 0.0]
|
12
|
+
**end_date** | **String** | | [optional]
|
13
|
+
**market_data_source** | **String** | | [optional] [default to 'nucleus']
|
14
|
+
**tax_rate** | **Float** | | [optional] [default to 0.0]
|
15
|
+
**p** | **Float** | | [optional]
|
16
|
+
**allocation_id** | **String** | | [optional]
|
17
|
+
**use_proxy_data** | **BOOLEAN** | | [optional] [default to false]
|
18
|
+
**start_date** | **String** | | [optional]
|
19
|
+
**aggregation_account_id** | **String** | | [optional]
|
20
|
+
**initial_balance** | **Float** | | [optional] [default to 0.0]
|
21
|
+
**create_log** | **BOOLEAN** | | [optional] [default to false]
|
22
|
+
**decumulation_horizon** | **Integer** | |
|
23
|
+
**account_id** | **String** | | [optional]
|
24
|
+
**accumulation_horizon** | **Integer** | |
|
25
|
+
**trading_days_per_year** | **Integer** | | [optional] [default to 252]
|
26
|
+
**portfolio_weights** | **Array<Float>** | | [optional]
|
27
|
+
**guaranteed_accumulation_benefit** | **Float** | | [optional] [default to 0.0]
|
28
|
+
**portfolio_tickers** | **Array<String>** | | [optional]
|
29
|
+
**guaranteed_rate_benefit** | [**Array<GuaranteedRateBenefit>**](GuaranteedRateBenefit.md) | | [optional]
|
30
|
+
**model_id** | **String** | | [optional]
|
31
|
+
**n** | **Integer** | | [optional] [default to 1000]
|
32
|
+
**frequency_interval** | **String** | | [optional] [default to 'year']
|
33
|
+
|
34
|
+
|
data/docs/WConfig.md
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# ProtonApi::WConfig
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**w_min_major** | **Float** | |
|
7
|
+
**cash_amount** | **Float** | |
|
8
|
+
**w_min_minor** | **Float** | |
|
9
|
+
**w_max_minor** | **Float** | |
|
10
|
+
**w_max_major** | **Float** | |
|
11
|
+
|
12
|
+
|
data/docs/WConfig1.md
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# ProtonApi::WConfig1
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**w_min_minor** | **Float** | | [optional] [default to 0.05]
|
7
|
+
**cash_amount** | **Float** | | [optional] [default to 0.0]
|
8
|
+
**w_min_major** | **Float** | | [optional] [default to 0.05]
|
9
|
+
**w_max_minor** | **Float** | | [optional] [default to 1.0]
|
10
|
+
**w_max_major** | **Float** | | [optional] [default to 1.0]
|
11
|
+
|
12
|
+
|
data/git_push.sh
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
#
|
3
|
+
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
4
|
+
#
|
5
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
6
|
+
#
|
7
|
+
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
|
8
|
+
|
9
|
+
git_user_id=$1
|
10
|
+
git_repo_id=$2
|
11
|
+
release_note=$3
|
12
|
+
|
13
|
+
if [ "$git_user_id" = "" ]; then
|
14
|
+
git_user_id=""
|
15
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
16
|
+
fi
|
17
|
+
|
18
|
+
if [ "$git_repo_id" = "" ]; then
|
19
|
+
git_repo_id=""
|
20
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
21
|
+
fi
|
22
|
+
|
23
|
+
if [ "$release_note" = "" ]; then
|
24
|
+
release_note=""
|
25
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
26
|
+
fi
|
27
|
+
|
28
|
+
# Initialize the local directory as a Git repository
|
29
|
+
git init
|
30
|
+
|
31
|
+
# Adds the files in the local repository and stages them for commit.
|
32
|
+
git add .
|
33
|
+
|
34
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
35
|
+
git commit -m "$release_note"
|
36
|
+
|
37
|
+
# Sets the new remote
|
38
|
+
git_remote=`git remote`
|
39
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
40
|
+
|
41
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
42
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
43
|
+
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
|
44
|
+
else
|
45
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
|
46
|
+
fi
|
47
|
+
|
48
|
+
fi
|
49
|
+
|
50
|
+
git pull origin master
|
51
|
+
|
52
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
53
|
+
echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
|
54
|
+
git push origin master 2>&1 | grep -v 'To https'
|
55
|
+
|
data/lib/proton_api.rb
ADDED
@@ -0,0 +1,132 @@
|
|
1
|
+
=begin
|
2
|
+
#Hydrogen Proton API
|
3
|
+
|
4
|
+
#Financial engineering module of Hydrogen Atom
|
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.17
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
# Common files
|
14
|
+
require 'proton_api/api_client'
|
15
|
+
require 'proton_api/api_error'
|
16
|
+
require 'proton_api/version'
|
17
|
+
require 'proton_api/configuration'
|
18
|
+
require 'proton_api/auth_configuration'
|
19
|
+
|
20
|
+
# Models
|
21
|
+
require 'proton_api/models/accumulation_goal_deposit_config'
|
22
|
+
require 'proton_api/models/annuity_calculator_accumulation_horizon_request'
|
23
|
+
require 'proton_api/models/annuity_calculator_annuity_amount_request'
|
24
|
+
require 'proton_api/models/annuity_calculator_decumulation_horizon_request'
|
25
|
+
require 'proton_api/models/annuity_calculator_deposit_amount_request'
|
26
|
+
require 'proton_api/models/annuity_calculator_initial_balance_request'
|
27
|
+
require 'proton_api/models/annuity_deposit_schedule'
|
28
|
+
require 'proton_api/models/backtest_request'
|
29
|
+
require 'proton_api/models/beneficiary_bequest_config'
|
30
|
+
require 'proton_api/models/budget_aggregation_account'
|
31
|
+
require 'proton_api/models/budget_calculator_request'
|
32
|
+
require 'proton_api/models/budget_component'
|
33
|
+
require 'proton_api/models/budget_details'
|
34
|
+
require 'proton_api/models/business_financial_health_check_request'
|
35
|
+
require 'proton_api/models/business_invoice_analysis_request'
|
36
|
+
require 'proton_api/models/calculator_deposit_schedule'
|
37
|
+
require 'proton_api/models/calculator_deposit_schedule1'
|
38
|
+
require 'proton_api/models/card_limit_check_request'
|
39
|
+
require 'proton_api/models/card_transaction_authorization_request'
|
40
|
+
require 'proton_api/models/cash_analysis_request'
|
41
|
+
require 'proton_api/models/cash_flow_analysis_request'
|
42
|
+
require 'proton_api/models/children_education_config'
|
43
|
+
require 'proton_api/models/customer_analysis_request'
|
44
|
+
require 'proton_api/models/decumulation_goal_deposit_config'
|
45
|
+
require 'proton_api/models/dimensional_risk_score_request'
|
46
|
+
require 'proton_api/models/diversification_score_request'
|
47
|
+
require 'proton_api/models/education_calculator_annual_cost_request'
|
48
|
+
require 'proton_api/models/education_calculator_deposit_amount_request'
|
49
|
+
require 'proton_api/models/education_calculator_percent_covered_request'
|
50
|
+
require 'proton_api/models/education_config'
|
51
|
+
require 'proton_api/models/emergency_fund_calculator_request'
|
52
|
+
require 'proton_api/models/event_study_request'
|
53
|
+
require 'proton_api/models/fee_analysis_request'
|
54
|
+
require 'proton_api/models/financial_health_check_request'
|
55
|
+
require 'proton_api/models/financial_picture_request'
|
56
|
+
require 'proton_api/models/financial_statement_analysis_request'
|
57
|
+
require 'proton_api/models/goal_accumulation_allocation_request'
|
58
|
+
require 'proton_api/models/goal_accumulation_recommendation_request'
|
59
|
+
require 'proton_api/models/goal_accumulation_status_request'
|
60
|
+
require 'proton_api/models/goal_config'
|
61
|
+
require 'proton_api/models/goal_decumulation_allocation_request'
|
62
|
+
require 'proton_api/models/goal_decumulation_recommendation_request'
|
63
|
+
require 'proton_api/models/goal_decumulation_status_request'
|
64
|
+
require 'proton_api/models/goal_withdrawal_config'
|
65
|
+
require 'proton_api/models/guaranteed_rate_benefit'
|
66
|
+
require 'proton_api/models/income_config'
|
67
|
+
require 'proton_api/models/life_insurance_needs_calculator_request'
|
68
|
+
require 'proton_api/models/monte_carlo_request'
|
69
|
+
require 'proton_api/models/mortgage_calculator_down_payment_request'
|
70
|
+
require 'proton_api/models/mortgage_calculator_home_price_request'
|
71
|
+
require 'proton_api/models/mortgage_calculator_periodic_payment_request'
|
72
|
+
require 'proton_api/models/mvo_request'
|
73
|
+
require 'proton_api/models/opt_config'
|
74
|
+
require 'proton_api/models/opt_config1'
|
75
|
+
require 'proton_api/models/periods'
|
76
|
+
require 'proton_api/models/portfolio_optimization_score_request'
|
77
|
+
require 'proton_api/models/portfolio_what_if_request'
|
78
|
+
require 'proton_api/models/purchase_calculator_amount_request'
|
79
|
+
require 'proton_api/models/purchase_calculator_deposit_amount_request'
|
80
|
+
require 'proton_api/models/purchase_calculator_horizon_request'
|
81
|
+
require 'proton_api/models/ratio_targets'
|
82
|
+
require 'proton_api/models/ratio_targets1'
|
83
|
+
require 'proton_api/models/rebalancing_signal_request'
|
84
|
+
require 'proton_api/models/recommendation_config'
|
85
|
+
require 'proton_api/models/recommendation_config1'
|
86
|
+
require 'proton_api/models/recurring_transaction_analysis_request'
|
87
|
+
require 'proton_api/models/retirement_calculator_deposit_amount_request'
|
88
|
+
require 'proton_api/models/retirement_calculator_expenses_request'
|
89
|
+
require 'proton_api/models/retirement_calculator_percent_covered_request'
|
90
|
+
require 'proton_api/models/risk_allocation_request'
|
91
|
+
require 'proton_api/models/risk_score_request'
|
92
|
+
require 'proton_api/models/savings_calculator_request'
|
93
|
+
require 'proton_api/models/savings_deposit_schedule'
|
94
|
+
require 'proton_api/models/scenario_analysis_request'
|
95
|
+
require 'proton_api/models/sensitivity_analysis_request'
|
96
|
+
require 'proton_api/models/sensitivity_factor'
|
97
|
+
require 'proton_api/models/settings'
|
98
|
+
require 'proton_api/models/variable_annuity_request'
|
99
|
+
require 'proton_api/models/w_config'
|
100
|
+
require 'proton_api/models/w_config1'
|
101
|
+
|
102
|
+
# APIs
|
103
|
+
require 'proton_api/api/annuities_api'
|
104
|
+
require 'proton_api/api/business_financial_management_api'
|
105
|
+
require 'proton_api/api/cards_api'
|
106
|
+
require 'proton_api/api/financial_health_api'
|
107
|
+
require 'proton_api/api/financial_planning_api'
|
108
|
+
require 'proton_api/api/goals_api'
|
109
|
+
require 'proton_api/api/life_insurance_api'
|
110
|
+
require 'proton_api/api/personal_financial_management_api'
|
111
|
+
require 'proton_api/api/portfolio_construction_api'
|
112
|
+
require 'proton_api/api/portfolio_management_api'
|
113
|
+
require 'proton_api/api/risk_scoring_api'
|
114
|
+
require 'proton_api/api/simulations_api'
|
115
|
+
|
116
|
+
module ProtonApi
|
117
|
+
class << self
|
118
|
+
# Customize default settings for the SDK using block.
|
119
|
+
# ProtonApi.configure do |config|
|
120
|
+
# config.username = "xxx"
|
121
|
+
# config.password = "xxx"
|
122
|
+
# end
|
123
|
+
# If no block given, return the default Configuration object.
|
124
|
+
def configure
|
125
|
+
if block_given?
|
126
|
+
yield(AuthConfiguration.default)
|
127
|
+
else
|
128
|
+
AuthConfiguration.default
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
@@ -0,0 +1,347 @@
|
|
1
|
+
=begin
|
2
|
+
#Hydrogen Proton API
|
3
|
+
|
4
|
+
#Financial engineering module of Hydrogen Atom
|
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.17
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'uri'
|
14
|
+
|
15
|
+
module ProtonApi
|
16
|
+
class AnnuitiesApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Annuity Calculator - Accumulation Horizon
|
23
|
+
# Calculate the necessary fixed annuity contribution period
|
24
|
+
# @param annuity_calculator_accumulation_horizon_request Request payload for Annuity Calculator - Accumulation Horizon
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [Hash<String, Object>]
|
27
|
+
def annuity_calculator_accumulation_horizon(annuity_calculator_accumulation_horizon_request, opts = {})
|
28
|
+
data, _status_code, _headers = annuity_calculator_accumulation_horizon_with_http_info(annuity_calculator_accumulation_horizon_request, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Annuity Calculator - Accumulation Horizon
|
33
|
+
# Calculate the necessary fixed annuity contribution period
|
34
|
+
# @param annuity_calculator_accumulation_horizon_request Request payload for Annuity Calculator - Accumulation Horizon
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
|
37
|
+
def annuity_calculator_accumulation_horizon_with_http_info(annuity_calculator_accumulation_horizon_request, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: AnnuitiesApi.annuity_calculator_accumulation_horizon ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'annuity_calculator_accumulation_horizon_request' is set
|
42
|
+
if @api_client.config.client_side_validation && annuity_calculator_accumulation_horizon_request.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'annuity_calculator_accumulation_horizon_request' when calling AnnuitiesApi.annuity_calculator_accumulation_horizon"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/annuity_calculator/accumulation_horizon'
|
47
|
+
|
48
|
+
# query parameters
|
49
|
+
query_params = {}
|
50
|
+
|
51
|
+
# header parameters
|
52
|
+
header_params = {}
|
53
|
+
# HTTP header 'Accept' (if needed)
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
|
+
# HTTP header 'Content-Type'
|
56
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
57
|
+
|
58
|
+
# form parameters
|
59
|
+
form_params = {}
|
60
|
+
|
61
|
+
# http body (model)
|
62
|
+
post_body = @api_client.object_to_http_body(annuity_calculator_accumulation_horizon_request)
|
63
|
+
auth_names = ['oauth2']
|
64
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
65
|
+
:header_params => header_params,
|
66
|
+
:query_params => query_params,
|
67
|
+
:form_params => form_params,
|
68
|
+
:body => post_body,
|
69
|
+
:auth_names => auth_names,
|
70
|
+
:return_type => 'Hash<String, Object>')
|
71
|
+
if @api_client.config.debugging
|
72
|
+
@api_client.config.logger.debug "API called: AnnuitiesApi#annuity_calculator_accumulation_horizon\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
73
|
+
end
|
74
|
+
return data, status_code, headers
|
75
|
+
end
|
76
|
+
# Annuity Calculator - Annuity Amount
|
77
|
+
# Calculate the achievable fixed annuity amount
|
78
|
+
# @param annuity_calculator_annuity_amount_request Request payload for Annuity Calculator - Annuity Amount
|
79
|
+
# @param [Hash] opts the optional parameters
|
80
|
+
# @return [Hash<String, Object>]
|
81
|
+
def annuity_calculator_annuity_amount(annuity_calculator_annuity_amount_request, opts = {})
|
82
|
+
data, _status_code, _headers = annuity_calculator_annuity_amount_with_http_info(annuity_calculator_annuity_amount_request, opts)
|
83
|
+
data
|
84
|
+
end
|
85
|
+
|
86
|
+
# Annuity Calculator - Annuity Amount
|
87
|
+
# Calculate the achievable fixed annuity amount
|
88
|
+
# @param annuity_calculator_annuity_amount_request Request payload for Annuity Calculator - Annuity Amount
|
89
|
+
# @param [Hash] opts the optional parameters
|
90
|
+
# @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
|
91
|
+
def annuity_calculator_annuity_amount_with_http_info(annuity_calculator_annuity_amount_request, opts = {})
|
92
|
+
if @api_client.config.debugging
|
93
|
+
@api_client.config.logger.debug 'Calling API: AnnuitiesApi.annuity_calculator_annuity_amount ...'
|
94
|
+
end
|
95
|
+
# verify the required parameter 'annuity_calculator_annuity_amount_request' is set
|
96
|
+
if @api_client.config.client_side_validation && annuity_calculator_annuity_amount_request.nil?
|
97
|
+
fail ArgumentError, "Missing the required parameter 'annuity_calculator_annuity_amount_request' when calling AnnuitiesApi.annuity_calculator_annuity_amount"
|
98
|
+
end
|
99
|
+
# resource path
|
100
|
+
local_var_path = '/annuity_calculator/annuity_amount'
|
101
|
+
|
102
|
+
# query parameters
|
103
|
+
query_params = {}
|
104
|
+
|
105
|
+
# header parameters
|
106
|
+
header_params = {}
|
107
|
+
# HTTP header 'Accept' (if needed)
|
108
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
109
|
+
# HTTP header 'Content-Type'
|
110
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
111
|
+
|
112
|
+
# form parameters
|
113
|
+
form_params = {}
|
114
|
+
|
115
|
+
# http body (model)
|
116
|
+
post_body = @api_client.object_to_http_body(annuity_calculator_annuity_amount_request)
|
117
|
+
auth_names = ['oauth2']
|
118
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
119
|
+
:header_params => header_params,
|
120
|
+
:query_params => query_params,
|
121
|
+
:form_params => form_params,
|
122
|
+
:body => post_body,
|
123
|
+
:auth_names => auth_names,
|
124
|
+
:return_type => 'Hash<String, Object>')
|
125
|
+
if @api_client.config.debugging
|
126
|
+
@api_client.config.logger.debug "API called: AnnuitiesApi#annuity_calculator_annuity_amount\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
127
|
+
end
|
128
|
+
return data, status_code, headers
|
129
|
+
end
|
130
|
+
# Annuity Calculator - Decumulation Horizon
|
131
|
+
# Calculate the achievable fixed annuity payout period
|
132
|
+
# @param annuity_calculator_decumulation_horizon_request Request payload for Annuity Calculator - Decumulation Horizon
|
133
|
+
# @param [Hash] opts the optional parameters
|
134
|
+
# @return [Hash<String, Object>]
|
135
|
+
def annuity_calculator_decumulation_horizon(annuity_calculator_decumulation_horizon_request, opts = {})
|
136
|
+
data, _status_code, _headers = annuity_calculator_decumulation_horizon_with_http_info(annuity_calculator_decumulation_horizon_request, opts)
|
137
|
+
data
|
138
|
+
end
|
139
|
+
|
140
|
+
# Annuity Calculator - Decumulation Horizon
|
141
|
+
# Calculate the achievable fixed annuity payout period
|
142
|
+
# @param annuity_calculator_decumulation_horizon_request Request payload for Annuity Calculator - Decumulation Horizon
|
143
|
+
# @param [Hash] opts the optional parameters
|
144
|
+
# @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
|
145
|
+
def annuity_calculator_decumulation_horizon_with_http_info(annuity_calculator_decumulation_horizon_request, opts = {})
|
146
|
+
if @api_client.config.debugging
|
147
|
+
@api_client.config.logger.debug 'Calling API: AnnuitiesApi.annuity_calculator_decumulation_horizon ...'
|
148
|
+
end
|
149
|
+
# verify the required parameter 'annuity_calculator_decumulation_horizon_request' is set
|
150
|
+
if @api_client.config.client_side_validation && annuity_calculator_decumulation_horizon_request.nil?
|
151
|
+
fail ArgumentError, "Missing the required parameter 'annuity_calculator_decumulation_horizon_request' when calling AnnuitiesApi.annuity_calculator_decumulation_horizon"
|
152
|
+
end
|
153
|
+
# resource path
|
154
|
+
local_var_path = '/annuity_calculator/decumulation_horizon'
|
155
|
+
|
156
|
+
# query parameters
|
157
|
+
query_params = {}
|
158
|
+
|
159
|
+
# header parameters
|
160
|
+
header_params = {}
|
161
|
+
# HTTP header 'Accept' (if needed)
|
162
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
163
|
+
# HTTP header 'Content-Type'
|
164
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
165
|
+
|
166
|
+
# form parameters
|
167
|
+
form_params = {}
|
168
|
+
|
169
|
+
# http body (model)
|
170
|
+
post_body = @api_client.object_to_http_body(annuity_calculator_decumulation_horizon_request)
|
171
|
+
auth_names = ['oauth2']
|
172
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
173
|
+
:header_params => header_params,
|
174
|
+
:query_params => query_params,
|
175
|
+
:form_params => form_params,
|
176
|
+
:body => post_body,
|
177
|
+
:auth_names => auth_names,
|
178
|
+
:return_type => 'Hash<String, Object>')
|
179
|
+
if @api_client.config.debugging
|
180
|
+
@api_client.config.logger.debug "API called: AnnuitiesApi#annuity_calculator_decumulation_horizon\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
181
|
+
end
|
182
|
+
return data, status_code, headers
|
183
|
+
end
|
184
|
+
# Annuity Calculator - Deposit Amount
|
185
|
+
# Calculate the necessary periodic deposit amount for a fixed annuity
|
186
|
+
# @param annuity_calculator_deposit_amount_request Request payload for Annuity Calculator - Deposit Amount
|
187
|
+
# @param [Hash] opts the optional parameters
|
188
|
+
# @return [Hash<String, Object>]
|
189
|
+
def annuity_calculator_deposit_amount(annuity_calculator_deposit_amount_request, opts = {})
|
190
|
+
data, _status_code, _headers = annuity_calculator_deposit_amount_with_http_info(annuity_calculator_deposit_amount_request, opts)
|
191
|
+
data
|
192
|
+
end
|
193
|
+
|
194
|
+
# Annuity Calculator - Deposit Amount
|
195
|
+
# Calculate the necessary periodic deposit amount for a fixed annuity
|
196
|
+
# @param annuity_calculator_deposit_amount_request Request payload for Annuity Calculator - Deposit Amount
|
197
|
+
# @param [Hash] opts the optional parameters
|
198
|
+
# @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
|
199
|
+
def annuity_calculator_deposit_amount_with_http_info(annuity_calculator_deposit_amount_request, opts = {})
|
200
|
+
if @api_client.config.debugging
|
201
|
+
@api_client.config.logger.debug 'Calling API: AnnuitiesApi.annuity_calculator_deposit_amount ...'
|
202
|
+
end
|
203
|
+
# verify the required parameter 'annuity_calculator_deposit_amount_request' is set
|
204
|
+
if @api_client.config.client_side_validation && annuity_calculator_deposit_amount_request.nil?
|
205
|
+
fail ArgumentError, "Missing the required parameter 'annuity_calculator_deposit_amount_request' when calling AnnuitiesApi.annuity_calculator_deposit_amount"
|
206
|
+
end
|
207
|
+
# resource path
|
208
|
+
local_var_path = '/annuity_calculator/deposit_amount'
|
209
|
+
|
210
|
+
# query parameters
|
211
|
+
query_params = {}
|
212
|
+
|
213
|
+
# header parameters
|
214
|
+
header_params = {}
|
215
|
+
# HTTP header 'Accept' (if needed)
|
216
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
217
|
+
# HTTP header 'Content-Type'
|
218
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
219
|
+
|
220
|
+
# form parameters
|
221
|
+
form_params = {}
|
222
|
+
|
223
|
+
# http body (model)
|
224
|
+
post_body = @api_client.object_to_http_body(annuity_calculator_deposit_amount_request)
|
225
|
+
auth_names = ['oauth2']
|
226
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
227
|
+
:header_params => header_params,
|
228
|
+
:query_params => query_params,
|
229
|
+
:form_params => form_params,
|
230
|
+
:body => post_body,
|
231
|
+
:auth_names => auth_names,
|
232
|
+
:return_type => 'Hash<String, Object>')
|
233
|
+
if @api_client.config.debugging
|
234
|
+
@api_client.config.logger.debug "API called: AnnuitiesApi#annuity_calculator_deposit_amount\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
235
|
+
end
|
236
|
+
return data, status_code, headers
|
237
|
+
end
|
238
|
+
# Annuity Calculator - Initial Balance
|
239
|
+
# Calculate the necessary initial balance for a fixed annuity
|
240
|
+
# @param annuity_calculator_initial_balance_request Request payload for Annuity Calculator - Initial Balance
|
241
|
+
# @param [Hash] opts the optional parameters
|
242
|
+
# @return [Hash<String, Object>]
|
243
|
+
def annuity_calculator_initial_balance(annuity_calculator_initial_balance_request, opts = {})
|
244
|
+
data, _status_code, _headers = annuity_calculator_initial_balance_with_http_info(annuity_calculator_initial_balance_request, opts)
|
245
|
+
data
|
246
|
+
end
|
247
|
+
|
248
|
+
# Annuity Calculator - Initial Balance
|
249
|
+
# Calculate the necessary initial balance for a fixed annuity
|
250
|
+
# @param annuity_calculator_initial_balance_request Request payload for Annuity Calculator - Initial Balance
|
251
|
+
# @param [Hash] opts the optional parameters
|
252
|
+
# @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
|
253
|
+
def annuity_calculator_initial_balance_with_http_info(annuity_calculator_initial_balance_request, opts = {})
|
254
|
+
if @api_client.config.debugging
|
255
|
+
@api_client.config.logger.debug 'Calling API: AnnuitiesApi.annuity_calculator_initial_balance ...'
|
256
|
+
end
|
257
|
+
# verify the required parameter 'annuity_calculator_initial_balance_request' is set
|
258
|
+
if @api_client.config.client_side_validation && annuity_calculator_initial_balance_request.nil?
|
259
|
+
fail ArgumentError, "Missing the required parameter 'annuity_calculator_initial_balance_request' when calling AnnuitiesApi.annuity_calculator_initial_balance"
|
260
|
+
end
|
261
|
+
# resource path
|
262
|
+
local_var_path = '/annuity_calculator/initial_balance'
|
263
|
+
|
264
|
+
# query parameters
|
265
|
+
query_params = {}
|
266
|
+
|
267
|
+
# header parameters
|
268
|
+
header_params = {}
|
269
|
+
# HTTP header 'Accept' (if needed)
|
270
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
271
|
+
# HTTP header 'Content-Type'
|
272
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
273
|
+
|
274
|
+
# form parameters
|
275
|
+
form_params = {}
|
276
|
+
|
277
|
+
# http body (model)
|
278
|
+
post_body = @api_client.object_to_http_body(annuity_calculator_initial_balance_request)
|
279
|
+
auth_names = ['oauth2']
|
280
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
281
|
+
:header_params => header_params,
|
282
|
+
:query_params => query_params,
|
283
|
+
:form_params => form_params,
|
284
|
+
:body => post_body,
|
285
|
+
:auth_names => auth_names,
|
286
|
+
:return_type => 'Hash<String, Object>')
|
287
|
+
if @api_client.config.debugging
|
288
|
+
@api_client.config.logger.debug "API called: AnnuitiesApi#annuity_calculator_initial_balance\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
289
|
+
end
|
290
|
+
return data, status_code, headers
|
291
|
+
end
|
292
|
+
# Variable Annuity
|
293
|
+
# Project the behavior of a variable annuity over time
|
294
|
+
# @param variable_annuity_request Request payload for Variable Annuity
|
295
|
+
# @param [Hash] opts the optional parameters
|
296
|
+
# @return [Hash<String, Object>]
|
297
|
+
def variable_annuity(variable_annuity_request, opts = {})
|
298
|
+
data, _status_code, _headers = variable_annuity_with_http_info(variable_annuity_request, opts)
|
299
|
+
data
|
300
|
+
end
|
301
|
+
|
302
|
+
# Variable Annuity
|
303
|
+
# Project the behavior of a variable annuity over time
|
304
|
+
# @param variable_annuity_request Request payload for Variable Annuity
|
305
|
+
# @param [Hash] opts the optional parameters
|
306
|
+
# @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
|
307
|
+
def variable_annuity_with_http_info(variable_annuity_request, opts = {})
|
308
|
+
if @api_client.config.debugging
|
309
|
+
@api_client.config.logger.debug 'Calling API: AnnuitiesApi.variable_annuity ...'
|
310
|
+
end
|
311
|
+
# verify the required parameter 'variable_annuity_request' is set
|
312
|
+
if @api_client.config.client_side_validation && variable_annuity_request.nil?
|
313
|
+
fail ArgumentError, "Missing the required parameter 'variable_annuity_request' when calling AnnuitiesApi.variable_annuity"
|
314
|
+
end
|
315
|
+
# resource path
|
316
|
+
local_var_path = '/variable_annuity'
|
317
|
+
|
318
|
+
# query parameters
|
319
|
+
query_params = {}
|
320
|
+
|
321
|
+
# header parameters
|
322
|
+
header_params = {}
|
323
|
+
# HTTP header 'Accept' (if needed)
|
324
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
325
|
+
# HTTP header 'Content-Type'
|
326
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
327
|
+
|
328
|
+
# form parameters
|
329
|
+
form_params = {}
|
330
|
+
|
331
|
+
# http body (model)
|
332
|
+
post_body = @api_client.object_to_http_body(variable_annuity_request)
|
333
|
+
auth_names = ['oauth2']
|
334
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
335
|
+
:header_params => header_params,
|
336
|
+
:query_params => query_params,
|
337
|
+
:form_params => form_params,
|
338
|
+
:body => post_body,
|
339
|
+
:auth_names => auth_names,
|
340
|
+
:return_type => 'Hash<String, Object>')
|
341
|
+
if @api_client.config.debugging
|
342
|
+
@api_client.config.logger.debug "API called: AnnuitiesApi#variable_annuity\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
343
|
+
end
|
344
|
+
return data, status_code, headers
|
345
|
+
end
|
346
|
+
end
|
347
|
+
end
|