proton_api 1.8.0 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +35 -205
- data/lib/proton_api.rb +10 -2
- data/lib/proton_api/api/annuities_api.rb +2 -2
- data/lib/proton_api/api/business_financial_management_api.rb +2 -2
- data/lib/proton_api/api/cards_api.rb +56 -2
- data/lib/proton_api/api/financial_health_api.rb +2 -2
- data/lib/proton_api/api/financial_planning_api.rb +2 -2
- data/lib/proton_api/api/goals_api.rb +2 -2
- data/lib/proton_api/api/life_insurance_api.rb +2 -2
- data/lib/proton_api/api/personal_financial_management_api.rb +56 -2
- data/lib/proton_api/api/portfolio_construction_api.rb +2 -2
- data/lib/proton_api/api/portfolio_management_api.rb +2 -2
- data/lib/proton_api/api/risk_scoring_api.rb +2 -2
- data/lib/proton_api/api/simulations_api.rb +2 -2
- data/lib/proton_api/api/util_api.rb +185 -0
- data/lib/proton_api/api_client.rb +6 -6
- data/lib/proton_api/api_error.rb +2 -2
- data/lib/proton_api/configuration.rb +3 -3
- data/lib/proton_api/models/accumulation_goal_deposit_config.rb +25 -25
- data/lib/proton_api/models/annuity_calculator_accumulation_horizon_request.rb +138 -141
- data/lib/proton_api/models/annuity_calculator_annuity_amount_request.rb +129 -132
- data/lib/proton_api/models/annuity_calculator_decumulation_horizon_request.rb +138 -141
- data/lib/proton_api/models/annuity_calculator_deposit_amount_request.rb +138 -141
- data/lib/proton_api/models/annuity_calculator_initial_balance_request.rb +138 -141
- data/lib/proton_api/models/annuity_deposit_schedule.rb +33 -36
- data/lib/proton_api/models/answer.rb +186 -0
- data/lib/proton_api/models/backtest_request.rb +56 -59
- data/lib/proton_api/models/beneficiary_bequest_config.rb +32 -35
- data/lib/proton_api/models/budget_aggregation_account.rb +7 -10
- data/lib/proton_api/models/budget_calculator_request.rb +85 -66
- data/lib/proton_api/models/budget_component.rb +25 -28
- data/lib/proton_api/models/budget_details.rb +75 -78
- data/lib/proton_api/models/business_financial_health_check_request.rb +172 -166
- data/lib/proton_api/models/business_invoice_analysis_request.rb +79 -73
- data/lib/proton_api/models/calculator_deposit_schedule.rb +22 -25
- data/lib/proton_api/models/calculator_deposit_schedule1.rb +33 -36
- data/lib/proton_api/models/card_analysis_request.rb +372 -0
- data/lib/proton_api/models/card_limit_check_request.rb +42 -14
- data/lib/proton_api/models/card_transaction_authorization_request.rb +143 -80
- data/lib/proton_api/models/cash_analysis_request.rb +82 -63
- data/lib/proton_api/models/cash_flow_analysis_request.rb +104 -76
- data/lib/proton_api/models/children_education_config.rb +7 -10
- data/lib/proton_api/models/customer_analysis_request.rb +60 -54
- data/lib/proton_api/models/decision_tree_result_request.rb +236 -0
- data/lib/proton_api/models/decumulation_goal_deposit_config.rb +28 -31
- data/lib/proton_api/models/dimensional_risk_score_request.rb +52 -55
- data/lib/proton_api/models/diversification_score_request.rb +59 -62
- data/lib/proton_api/models/education_calculator_annual_cost_request.rb +143 -146
- data/lib/proton_api/models/education_calculator_deposit_amount_request.rb +170 -173
- data/lib/proton_api/models/education_calculator_percent_covered_request.rb +136 -139
- data/lib/proton_api/models/education_config.rb +44 -47
- data/lib/proton_api/models/emergency_fund_calculator_request.rb +182 -185
- data/lib/proton_api/models/event_study_request.rb +64 -67
- data/lib/proton_api/models/fee_analysis_request.rb +42 -34
- data/lib/proton_api/models/financial_health_check_request.rb +109 -112
- data/lib/proton_api/models/financial_picture_request.rb +53 -52
- data/lib/proton_api/models/financial_statement_analysis_request.rb +140 -134
- data/lib/proton_api/models/goal_accumulation_allocation_request.rb +271 -274
- data/lib/proton_api/models/goal_accumulation_recommendation_request.rb +218 -221
- data/lib/proton_api/models/goal_accumulation_status_request.rb +218 -221
- data/lib/proton_api/models/goal_config.rb +35 -38
- data/lib/proton_api/models/goal_decumulation_allocation_request.rb +293 -296
- data/lib/proton_api/models/goal_decumulation_recommendation_request.rb +242 -245
- data/lib/proton_api/models/goal_decumulation_status_request.rb +242 -245
- data/lib/proton_api/models/goal_withdrawal_config.rb +82 -85
- data/lib/proton_api/models/guaranteed_rate_benefit.rb +51 -54
- data/lib/proton_api/models/income_config.rb +37 -40
- data/lib/proton_api/models/life_insurance_needs_calculator_request.rb +152 -155
- data/lib/proton_api/models/location.rb +183 -0
- data/lib/proton_api/models/monte_carlo_request.rb +157 -160
- data/lib/proton_api/models/mortgage_calculator_down_payment_request.rb +46 -49
- data/lib/proton_api/models/mortgage_calculator_home_price_request.rb +46 -49
- data/lib/proton_api/models/mortgage_calculator_periodic_payment_request.rb +71 -74
- data/lib/proton_api/models/mvo_request.rb +88 -91
- data/lib/proton_api/models/opt_config.rb +54 -57
- data/lib/proton_api/models/opt_config1.rb +29 -32
- data/lib/proton_api/models/order_rebalance_request.rb +398 -0
- data/lib/proton_api/models/performance_calculator_request.rb +687 -0
- data/lib/proton_api/models/periods.rb +7 -10
- data/lib/proton_api/models/portfolio_optimization_score_request.rb +68 -71
- data/lib/proton_api/models/portfolio_what_if_request.rb +71 -74
- data/lib/proton_api/models/purchase_calculator_amount_request.rb +112 -115
- data/lib/proton_api/models/purchase_calculator_deposit_amount_request.rb +136 -139
- data/lib/proton_api/models/purchase_calculator_horizon_request.rb +100 -103
- data/lib/proton_api/models/ratio_targets.rb +79 -82
- data/lib/proton_api/models/ratio_targets1.rb +38 -41
- data/lib/proton_api/models/rebalancing_signal_request.rb +26 -29
- data/lib/proton_api/models/recommendation_config.rb +104 -107
- data/lib/proton_api/models/recommendation_config1.rb +100 -103
- data/lib/proton_api/models/recurring_transaction_analysis_request.rb +106 -76
- data/lib/proton_api/models/retirement_calculator_deposit_amount_request.rb +148 -151
- data/lib/proton_api/models/retirement_calculator_expenses_request.rb +119 -122
- data/lib/proton_api/models/retirement_calculator_percent_covered_request.rb +132 -135
- data/lib/proton_api/models/risk_allocation_request.rb +53 -56
- data/lib/proton_api/models/risk_score_request.rb +37 -40
- data/lib/proton_api/models/savings_calculator_request.rb +100 -103
- data/lib/proton_api/models/savings_deposit_schedule.rb +22 -25
- data/lib/proton_api/models/scenario_analysis_request.rb +81 -84
- data/lib/proton_api/models/sensitivity_analysis_request.rb +77 -80
- data/lib/proton_api/models/sensitivity_factor.rb +58 -61
- data/lib/proton_api/models/settings.rb +38 -41
- data/lib/proton_api/models/spending_analysis_request.rb +505 -0
- data/lib/proton_api/models/variable_annuity_request.rb +284 -287
- data/lib/proton_api/models/w_config.rb +77 -80
- data/lib/proton_api/models/w_config1.rb +66 -69
- data/lib/proton_api/version.rb +3 -3
- data/proton_api.gemspec +2 -2
- data/spec/api/annuities_api_spec.rb +2 -2
- data/spec/api/business_financial_management_api_spec.rb +2 -2
- data/spec/api/cards_api_spec.rb +14 -2
- data/spec/api/financial_health_api_spec.rb +2 -2
- data/spec/api/financial_planning_api_spec.rb +2 -2
- data/spec/api/goals_api_spec.rb +2 -2
- data/spec/api/life_insurance_api_spec.rb +2 -2
- data/spec/api/personal_financial_management_api_spec.rb +14 -2
- data/spec/api/portfolio_construction_api_spec.rb +2 -2
- data/spec/api/portfolio_management_api_spec.rb +2 -2
- data/spec/api/risk_scoring_api_spec.rb +2 -2
- data/spec/api/simulations_api_spec.rb +2 -2
- data/spec/api/util_api_spec.rb +71 -0
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +5 -5
- data/spec/models/accumulation_goal_deposit_config_spec.rb +10 -10
- data/spec/models/annuity_calculator_accumulation_horizon_request_spec.rb +17 -17
- data/spec/models/annuity_calculator_annuity_amount_request_spec.rb +17 -17
- data/spec/models/annuity_calculator_decumulation_horizon_request_spec.rb +17 -17
- data/spec/models/annuity_calculator_deposit_amount_request_spec.rb +17 -17
- data/spec/models/annuity_calculator_initial_balance_request_spec.rb +17 -17
- data/spec/models/annuity_deposit_schedule_spec.rb +4 -4
- data/spec/models/answer_spec.rb +41 -0
- data/spec/models/backtest_request_spec.rb +10 -10
- data/spec/models/beneficiary_bequest_config_spec.rb +4 -4
- data/spec/models/budget_aggregation_account_spec.rb +2 -2
- data/spec/models/budget_calculator_request_spec.rb +25 -13
- data/spec/models/budget_component_spec.rb +4 -4
- data/spec/models/budget_details_spec.rb +15 -15
- data/spec/models/business_financial_health_check_request_spec.rb +34 -28
- data/spec/models/business_invoice_analysis_request_spec.rb +18 -12
- data/spec/models/calculator_deposit_schedule1_spec.rb +4 -4
- data/spec/models/calculator_deposit_schedule_spec.rb +8 -8
- data/spec/models/card_analysis_request_spec.rb +129 -0
- data/spec/models/card_limit_check_request_spec.rb +20 -2
- data/spec/models/card_transaction_authorization_request_spec.rb +57 -15
- data/spec/models/cash_analysis_request_spec.rb +25 -13
- data/spec/models/cash_flow_analysis_request_spec.rb +34 -16
- data/spec/models/children_education_config_spec.rb +2 -2
- data/spec/models/customer_analysis_request_spec.rb +15 -9
- data/spec/models/decision_tree_result_request_spec.rb +51 -0
- data/spec/models/decumulation_goal_deposit_config_spec.rb +10 -10
- data/spec/models/dimensional_risk_score_request_spec.rb +8 -8
- data/spec/models/diversification_score_request_spec.rb +14 -14
- data/spec/models/education_calculator_annual_cost_request_spec.rb +13 -13
- data/spec/models/education_calculator_deposit_amount_request_spec.rb +13 -13
- data/spec/models/education_calculator_percent_covered_request_spec.rb +12 -12
- data/spec/models/education_config_spec.rb +5 -5
- data/spec/models/emergency_fund_calculator_request_spec.rb +23 -23
- data/spec/models/event_study_request_spec.rb +17 -17
- data/spec/models/fee_analysis_request_spec.rb +12 -6
- data/spec/models/financial_health_check_request_spec.rb +12 -12
- data/spec/models/financial_picture_request_spec.rb +15 -9
- data/spec/models/financial_statement_analysis_request_spec.rb +39 -33
- data/spec/models/goal_accumulation_allocation_request_spec.rb +48 -48
- data/spec/models/goal_accumulation_recommendation_request_spec.rb +34 -34
- data/spec/models/goal_accumulation_status_request_spec.rb +34 -34
- data/spec/models/goal_config_spec.rb +4 -4
- data/spec/models/goal_decumulation_allocation_request_spec.rb +51 -51
- data/spec/models/goal_decumulation_recommendation_request_spec.rb +35 -35
- data/spec/models/goal_decumulation_status_request_spec.rb +35 -35
- data/spec/models/goal_withdrawal_config_spec.rb +20 -20
- data/spec/models/guaranteed_rate_benefit_spec.rb +5 -5
- data/spec/models/income_config_spec.rb +4 -4
- data/spec/models/life_insurance_needs_calculator_request_spec.rb +16 -16
- data/spec/models/location_spec.rb +41 -0
- data/spec/models/monte_carlo_request_spec.rb +31 -31
- data/spec/models/mortgage_calculator_down_payment_request_spec.rb +6 -6
- data/spec/models/mortgage_calculator_home_price_request_spec.rb +6 -6
- data/spec/models/mortgage_calculator_periodic_payment_request_spec.rb +6 -6
- data/spec/models/mvo_request_spec.rb +23 -23
- data/spec/models/opt_config1_spec.rb +10 -10
- data/spec/models/opt_config_spec.rb +13 -13
- data/spec/models/order_rebalance_request_spec.rb +123 -0
- data/spec/models/performance_calculator_request_spec.rb +233 -0
- data/spec/models/periods_spec.rb +2 -2
- data/spec/models/portfolio_optimization_score_request_spec.rb +16 -16
- data/spec/models/portfolio_what_if_request_spec.rb +16 -16
- data/spec/models/purchase_calculator_amount_request_spec.rb +14 -14
- data/spec/models/purchase_calculator_deposit_amount_request_spec.rb +16 -16
- data/spec/models/purchase_calculator_horizon_request_spec.rb +10 -10
- data/spec/models/ratio_targets1_spec.rb +4 -4
- data/spec/models/ratio_targets_spec.rb +8 -8
- data/spec/models/rebalancing_signal_request_spec.rb +6 -6
- data/spec/models/recommendation_config1_spec.rb +9 -9
- data/spec/models/recommendation_config_spec.rb +9 -9
- data/spec/models/recurring_transaction_analysis_request_spec.rb +33 -15
- data/spec/models/retirement_calculator_deposit_amount_request_spec.rb +13 -13
- data/spec/models/retirement_calculator_expenses_request_spec.rb +12 -12
- data/spec/models/retirement_calculator_percent_covered_request_spec.rb +12 -12
- data/spec/models/risk_allocation_request_spec.rb +15 -15
- data/spec/models/risk_score_request_spec.rb +8 -8
- data/spec/models/savings_calculator_request_spec.rb +16 -16
- data/spec/models/savings_deposit_schedule_spec.rb +8 -8
- data/spec/models/scenario_analysis_request_spec.rb +19 -19
- data/spec/models/sensitivity_analysis_request_spec.rb +23 -23
- data/spec/models/sensitivity_factor_spec.rb +6 -6
- data/spec/models/settings_spec.rb +13 -13
- data/spec/models/spending_analysis_request_spec.rb +187 -0
- data/spec/models/variable_annuity_request_spec.rb +40 -40
- data/spec/models/w_config1_spec.rb +6 -6
- data/spec/models/w_config_spec.rb +7 -7
- data/spec/spec_helper.rb +2 -2
- metadata +26 -94
- data/docs/AccumulationGoalDepositConfig.md +0 -14
- data/docs/AnnuitiesApi.md +0 -344
- data/docs/AnnuityCalculatorAccumulationHorizonRequest.md +0 -19
- data/docs/AnnuityCalculatorAnnuityAmountRequest.md +0 -19
- data/docs/AnnuityCalculatorDecumulationHorizonRequest.md +0 -19
- data/docs/AnnuityCalculatorDepositAmountRequest.md +0 -19
- data/docs/AnnuityCalculatorInitialBalanceRequest.md +0 -19
- data/docs/AnnuityDepositSchedule.md +0 -10
- data/docs/BacktestRequest.md +0 -17
- data/docs/BeneficiaryBequestConfig.md +0 -10
- data/docs/BudgetAggregationAccount.md +0 -8
- data/docs/BudgetCalculatorRequest.md +0 -16
- data/docs/BudgetComponent.md +0 -10
- data/docs/BudgetDetails.md +0 -17
- data/docs/BusinessFinancialHealthCheckRequest.md +0 -22
- data/docs/BusinessFinancialManagementApi.md +0 -288
- data/docs/BusinessInvoiceAnalysisRequest.md +0 -20
- data/docs/CalculatorDepositSchedule.md +0 -9
- data/docs/CalculatorDepositSchedule1.md +0 -10
- data/docs/CardLimitCheckRequest.md +0 -9
- data/docs/CardTransactionAuthorizationRequest.md +0 -19
- data/docs/CardsApi.md +0 -120
- data/docs/CashAnalysisRequest.md +0 -17
- data/docs/CashFlowAnalysisRequest.md +0 -20
- data/docs/ChildrenEducationConfig.md +0 -9
- data/docs/CustomerAnalysisRequest.md +0 -17
- data/docs/DecumulationGoalDepositConfig.md +0 -14
- data/docs/DimensionalRiskScoreRequest.md +0 -16
- data/docs/DiversificationScoreRequest.md +0 -19
- data/docs/EducationCalculatorAnnualCostRequest.md +0 -18
- data/docs/EducationCalculatorDepositAmountRequest.md +0 -19
- data/docs/EducationCalculatorPercentCoveredRequest.md +0 -18
- data/docs/EducationConfig.md +0 -10
- data/docs/EmergencyFundCalculatorRequest.md +0 -24
- data/docs/EventStudyRequest.md +0 -18
- data/docs/FeeAnalysisRequest.md +0 -13
- data/docs/FinancialHealthApi.md +0 -232
- data/docs/FinancialHealthCheckRequest.md +0 -17
- data/docs/FinancialPictureRequest.md +0 -16
- data/docs/FinancialPlanningApi.md +0 -680
- data/docs/FinancialStatementAnalysisRequest.md +0 -22
- data/docs/GoalAccumulationAllocationRequest.md +0 -33
- data/docs/GoalAccumulationRecommendationRequest.md +0 -28
- data/docs/GoalAccumulationStatusRequest.md +0 -28
- data/docs/GoalConfig.md +0 -9
- data/docs/GoalDecumulationAllocationRequest.md +0 -34
- data/docs/GoalDecumulationRecommendationRequest.md +0 -29
- data/docs/GoalDecumulationStatusRequest.md +0 -29
- data/docs/GoalWithdrawalConfig.md +0 -14
- data/docs/GoalsApi.md +0 -344
- data/docs/GuaranteedRateBenefit.md +0 -11
- data/docs/IncomeConfig.md +0 -10
- data/docs/LifeInsuranceApi.md +0 -64
- data/docs/LifeInsuranceNeedsCalculatorRequest.md +0 -22
- data/docs/MonteCarloRequest.md +0 -29
- data/docs/MortgageCalculatorDownPaymentRequest.md +0 -11
- data/docs/MortgageCalculatorHomePriceRequest.md +0 -11
- data/docs/MortgageCalculatorPeriodicPaymentRequest.md +0 -11
- data/docs/MvoRequest.md +0 -18
- data/docs/OptConfig.md +0 -14
- data/docs/OptConfig1.md +0 -12
- data/docs/Periods.md +0 -9
- data/docs/PersonalFinancialManagementApi.md +0 -288
- data/docs/PortfolioConstructionApi.md +0 -64
- data/docs/PortfolioManagementApi.md +0 -64
- data/docs/PortfolioOptimizationScoreRequest.md +0 -21
- data/docs/PortfolioWhatIfRequest.md +0 -21
- data/docs/PurchaseCalculatorAmountRequest.md +0 -16
- data/docs/PurchaseCalculatorDepositAmountRequest.md +0 -17
- data/docs/PurchaseCalculatorHorizonRequest.md +0 -15
- data/docs/RatioTargets.md +0 -13
- data/docs/RatioTargets1.md +0 -13
- data/docs/RebalancingSignalRequest.md +0 -13
- data/docs/RecommendationConfig.md +0 -15
- data/docs/RecommendationConfig1.md +0 -14
- data/docs/RecurringTransactionAnalysisRequest.md +0 -19
- data/docs/RetirementCalculatorDepositAmountRequest.md +0 -20
- data/docs/RetirementCalculatorExpensesRequest.md +0 -19
- data/docs/RetirementCalculatorPercentCoveredRequest.md +0 -19
- data/docs/RiskAllocationRequest.md +0 -14
- data/docs/RiskScoreRequest.md +0 -13
- data/docs/RiskScoringApi.md +0 -176
- data/docs/SavingsCalculatorRequest.md +0 -17
- data/docs/SavingsDepositSchedule.md +0 -11
- data/docs/ScenarioAnalysisRequest.md +0 -22
- data/docs/SensitivityAnalysisRequest.md +0 -22
- data/docs/SensitivityFactor.md +0 -11
- data/docs/Settings.md +0 -13
- data/docs/SimulationsApi.md +0 -400
- data/docs/VariableAnnuityRequest.md +0 -34
- data/docs/WConfig.md +0 -12
- data/docs/WConfig1.md +0 -12
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Financial engineering module of Hydrogen Atom
|
5
5
|
|
6
|
-
OpenAPI spec version: 1.
|
6
|
+
OpenAPI spec version: 1.9.0
|
7
7
|
Contact: info@hydrogenplatform.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.19
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,51 +14,55 @@ require 'date'
|
|
14
14
|
|
15
15
|
module ProtonApi
|
16
16
|
class FinancialPictureRequest
|
17
|
-
attr_accessor :
|
17
|
+
attr_accessor :currency_code
|
18
18
|
|
19
19
|
attr_accessor :client_id
|
20
20
|
|
21
|
-
attr_accessor :
|
21
|
+
attr_accessor :show_history
|
22
22
|
|
23
|
-
attr_accessor :
|
23
|
+
attr_accessor :end_date
|
24
24
|
|
25
|
-
attr_accessor :
|
25
|
+
attr_accessor :currency_conversion
|
26
26
|
|
27
27
|
attr_accessor :start_date
|
28
28
|
|
29
|
-
attr_accessor :currency_code
|
30
|
-
|
31
29
|
attr_accessor :show_category_breakdown
|
32
30
|
|
33
31
|
attr_accessor :show_change
|
34
32
|
|
33
|
+
attr_accessor :household_id
|
34
|
+
|
35
|
+
attr_accessor :create_log
|
36
|
+
|
35
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
36
38
|
def self.attribute_map
|
37
39
|
{
|
38
|
-
:'
|
40
|
+
:'currency_code' => :'currency_code',
|
39
41
|
:'client_id' => :'client_id',
|
40
|
-
:'create_log' => :'create_log',
|
41
|
-
:'currency_conversion' => :'currency_conversion',
|
42
42
|
:'show_history' => :'show_history',
|
43
|
+
:'end_date' => :'end_date',
|
44
|
+
:'currency_conversion' => :'currency_conversion',
|
43
45
|
:'start_date' => :'start_date',
|
44
|
-
:'currency_code' => :'currency_code',
|
45
46
|
:'show_category_breakdown' => :'show_category_breakdown',
|
46
|
-
:'show_change' => :'show_change'
|
47
|
+
:'show_change' => :'show_change',
|
48
|
+
:'household_id' => :'household_id',
|
49
|
+
:'create_log' => :'create_log'
|
47
50
|
}
|
48
51
|
end
|
49
52
|
|
50
53
|
# Attribute type mapping.
|
51
54
|
def self.swagger_types
|
52
55
|
{
|
53
|
-
:'
|
56
|
+
:'currency_code' => :'String',
|
54
57
|
:'client_id' => :'String',
|
55
|
-
:'create_log' => :'BOOLEAN',
|
56
|
-
:'currency_conversion' => :'String',
|
57
58
|
:'show_history' => :'BOOLEAN',
|
59
|
+
:'end_date' => :'Date',
|
60
|
+
:'currency_conversion' => :'String',
|
58
61
|
:'start_date' => :'Date',
|
59
|
-
:'currency_code' => :'String',
|
60
62
|
:'show_category_breakdown' => :'BOOLEAN',
|
61
|
-
:'show_change' => :'BOOLEAN'
|
63
|
+
:'show_change' => :'BOOLEAN',
|
64
|
+
:'household_id' => :'String',
|
65
|
+
:'create_log' => :'BOOLEAN'
|
62
66
|
}
|
63
67
|
end
|
64
68
|
|
@@ -70,38 +74,32 @@ module ProtonApi
|
|
70
74
|
# convert string to symbol for hash key
|
71
75
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
72
76
|
|
73
|
-
if attributes.has_key?(:'
|
74
|
-
self.
|
77
|
+
if attributes.has_key?(:'currency_code')
|
78
|
+
self.currency_code = attributes[:'currency_code']
|
75
79
|
end
|
76
80
|
|
77
81
|
if attributes.has_key?(:'client_id')
|
78
82
|
self.client_id = attributes[:'client_id']
|
79
83
|
end
|
80
84
|
|
81
|
-
if attributes.has_key?(:'
|
82
|
-
self.
|
85
|
+
if attributes.has_key?(:'show_history')
|
86
|
+
self.show_history = attributes[:'show_history']
|
83
87
|
else
|
84
|
-
self.
|
88
|
+
self.show_history = false
|
85
89
|
end
|
86
90
|
|
87
|
-
if attributes.has_key?(:'
|
88
|
-
self.
|
91
|
+
if attributes.has_key?(:'end_date')
|
92
|
+
self.end_date = attributes[:'end_date']
|
89
93
|
end
|
90
94
|
|
91
|
-
if attributes.has_key?(:'
|
92
|
-
self.
|
93
|
-
else
|
94
|
-
self.show_history = false
|
95
|
+
if attributes.has_key?(:'currency_conversion')
|
96
|
+
self.currency_conversion = attributes[:'currency_conversion']
|
95
97
|
end
|
96
98
|
|
97
99
|
if attributes.has_key?(:'start_date')
|
98
100
|
self.start_date = attributes[:'start_date']
|
99
101
|
end
|
100
102
|
|
101
|
-
if attributes.has_key?(:'currency_code')
|
102
|
-
self.currency_code = attributes[:'currency_code']
|
103
|
-
end
|
104
|
-
|
105
103
|
if attributes.has_key?(:'show_category_breakdown')
|
106
104
|
self.show_category_breakdown = attributes[:'show_category_breakdown']
|
107
105
|
else
|
@@ -113,23 +111,28 @@ module ProtonApi
|
|
113
111
|
else
|
114
112
|
self.show_change = false
|
115
113
|
end
|
114
|
+
|
115
|
+
if attributes.has_key?(:'household_id')
|
116
|
+
self.household_id = attributes[:'household_id']
|
117
|
+
end
|
118
|
+
|
119
|
+
if attributes.has_key?(:'create_log')
|
120
|
+
self.create_log = attributes[:'create_log']
|
121
|
+
else
|
122
|
+
self.create_log = false
|
123
|
+
end
|
116
124
|
end
|
117
125
|
|
118
126
|
# Show invalid properties with the reasons. Usually used together with valid?
|
119
127
|
# @return Array for valid properties with the reasons
|
120
128
|
def list_invalid_properties
|
121
129
|
invalid_properties = Array.new
|
122
|
-
if @client_id.nil?
|
123
|
-
invalid_properties.push('invalid value for "client_id", client_id cannot be nil.')
|
124
|
-
end
|
125
|
-
|
126
130
|
invalid_properties
|
127
131
|
end
|
128
132
|
|
129
133
|
# Check to see if the all the properties in the model are valid
|
130
134
|
# @return true if the model is valid
|
131
135
|
def valid?
|
132
|
-
return false if @client_id.nil?
|
133
136
|
true
|
134
137
|
end
|
135
138
|
|
@@ -138,15 +141,16 @@ module ProtonApi
|
|
138
141
|
def ==(o)
|
139
142
|
return true if self.equal?(o)
|
140
143
|
self.class == o.class &&
|
141
|
-
|
144
|
+
currency_code == o.currency_code &&
|
142
145
|
client_id == o.client_id &&
|
143
|
-
create_log == o.create_log &&
|
144
|
-
currency_conversion == o.currency_conversion &&
|
145
146
|
show_history == o.show_history &&
|
147
|
+
end_date == o.end_date &&
|
148
|
+
currency_conversion == o.currency_conversion &&
|
146
149
|
start_date == o.start_date &&
|
147
|
-
currency_code == o.currency_code &&
|
148
150
|
show_category_breakdown == o.show_category_breakdown &&
|
149
|
-
show_change == o.show_change
|
151
|
+
show_change == o.show_change &&
|
152
|
+
household_id == o.household_id &&
|
153
|
+
create_log == o.create_log
|
150
154
|
end
|
151
155
|
|
152
156
|
# @see the `==` method
|
@@ -158,7 +162,7 @@ module ProtonApi
|
|
158
162
|
# Calculates hash code according to all attributes.
|
159
163
|
# @return [Fixnum] Hash code
|
160
164
|
def hash
|
161
|
-
[
|
165
|
+
[currency_code, client_id, show_history, end_date, currency_conversion, start_date, show_category_breakdown, show_change, household_id, create_log].hash
|
162
166
|
end
|
163
167
|
|
164
168
|
# Builds the object from hash
|
@@ -180,17 +184,16 @@ module ProtonApi
|
|
180
184
|
|
181
185
|
self
|
182
186
|
end
|
183
|
-
|
184
|
-
# Deserializes the data based on type
|
187
|
+
# Deserializes the data based on type
|
185
188
|
# @param string type Data type
|
186
189
|
# @param string value Value to be deserialized
|
187
190
|
# @return [Object] Deserialized data
|
188
191
|
def _deserialize(type, value)
|
189
192
|
case type.to_sym
|
190
193
|
when :DateTime
|
191
|
-
|
194
|
+
value
|
192
195
|
when :Date
|
193
|
-
|
196
|
+
value
|
194
197
|
when :String
|
195
198
|
value.to_s
|
196
199
|
when :Integer
|
@@ -222,8 +225,7 @@ module ProtonApi
|
|
222
225
|
temp_model.build_from_hash(value)
|
223
226
|
end
|
224
227
|
end
|
225
|
-
|
226
|
-
# Returns the string representation of the object
|
228
|
+
# Returns the string representation of the object
|
227
229
|
# @return [String] String presentation of the object
|
228
230
|
def to_s
|
229
231
|
to_hash.to_s
|
@@ -246,8 +248,7 @@ module ProtonApi
|
|
246
248
|
end
|
247
249
|
hash
|
248
250
|
end
|
249
|
-
|
250
|
-
# Outputs non-array value in the form of hash
|
251
|
+
# Outputs non-array value in the form of hash
|
251
252
|
# For object, use to_hash. Otherwise, just return the value
|
252
253
|
# @param [Object] value Any valid value
|
253
254
|
# @return [Hash] Returns the value in the form of hash
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Financial engineering module of Hydrogen Atom
|
5
5
|
|
6
|
-
OpenAPI spec version: 1.
|
6
|
+
OpenAPI spec version: 1.9.0
|
7
7
|
Contact: info@hydrogenplatform.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.19
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,35 +14,37 @@ require 'date'
|
|
14
14
|
|
15
15
|
module ProtonApi
|
16
16
|
class FinancialStatementAnalysisRequest
|
17
|
-
attr_accessor :
|
18
|
-
|
19
|
-
attr_accessor :period_month
|
20
|
-
|
21
|
-
attr_accessor :end_date
|
17
|
+
attr_accessor :currency_code
|
22
18
|
|
23
19
|
attr_accessor :client_id
|
24
20
|
|
21
|
+
attr_accessor :show_history
|
22
|
+
|
25
23
|
attr_accessor :accounting_method
|
26
24
|
|
27
|
-
attr_accessor :
|
25
|
+
attr_accessor :end_date
|
26
|
+
|
27
|
+
attr_accessor :history_frequency_interval
|
28
28
|
|
29
29
|
attr_accessor :currency_conversion
|
30
30
|
|
31
|
-
attr_accessor :
|
31
|
+
attr_accessor :period_quarter
|
32
|
+
|
33
|
+
attr_accessor :statement_type
|
34
|
+
|
35
|
+
attr_accessor :period_month
|
32
36
|
|
33
37
|
attr_accessor :start_date
|
34
38
|
|
35
|
-
attr_accessor :
|
39
|
+
attr_accessor :business_id
|
36
40
|
|
37
|
-
attr_accessor :
|
41
|
+
attr_accessor :period_year
|
38
42
|
|
39
|
-
attr_accessor :
|
43
|
+
attr_accessor :period_length
|
40
44
|
|
41
45
|
attr_accessor :stat_names
|
42
46
|
|
43
|
-
attr_accessor :
|
44
|
-
|
45
|
-
attr_accessor :statement_type
|
47
|
+
attr_accessor :period_type
|
46
48
|
|
47
49
|
class EnumAttributeValidator
|
48
50
|
attr_reader :datatype
|
@@ -69,42 +71,44 @@ module ProtonApi
|
|
69
71
|
# Attribute mapping from ruby-style variable name to JSON key.
|
70
72
|
def self.attribute_map
|
71
73
|
{
|
72
|
-
:'
|
73
|
-
:'period_month' => :'period_month',
|
74
|
-
:'end_date' => :'end_date',
|
74
|
+
:'currency_code' => :'currency_code',
|
75
75
|
:'client_id' => :'client_id',
|
76
|
+
:'show_history' => :'show_history',
|
76
77
|
:'accounting_method' => :'accounting_method',
|
77
|
-
:'
|
78
|
-
:'currency_conversion' => :'currency_conversion',
|
78
|
+
:'end_date' => :'end_date',
|
79
79
|
:'history_frequency_interval' => :'history_frequency_interval',
|
80
|
+
:'currency_conversion' => :'currency_conversion',
|
81
|
+
:'period_quarter' => :'period_quarter',
|
82
|
+
:'statement_type' => :'statement_type',
|
83
|
+
:'period_month' => :'period_month',
|
80
84
|
:'start_date' => :'start_date',
|
81
|
-
:'
|
82
|
-
:'
|
83
|
-
:'
|
85
|
+
:'business_id' => :'business_id',
|
86
|
+
:'period_year' => :'period_year',
|
87
|
+
:'period_length' => :'period_length',
|
84
88
|
:'stat_names' => :'stat_names',
|
85
|
-
:'
|
86
|
-
:'statement_type' => :'statement_type'
|
89
|
+
:'period_type' => :'period_type'
|
87
90
|
}
|
88
91
|
end
|
89
92
|
|
90
93
|
# Attribute type mapping.
|
91
94
|
def self.swagger_types
|
92
95
|
{
|
93
|
-
:'
|
94
|
-
:'period_month' => :'Integer',
|
95
|
-
:'end_date' => :'Date',
|
96
|
+
:'currency_code' => :'String',
|
96
97
|
:'client_id' => :'String',
|
98
|
+
:'show_history' => :'BOOLEAN',
|
97
99
|
:'accounting_method' => :'String',
|
98
|
-
:'
|
99
|
-
:'currency_conversion' => :'String',
|
100
|
+
:'end_date' => :'Date',
|
100
101
|
:'history_frequency_interval' => :'String',
|
102
|
+
:'currency_conversion' => :'String',
|
103
|
+
:'period_quarter' => :'Integer',
|
104
|
+
:'statement_type' => :'String',
|
105
|
+
:'period_month' => :'Integer',
|
101
106
|
:'start_date' => :'Date',
|
102
|
-
:'
|
103
|
-
:'
|
104
|
-
:'
|
107
|
+
:'business_id' => :'String',
|
108
|
+
:'period_year' => :'Integer',
|
109
|
+
:'period_length' => :'String',
|
105
110
|
:'stat_names' => :'Array<String>',
|
106
|
-
:'
|
107
|
-
:'statement_type' => :'String'
|
111
|
+
:'period_type' => :'String'
|
108
112
|
}
|
109
113
|
end
|
110
114
|
|
@@ -116,58 +120,68 @@ module ProtonApi
|
|
116
120
|
# convert string to symbol for hash key
|
117
121
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
118
122
|
|
119
|
-
if attributes.has_key?(:'
|
120
|
-
self.
|
121
|
-
else
|
122
|
-
self.period_length = 'quarterly'
|
123
|
-
end
|
124
|
-
|
125
|
-
if attributes.has_key?(:'period_month')
|
126
|
-
self.period_month = attributes[:'period_month']
|
127
|
-
end
|
128
|
-
|
129
|
-
if attributes.has_key?(:'end_date')
|
130
|
-
self.end_date = attributes[:'end_date']
|
123
|
+
if attributes.has_key?(:'currency_code')
|
124
|
+
self.currency_code = attributes[:'currency_code']
|
131
125
|
end
|
132
126
|
|
133
127
|
if attributes.has_key?(:'client_id')
|
134
128
|
self.client_id = attributes[:'client_id']
|
135
129
|
end
|
136
130
|
|
131
|
+
if attributes.has_key?(:'show_history')
|
132
|
+
self.show_history = attributes[:'show_history']
|
133
|
+
else
|
134
|
+
self.show_history = false
|
135
|
+
end
|
136
|
+
|
137
137
|
if attributes.has_key?(:'accounting_method')
|
138
138
|
self.accounting_method = attributes[:'accounting_method']
|
139
139
|
end
|
140
140
|
|
141
|
-
if attributes.has_key?(:'
|
142
|
-
self.
|
141
|
+
if attributes.has_key?(:'end_date')
|
142
|
+
self.end_date = attributes[:'end_date']
|
143
|
+
end
|
144
|
+
|
145
|
+
if attributes.has_key?(:'history_frequency_interval')
|
146
|
+
self.history_frequency_interval = attributes[:'history_frequency_interval']
|
147
|
+
else
|
148
|
+
self.history_frequency_interval = 'month'
|
143
149
|
end
|
144
150
|
|
145
151
|
if attributes.has_key?(:'currency_conversion')
|
146
152
|
self.currency_conversion = attributes[:'currency_conversion']
|
147
153
|
end
|
148
154
|
|
149
|
-
if attributes.has_key?(:'
|
150
|
-
self.
|
155
|
+
if attributes.has_key?(:'period_quarter')
|
156
|
+
self.period_quarter = attributes[:'period_quarter']
|
157
|
+
end
|
158
|
+
|
159
|
+
if attributes.has_key?(:'statement_type')
|
160
|
+
self.statement_type = attributes[:'statement_type']
|
151
161
|
else
|
152
|
-
self.
|
162
|
+
self.statement_type = 'all'
|
163
|
+
end
|
164
|
+
|
165
|
+
if attributes.has_key?(:'period_month')
|
166
|
+
self.period_month = attributes[:'period_month']
|
153
167
|
end
|
154
168
|
|
155
169
|
if attributes.has_key?(:'start_date')
|
156
170
|
self.start_date = attributes[:'start_date']
|
157
171
|
end
|
158
172
|
|
159
|
-
if attributes.has_key?(:'
|
160
|
-
self.
|
173
|
+
if attributes.has_key?(:'business_id')
|
174
|
+
self.business_id = attributes[:'business_id']
|
161
175
|
end
|
162
176
|
|
163
|
-
if attributes.has_key?(:'
|
164
|
-
self.
|
177
|
+
if attributes.has_key?(:'period_year')
|
178
|
+
self.period_year = attributes[:'period_year']
|
165
179
|
end
|
166
180
|
|
167
|
-
if attributes.has_key?(:'
|
168
|
-
self.
|
181
|
+
if attributes.has_key?(:'period_length')
|
182
|
+
self.period_length = attributes[:'period_length']
|
169
183
|
else
|
170
|
-
self.
|
184
|
+
self.period_length = 'quarterly'
|
171
185
|
end
|
172
186
|
|
173
187
|
if attributes.has_key?(:'stat_names')
|
@@ -176,14 +190,8 @@ module ProtonApi
|
|
176
190
|
end
|
177
191
|
end
|
178
192
|
|
179
|
-
if attributes.has_key?(:'
|
180
|
-
self.
|
181
|
-
end
|
182
|
-
|
183
|
-
if attributes.has_key?(:'statement_type')
|
184
|
-
self.statement_type = attributes[:'statement_type']
|
185
|
-
else
|
186
|
-
self.statement_type = 'all'
|
193
|
+
if attributes.has_key?(:'period_type')
|
194
|
+
self.period_type = attributes[:'period_type']
|
187
195
|
end
|
188
196
|
end
|
189
197
|
|
@@ -191,14 +199,6 @@ module ProtonApi
|
|
191
199
|
# @return Array for valid properties with the reasons
|
192
200
|
def list_invalid_properties
|
193
201
|
invalid_properties = Array.new
|
194
|
-
if !@period_month.nil? && @period_month > 12
|
195
|
-
invalid_properties.push('invalid value for "period_month", must be smaller than or equal to 12.')
|
196
|
-
end
|
197
|
-
|
198
|
-
if !@period_month.nil? && @period_month < 1
|
199
|
-
invalid_properties.push('invalid value for "period_month", must be greater than or equal to 1.')
|
200
|
-
end
|
201
|
-
|
202
202
|
if @accounting_method.nil?
|
203
203
|
invalid_properties.push('invalid value for "accounting_method", accounting_method cannot be nil.')
|
204
204
|
end
|
@@ -211,54 +211,38 @@ module ProtonApi
|
|
211
211
|
invalid_properties.push('invalid value for "period_quarter", must be greater than or equal to 1.')
|
212
212
|
end
|
213
213
|
|
214
|
+
if !@period_month.nil? && @period_month > 12
|
215
|
+
invalid_properties.push('invalid value for "period_month", must be smaller than or equal to 12.')
|
216
|
+
end
|
217
|
+
|
218
|
+
if !@period_month.nil? && @period_month < 1
|
219
|
+
invalid_properties.push('invalid value for "period_month", must be greater than or equal to 1.')
|
220
|
+
end
|
221
|
+
|
214
222
|
invalid_properties
|
215
223
|
end
|
216
224
|
|
217
225
|
# Check to see if the all the properties in the model are valid
|
218
226
|
# @return true if the model is valid
|
219
227
|
def valid?
|
220
|
-
period_length_validator = EnumAttributeValidator.new('String', ['annual', 'quarterly', 'monthly', 'ytd', 'qtd', 'mtd'])
|
221
|
-
return false unless period_length_validator.valid?(@period_length)
|
222
|
-
return false if !@period_month.nil? && @period_month > 12
|
223
|
-
return false if !@period_month.nil? && @period_month < 1
|
224
228
|
return false if @accounting_method.nil?
|
225
229
|
accounting_method_validator = EnumAttributeValidator.new('String', ['accrual', 'cash'])
|
226
230
|
return false unless accounting_method_validator.valid?(@accounting_method)
|
227
231
|
history_frequency_interval_validator = EnumAttributeValidator.new('String', ['day', 'week', 'month', 'quarter', 'year'])
|
228
232
|
return false unless history_frequency_interval_validator.valid?(@history_frequency_interval)
|
229
|
-
period_type_validator = EnumAttributeValidator.new('String', ['calendar', 'fiscal'])
|
230
|
-
return false unless period_type_validator.valid?(@period_type)
|
231
233
|
return false if !@period_quarter.nil? && @period_quarter > 4
|
232
234
|
return false if !@period_quarter.nil? && @period_quarter < 1
|
233
235
|
statement_type_validator = EnumAttributeValidator.new('String', ['income_statement', 'balance_sheet', 'all'])
|
234
236
|
return false unless statement_type_validator.valid?(@statement_type)
|
237
|
+
return false if !@period_month.nil? && @period_month > 12
|
238
|
+
return false if !@period_month.nil? && @period_month < 1
|
239
|
+
period_length_validator = EnumAttributeValidator.new('String', ['annual', 'quarterly', 'monthly', 'ytd', 'qtd', 'mtd'])
|
240
|
+
return false unless period_length_validator.valid?(@period_length)
|
241
|
+
period_type_validator = EnumAttributeValidator.new('String', ['calendar', 'fiscal'])
|
242
|
+
return false unless period_type_validator.valid?(@period_type)
|
235
243
|
true
|
236
244
|
end
|
237
245
|
|
238
|
-
# Custom attribute writer method checking allowed values (enum).
|
239
|
-
# @param [Object] period_length Object to be assigned
|
240
|
-
def period_length=(period_length)
|
241
|
-
validator = EnumAttributeValidator.new('String', ['annual', 'quarterly', 'monthly', 'ytd', 'qtd', 'mtd'])
|
242
|
-
unless validator.valid?(period_length)
|
243
|
-
fail ArgumentError, 'invalid value for "period_length", must be one of #{validator.allowable_values}.'
|
244
|
-
end
|
245
|
-
@period_length = period_length
|
246
|
-
end
|
247
|
-
|
248
|
-
# Custom attribute writer method with validation
|
249
|
-
# @param [Object] period_month Value to be assigned
|
250
|
-
def period_month=(period_month)
|
251
|
-
if !period_month.nil? && period_month > 12
|
252
|
-
fail ArgumentError, 'invalid value for "period_month", must be smaller than or equal to 12.'
|
253
|
-
end
|
254
|
-
|
255
|
-
if !period_month.nil? && period_month < 1
|
256
|
-
fail ArgumentError, 'invalid value for "period_month", must be greater than or equal to 1.'
|
257
|
-
end
|
258
|
-
|
259
|
-
@period_month = period_month
|
260
|
-
end
|
261
|
-
|
262
246
|
# Custom attribute writer method checking allowed values (enum).
|
263
247
|
# @param [Object] accounting_method Object to be assigned
|
264
248
|
def accounting_method=(accounting_method)
|
@@ -279,16 +263,6 @@ module ProtonApi
|
|
279
263
|
@history_frequency_interval = history_frequency_interval
|
280
264
|
end
|
281
265
|
|
282
|
-
# Custom attribute writer method checking allowed values (enum).
|
283
|
-
# @param [Object] period_type Object to be assigned
|
284
|
-
def period_type=(period_type)
|
285
|
-
validator = EnumAttributeValidator.new('String', ['calendar', 'fiscal'])
|
286
|
-
unless validator.valid?(period_type)
|
287
|
-
fail ArgumentError, 'invalid value for "period_type", must be one of #{validator.allowable_values}.'
|
288
|
-
end
|
289
|
-
@period_type = period_type
|
290
|
-
end
|
291
|
-
|
292
266
|
# Custom attribute writer method with validation
|
293
267
|
# @param [Object] period_quarter Value to be assigned
|
294
268
|
def period_quarter=(period_quarter)
|
@@ -313,26 +287,61 @@ module ProtonApi
|
|
313
287
|
@statement_type = statement_type
|
314
288
|
end
|
315
289
|
|
290
|
+
# Custom attribute writer method with validation
|
291
|
+
# @param [Object] period_month Value to be assigned
|
292
|
+
def period_month=(period_month)
|
293
|
+
if !period_month.nil? && period_month > 12
|
294
|
+
fail ArgumentError, 'invalid value for "period_month", must be smaller than or equal to 12.'
|
295
|
+
end
|
296
|
+
|
297
|
+
if !period_month.nil? && period_month < 1
|
298
|
+
fail ArgumentError, 'invalid value for "period_month", must be greater than or equal to 1.'
|
299
|
+
end
|
300
|
+
|
301
|
+
@period_month = period_month
|
302
|
+
end
|
303
|
+
|
304
|
+
# Custom attribute writer method checking allowed values (enum).
|
305
|
+
# @param [Object] period_length Object to be assigned
|
306
|
+
def period_length=(period_length)
|
307
|
+
validator = EnumAttributeValidator.new('String', ['annual', 'quarterly', 'monthly', 'ytd', 'qtd', 'mtd'])
|
308
|
+
unless validator.valid?(period_length)
|
309
|
+
fail ArgumentError, 'invalid value for "period_length", must be one of #{validator.allowable_values}.'
|
310
|
+
end
|
311
|
+
@period_length = period_length
|
312
|
+
end
|
313
|
+
|
314
|
+
# Custom attribute writer method checking allowed values (enum).
|
315
|
+
# @param [Object] period_type Object to be assigned
|
316
|
+
def period_type=(period_type)
|
317
|
+
validator = EnumAttributeValidator.new('String', ['calendar', 'fiscal'])
|
318
|
+
unless validator.valid?(period_type)
|
319
|
+
fail ArgumentError, 'invalid value for "period_type", must be one of #{validator.allowable_values}.'
|
320
|
+
end
|
321
|
+
@period_type = period_type
|
322
|
+
end
|
323
|
+
|
316
324
|
# Checks equality by comparing each attribute.
|
317
325
|
# @param [Object] Object to be compared
|
318
326
|
def ==(o)
|
319
327
|
return true if self.equal?(o)
|
320
328
|
self.class == o.class &&
|
321
|
-
|
322
|
-
period_month == o.period_month &&
|
323
|
-
end_date == o.end_date &&
|
329
|
+
currency_code == o.currency_code &&
|
324
330
|
client_id == o.client_id &&
|
331
|
+
show_history == o.show_history &&
|
325
332
|
accounting_method == o.accounting_method &&
|
326
|
-
|
327
|
-
currency_conversion == o.currency_conversion &&
|
333
|
+
end_date == o.end_date &&
|
328
334
|
history_frequency_interval == o.history_frequency_interval &&
|
335
|
+
currency_conversion == o.currency_conversion &&
|
336
|
+
period_quarter == o.period_quarter &&
|
337
|
+
statement_type == o.statement_type &&
|
338
|
+
period_month == o.period_month &&
|
329
339
|
start_date == o.start_date &&
|
330
|
-
|
331
|
-
|
332
|
-
|
340
|
+
business_id == o.business_id &&
|
341
|
+
period_year == o.period_year &&
|
342
|
+
period_length == o.period_length &&
|
333
343
|
stat_names == o.stat_names &&
|
334
|
-
|
335
|
-
statement_type == o.statement_type
|
344
|
+
period_type == o.period_type
|
336
345
|
end
|
337
346
|
|
338
347
|
# @see the `==` method
|
@@ -344,7 +353,7 @@ module ProtonApi
|
|
344
353
|
# Calculates hash code according to all attributes.
|
345
354
|
# @return [Fixnum] Hash code
|
346
355
|
def hash
|
347
|
-
[
|
356
|
+
[currency_code, client_id, show_history, accounting_method, end_date, history_frequency_interval, currency_conversion, period_quarter, statement_type, period_month, start_date, business_id, period_year, period_length, stat_names, period_type].hash
|
348
357
|
end
|
349
358
|
|
350
359
|
# Builds the object from hash
|
@@ -366,17 +375,16 @@ module ProtonApi
|
|
366
375
|
|
367
376
|
self
|
368
377
|
end
|
369
|
-
|
370
|
-
# Deserializes the data based on type
|
378
|
+
# Deserializes the data based on type
|
371
379
|
# @param string type Data type
|
372
380
|
# @param string value Value to be deserialized
|
373
381
|
# @return [Object] Deserialized data
|
374
382
|
def _deserialize(type, value)
|
375
383
|
case type.to_sym
|
376
384
|
when :DateTime
|
377
|
-
|
385
|
+
value
|
378
386
|
when :Date
|
379
|
-
|
387
|
+
value
|
380
388
|
when :String
|
381
389
|
value.to_s
|
382
390
|
when :Integer
|
@@ -408,8 +416,7 @@ module ProtonApi
|
|
408
416
|
temp_model.build_from_hash(value)
|
409
417
|
end
|
410
418
|
end
|
411
|
-
|
412
|
-
# Returns the string representation of the object
|
419
|
+
# Returns the string representation of the object
|
413
420
|
# @return [String] String presentation of the object
|
414
421
|
def to_s
|
415
422
|
to_hash.to_s
|
@@ -432,8 +439,7 @@ module ProtonApi
|
|
432
439
|
end
|
433
440
|
hash
|
434
441
|
end
|
435
|
-
|
436
|
-
# Outputs non-array value in the form of hash
|
442
|
+
# Outputs non-array value in the form of hash
|
437
443
|
# For object, use to_hash. Otherwise, just return the value
|
438
444
|
# @param [Object] value Any valid value
|
439
445
|
# @return [Hash] Returns the value in the form of hash
|