hydrogen-nucleus-api 1.9.4 → 1.9.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/nucleus_api/api/account_api.rb +1 -1
- data/lib/nucleus_api/api/aggregation_account_api.rb +1 -1
- data/lib/nucleus_api/api/allocation_api.rb +1 -1
- data/lib/nucleus_api/api/benchmark_api.rb +1 -1
- data/lib/nucleus_api/api/budget_api.rb +1 -1
- data/lib/nucleus_api/api/bulk_api.rb +1 -1
- data/lib/nucleus_api/api/business_api.rb +1 -1
- data/lib/nucleus_api/api/card_api.rb +1 -1
- data/lib/nucleus_api/api/client_api.rb +1 -1
- data/lib/nucleus_api/api/decision_tree_api.rb +1 -1
- data/lib/nucleus_api/api/document_api.rb +1 -1
- data/lib/nucleus_api/api/funding_api.rb +1 -1
- data/lib/nucleus_api/api/goal_api.rb +1 -1
- data/lib/nucleus_api/api/household_api.rb +1 -1
- data/lib/nucleus_api/api/model_api.rb +1 -1
- data/lib/nucleus_api/api/order_api.rb +1 -1
- data/lib/nucleus_api/api/portfolio_api.rb +1 -1
- data/lib/nucleus_api/api/questionnaire_api.rb +1 -1
- data/lib/nucleus_api/api/resource_api.rb +1 -1
- data/lib/nucleus_api/api/risk_profile_api.rb +1 -1
- data/lib/nucleus_api/api/score_api.rb +1 -1
- data/lib/nucleus_api/api/securities_api.rb +1 -1
- data/lib/nucleus_api/api/spending_control_api.rb +1 -1
- data/lib/nucleus_api/api/utils_api.rb +1 -1
- data/lib/nucleus_api/api/webhook_api.rb +1 -1
- data/lib/nucleus_api/api_client.rb +1 -1
- data/lib/nucleus_api/api_error.rb +1 -1
- data/lib/nucleus_api/auth_configuration.rb +4 -4
- data/lib/nucleus_api/configuration.rb +1 -1
- data/lib/nucleus_api/environment.rb +10 -0
- data/lib/nucleus_api/models/account.rb +1 -1
- data/lib/nucleus_api/models/account_allocation_mapping.rb +1 -1
- data/lib/nucleus_api/models/account_permission_vo.rb +1 -1
- data/lib/nucleus_api/models/account_portfolio_rebalance_request.rb +1 -1
- data/lib/nucleus_api/models/account_status.rb +1 -1
- data/lib/nucleus_api/models/account_type.rb +1 -1
- data/lib/nucleus_api/models/acl_client_permission_vo.rb +1 -1
- data/lib/nucleus_api/models/aggregation_account.rb +1 -1
- data/lib/nucleus_api/models/aggregation_account_balance.rb +1 -1
- data/lib/nucleus_api/models/aggregation_account_holding.rb +1 -1
- data/lib/nucleus_api/models/aggregation_account_transaction.rb +1 -1
- data/lib/nucleus_api/models/allocation.rb +1 -1
- data/lib/nucleus_api/models/allocation_aggregated_vo.rb +1 -1
- data/lib/nucleus_api/models/allocation_composition.rb +1 -1
- data/lib/nucleus_api/models/allocation_composition_aggregated_vo.rb +1 -1
- data/lib/nucleus_api/models/allocation_composition_model_holdings_vo.rb +1 -1
- data/lib/nucleus_api/models/allocation_node_map.rb +1 -1
- data/lib/nucleus_api/models/answer.rb +1 -1
- data/lib/nucleus_api/models/answer_map.rb +1 -1
- data/lib/nucleus_api/models/application.rb +1 -1
- data/lib/nucleus_api/models/audit_log.rb +1 -1
- data/lib/nucleus_api/models/available_date_double_vo.rb +1 -1
- data/lib/nucleus_api/models/bank_credit.rb +1 -1
- data/lib/nucleus_api/models/bank_link.rb +1 -1
- data/lib/nucleus_api/models/benchmark.rb +1 -1
- data/lib/nucleus_api/models/benchmark_composition.rb +1 -1
- data/lib/nucleus_api/models/brokers.rb +1 -1
- data/lib/nucleus_api/models/budget.rb +1 -1
- data/lib/nucleus_api/models/budget_aggregation_account.rb +1 -1
- data/lib/nucleus_api/models/budget_object.rb +1 -1
- data/lib/nucleus_api/models/bulk_transaction.rb +1 -1
- data/lib/nucleus_api/models/bulk_transaction_vo.rb +1 -1
- data/lib/nucleus_api/models/business.rb +1 -1
- data/lib/nucleus_api/models/business_address.rb +1 -1
- data/lib/nucleus_api/models/business_details_vo.rb +1 -1
- data/lib/nucleus_api/models/card.rb +1 -1
- data/lib/nucleus_api/models/card_address.rb +1 -1
- data/lib/nucleus_api/models/card_balance_vo.rb +1 -1
- data/lib/nucleus_api/models/card_details_vo.rb +1 -1
- data/lib/nucleus_api/models/card_program.rb +1 -1
- data/lib/nucleus_api/models/cash.rb +1 -1
- data/lib/nucleus_api/models/check.rb +1 -1
- data/lib/nucleus_api/models/check_images.rb +1 -1
- data/lib/nucleus_api/models/client.rb +30 -6
- data/lib/nucleus_api/models/client_account_mapping.rb +1 -1
- data/lib/nucleus_api/models/client_address.rb +1 -1
- data/lib/nucleus_api/models/client_business_card_vo.rb +1 -1
- data/lib/nucleus_api/models/client_business_total_card_balance_vo.rb +1 -1
- data/lib/nucleus_api/models/client_card_vo.rb +1 -1
- data/lib/nucleus_api/models/client_relationship.rb +1 -1
- data/lib/nucleus_api/models/client_response.rb +1 -1
- data/lib/nucleus_api/models/client_status.rb +1 -1
- data/lib/nucleus_api/models/client_view_goal_data.rb +1 -1
- data/lib/nucleus_api/models/country.rb +1 -1
- data/lib/nucleus_api/models/currency.rb +1 -1
- data/lib/nucleus_api/models/date_double_vo.rb +1 -1
- data/lib/nucleus_api/models/decision_tree.rb +1 -1
- data/lib/nucleus_api/models/decision_tree_co.rb +1 -1
- data/lib/nucleus_api/models/decision_tree_result_vo.rb +1 -1
- data/lib/nucleus_api/models/document.rb +1 -1
- data/lib/nucleus_api/models/employment.rb +1 -1
- data/lib/nucleus_api/models/external_account_transfer.rb +1 -1
- data/lib/nucleus_api/models/feature.rb +1 -1
- data/lib/nucleus_api/models/feature_track.rb +1 -1
- data/lib/nucleus_api/models/funding.rb +1 -1
- data/lib/nucleus_api/models/funding_transaction.rb +1 -1
- data/lib/nucleus_api/models/fx_rate.rb +1 -1
- data/lib/nucleus_api/models/fx_rate_view.rb +1 -1
- data/lib/nucleus_api/models/goal.rb +1 -1
- data/lib/nucleus_api/models/goal_account_mapping.rb +1 -1
- data/lib/nucleus_api/models/goal_track.rb +1 -1
- data/lib/nucleus_api/models/goal_track_accounts.rb +1 -1
- data/lib/nucleus_api/models/household.rb +1 -1
- data/lib/nucleus_api/models/institution.rb +1 -1
- data/lib/nucleus_api/models/investment.rb +1 -1
- data/lib/nucleus_api/models/json_node.rb +1 -1
- data/lib/nucleus_api/models/line_items.rb +1 -1
- data/lib/nucleus_api/models/location.rb +1 -1
- data/lib/nucleus_api/models/member.rb +1 -1
- data/lib/nucleus_api/models/merchant_category_code.rb +1 -1
- data/lib/nucleus_api/models/model.rb +1 -1
- data/lib/nucleus_api/models/model_asset_size.rb +1 -1
- data/lib/nucleus_api/models/model_comment.rb +1 -1
- data/lib/nucleus_api/models/model_holding.rb +1 -1
- data/lib/nucleus_api/models/model_holding_vo.rb +1 -1
- data/lib/nucleus_api/models/model_transaction.rb +1 -1
- data/lib/nucleus_api/models/mx_merchant_res.rb +1 -1
- data/lib/nucleus_api/models/node.rb +1 -1
- data/lib/nucleus_api/models/node_relationship.rb +1 -1
- data/lib/nucleus_api/models/notification.rb +1 -1
- data/lib/nucleus_api/models/notification_client.rb +1 -1
- data/lib/nucleus_api/models/notification_setting.rb +1 -1
- data/lib/nucleus_api/models/order.rb +1 -1
- data/lib/nucleus_api/models/order_bulk.rb +1 -1
- data/lib/nucleus_api/models/order_reconcile_request.rb +1 -1
- data/lib/nucleus_api/models/order_reconcile_return_object.rb +1 -1
- data/lib/nucleus_api/models/order_status.rb +1 -1
- data/lib/nucleus_api/models/order_track.rb +1 -1
- data/lib/nucleus_api/models/order_vo_clone.rb +1 -1
- data/lib/nucleus_api/models/ownership.rb +1 -1
- data/lib/nucleus_api/models/page_account.rb +1 -1
- data/lib/nucleus_api/models/page_account_allocation_mapping.rb +1 -1
- data/lib/nucleus_api/models/page_account_permission_vo.rb +1 -1
- data/lib/nucleus_api/models/page_account_status.rb +1 -1
- data/lib/nucleus_api/models/page_account_type.rb +1 -1
- data/lib/nucleus_api/models/page_aggregation_account.rb +1 -1
- data/lib/nucleus_api/models/page_aggregation_account_balance.rb +1 -1
- data/lib/nucleus_api/models/page_aggregation_account_holding.rb +1 -1
- data/lib/nucleus_api/models/page_aggregation_account_transaction.rb +1 -1
- data/lib/nucleus_api/models/page_allocation.rb +1 -1
- data/lib/nucleus_api/models/page_allocation_composition.rb +1 -1
- data/lib/nucleus_api/models/page_answer.rb +1 -1
- data/lib/nucleus_api/models/page_application.rb +1 -1
- data/lib/nucleus_api/models/page_audit_log.rb +1 -1
- data/lib/nucleus_api/models/page_bank_link.rb +1 -1
- data/lib/nucleus_api/models/page_benchmark.rb +1 -1
- data/lib/nucleus_api/models/page_budget.rb +1 -1
- data/lib/nucleus_api/models/page_business.rb +1 -1
- data/lib/nucleus_api/models/page_card.rb +1 -1
- data/lib/nucleus_api/models/page_card_program.rb +1 -1
- data/lib/nucleus_api/models/page_client.rb +1 -1
- data/lib/nucleus_api/models/page_client_business_card_vo.rb +1 -1
- data/lib/nucleus_api/models/page_client_response.rb +1 -1
- data/lib/nucleus_api/models/page_client_status.rb +1 -1
- data/lib/nucleus_api/models/page_decision_tree.rb +1 -1
- data/lib/nucleus_api/models/page_document.rb +1 -1
- data/lib/nucleus_api/models/page_external_account_transfer.rb +1 -1
- data/lib/nucleus_api/models/page_feature.rb +1 -1
- data/lib/nucleus_api/models/page_feature_track.rb +1 -1
- data/lib/nucleus_api/models/page_funding.rb +1 -1
- data/lib/nucleus_api/models/page_funding_transaction.rb +1 -1
- data/lib/nucleus_api/models/page_goal.rb +1 -1
- data/lib/nucleus_api/models/page_goal_track.rb +1 -1
- data/lib/nucleus_api/models/page_household.rb +1 -1
- data/lib/nucleus_api/models/page_institution.rb +1 -1
- data/lib/nucleus_api/models/page_model.rb +1 -1
- data/lib/nucleus_api/models/page_model_asset_size.rb +1 -1
- data/lib/nucleus_api/models/page_model_comment.rb +1 -1
- data/lib/nucleus_api/models/page_model_holding.rb +1 -1
- data/lib/nucleus_api/models/page_model_transaction.rb +1 -1
- data/lib/nucleus_api/models/page_mx_merchant_res.rb +1 -1
- data/lib/nucleus_api/models/page_node.rb +1 -1
- data/lib/nucleus_api/models/page_node_relationship.rb +1 -1
- data/lib/nucleus_api/models/page_notification.rb +1 -1
- data/lib/nucleus_api/models/page_notification_client.rb +1 -1
- data/lib/nucleus_api/models/page_notification_setting.rb +1 -1
- data/lib/nucleus_api/models/page_order.rb +1 -1
- data/lib/nucleus_api/models/page_order_bulk.rb +1 -1
- data/lib/nucleus_api/models/page_order_status.rb +1 -1
- data/lib/nucleus_api/models/page_order_track.rb +1 -1
- data/lib/nucleus_api/models/page_portfolio.rb +1 -1
- data/lib/nucleus_api/models/page_portfolio_asset_size_log.rb +1 -1
- data/lib/nucleus_api/models/page_portfolio_comment.rb +1 -1
- data/lib/nucleus_api/models/page_portfolio_goal.rb +1 -1
- data/lib/nucleus_api/models/page_portfolio_holding_agg.rb +1 -1
- data/lib/nucleus_api/models/page_portfolio_holding_log.rb +1 -1
- data/lib/nucleus_api/models/page_portfolio_transaction.rb +1 -1
- data/lib/nucleus_api/models/page_question.rb +1 -1
- data/lib/nucleus_api/models/page_questionnaire.rb +1 -1
- data/lib/nucleus_api/models/page_reason_code.rb +1 -1
- data/lib/nucleus_api/models/page_risk_profile.rb +1 -1
- data/lib/nucleus_api/models/page_score.rb +1 -1
- data/lib/nucleus_api/models/page_security.rb +1 -1
- data/lib/nucleus_api/models/page_security_exclusion.rb +1 -1
- data/lib/nucleus_api/models/page_security_price.rb +1 -1
- data/lib/nucleus_api/models/page_spending_control.rb +1 -1
- data/lib/nucleus_api/models/page_stage.rb +1 -1
- data/lib/nucleus_api/models/page_transaction_code.rb +1 -1
- data/lib/nucleus_api/models/page_webhook.rb +1 -1
- data/lib/nucleus_api/models/pageable.rb +1 -1
- data/lib/nucleus_api/models/permission_vo.rb +1 -1
- data/lib/nucleus_api/models/portfolio.rb +1 -1
- data/lib/nucleus_api/models/portfolio_asset_size_log.rb +1 -1
- data/lib/nucleus_api/models/portfolio_comment.rb +1 -1
- data/lib/nucleus_api/models/portfolio_goal.rb +1 -1
- data/lib/nucleus_api/models/portfolio_goal_map.rb +1 -1
- data/lib/nucleus_api/models/portfolio_holding_agg.rb +1 -1
- data/lib/nucleus_api/models/portfolio_holding_log.rb +1 -1
- data/lib/nucleus_api/models/portfolio_transaction.rb +9 -7
- data/lib/nucleus_api/models/question.rb +1 -1
- data/lib/nucleus_api/models/questionnaire.rb +1 -1
- data/lib/nucleus_api/models/reason_code.rb +1 -1
- data/lib/nucleus_api/models/risk_profile.rb +1 -1
- data/lib/nucleus_api/models/score.rb +1 -1
- data/lib/nucleus_api/models/securities_composition.rb +1 -1
- data/lib/nucleus_api/models/securities_country.rb +1 -1
- data/lib/nucleus_api/models/security.rb +1 -1
- data/lib/nucleus_api/models/security_composition_vo.rb +1 -1
- data/lib/nucleus_api/models/security_country_vo.rb +1 -1
- data/lib/nucleus_api/models/security_exclusion.rb +1 -1
- data/lib/nucleus_api/models/security_price.rb +1 -1
- data/lib/nucleus_api/models/sort.rb +1 -1
- data/lib/nucleus_api/models/spending_control.rb +1 -1
- data/lib/nucleus_api/models/stage.rb +1 -1
- data/lib/nucleus_api/models/state.rb +1 -1
- data/lib/nucleus_api/models/statistic_resource_vo.rb +1 -1
- data/lib/nucleus_api/models/token_date_request.rb +1 -1
- data/lib/nucleus_api/models/transaction_code.rb +1 -1
- data/lib/nucleus_api/models/v_account_vo.rb +1 -1
- data/lib/nucleus_api/models/v_client_goal_view_data.rb +1 -1
- data/lib/nucleus_api/models/v_portfolio_vo.rb +1 -1
- data/lib/nucleus_api/models/webhook.rb +1 -1
- data/lib/nucleus_api/version.rb +2 -2
- data/lib/nucleus_api.rb +1 -41
- data/nucleus_api.gemspec +1 -1
- data/spec/api/account_api_spec.rb +1 -1
- data/spec/api/aggregation_account_api_spec.rb +1 -1
- data/spec/api/allocation_api_spec.rb +1 -1
- data/spec/api/benchmark_api_spec.rb +1 -1
- data/spec/api/budget_api_spec.rb +1 -1
- data/spec/api/bulk_api_spec.rb +1 -1
- data/spec/api/business_api_spec.rb +1 -1
- data/spec/api/card_api_spec.rb +1 -1
- data/spec/api/client_api_spec.rb +1 -1
- data/spec/api/decision_tree_api_spec.rb +1 -1
- data/spec/api/document_api_spec.rb +1 -1
- data/spec/api/funding_api_spec.rb +1 -1
- data/spec/api/goal_api_spec.rb +1 -1
- data/spec/api/household_api_spec.rb +1 -1
- data/spec/api/model_api_spec.rb +1 -1
- data/spec/api/order_api_spec.rb +1 -1
- data/spec/api/portfolio_api_spec.rb +1 -1
- data/spec/api/questionnaire_api_spec.rb +1 -1
- data/spec/api/resource_api_spec.rb +1 -1
- data/spec/api/risk_profile_api_spec.rb +1 -1
- data/spec/api/score_api_spec.rb +1 -1
- data/spec/api/securities_api_spec.rb +1 -1
- data/spec/api/spending_control_api_spec.rb +1 -1
- data/spec/api/utils_api_spec.rb +1 -1
- data/spec/api/webhook_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/account_allocation_mapping_spec.rb +1 -1
- data/spec/models/account_permission_vo_spec.rb +1 -1
- data/spec/models/account_portfolio_rebalance_request_spec.rb +1 -1
- data/spec/models/account_spec.rb +1 -1
- data/spec/models/account_status_spec.rb +1 -1
- data/spec/models/account_type_spec.rb +1 -1
- data/spec/models/acl_client_permission_vo_spec.rb +1 -1
- data/spec/models/aggregation_account_balance_spec.rb +1 -1
- data/spec/models/aggregation_account_holding_spec.rb +1 -1
- data/spec/models/aggregation_account_spec.rb +1 -1
- data/spec/models/aggregation_account_transaction_spec.rb +1 -1
- data/spec/models/allocation_aggregated_vo_spec.rb +1 -1
- data/spec/models/allocation_composition_aggregated_vo_spec.rb +1 -1
- data/spec/models/allocation_composition_model_holdings_vo_spec.rb +1 -1
- data/spec/models/allocation_composition_spec.rb +1 -1
- data/spec/models/allocation_node_map_spec.rb +1 -1
- data/spec/models/allocation_spec.rb +1 -1
- data/spec/models/answer_map_spec.rb +1 -1
- data/spec/models/answer_spec.rb +1 -1
- data/spec/models/application_spec.rb +1 -1
- data/spec/models/audit_log_spec.rb +1 -1
- data/spec/models/available_date_double_vo_spec.rb +1 -1
- data/spec/models/bank_credit_spec.rb +1 -1
- data/spec/models/bank_link_spec.rb +1 -1
- data/spec/models/benchmark_composition_spec.rb +1 -1
- data/spec/models/benchmark_spec.rb +1 -1
- data/spec/models/brokers_spec.rb +1 -1
- data/spec/models/budget_aggregation_account_spec.rb +1 -1
- data/spec/models/budget_object_spec.rb +1 -1
- data/spec/models/budget_spec.rb +1 -1
- data/spec/models/bulk_transaction_spec.rb +1 -1
- data/spec/models/bulk_transaction_vo_spec.rb +1 -1
- data/spec/models/business_address_spec.rb +1 -1
- data/spec/models/business_details_vo_spec.rb +1 -1
- data/spec/models/business_spec.rb +1 -1
- data/spec/models/card_address_spec.rb +1 -1
- data/spec/models/card_balance_vo_spec.rb +1 -1
- data/spec/models/card_details_vo_spec.rb +1 -1
- data/spec/models/card_program_spec.rb +1 -1
- data/spec/models/card_spec.rb +1 -1
- data/spec/models/cash_spec.rb +1 -1
- data/spec/models/check_images_spec.rb +1 -1
- data/spec/models/check_spec.rb +1 -1
- data/spec/models/client_account_mapping_spec.rb +1 -1
- data/spec/models/client_address_spec.rb +1 -1
- data/spec/models/client_business_card_vo_spec.rb +1 -1
- data/spec/models/client_business_total_card_balance_vo_spec.rb +1 -1
- data/spec/models/client_card_vo_spec.rb +1 -1
- data/spec/models/client_relationship_spec.rb +1 -1
- data/spec/models/client_response_spec.rb +1 -1
- data/spec/models/client_spec.rb +13 -1
- data/spec/models/client_status_spec.rb +1 -1
- data/spec/models/client_view_goal_data_spec.rb +1 -1
- data/spec/models/country_spec.rb +1 -1
- data/spec/models/currency_spec.rb +1 -1
- data/spec/models/date_double_vo_spec.rb +1 -1
- data/spec/models/decision_tree_co_spec.rb +1 -1
- data/spec/models/decision_tree_result_vo_spec.rb +1 -1
- data/spec/models/decision_tree_spec.rb +1 -1
- data/spec/models/document_spec.rb +1 -1
- data/spec/models/employment_spec.rb +1 -1
- data/spec/models/external_account_transfer_spec.rb +1 -1
- data/spec/models/feature_spec.rb +1 -1
- data/spec/models/feature_track_spec.rb +1 -1
- data/spec/models/funding_spec.rb +1 -1
- data/spec/models/funding_transaction_spec.rb +1 -1
- data/spec/models/fx_rate_spec.rb +1 -1
- data/spec/models/fx_rate_view_spec.rb +1 -1
- data/spec/models/goal_account_mapping_spec.rb +1 -1
- data/spec/models/goal_spec.rb +1 -1
- data/spec/models/goal_track_accounts_spec.rb +1 -1
- data/spec/models/goal_track_spec.rb +1 -1
- data/spec/models/household_spec.rb +1 -1
- data/spec/models/institution_spec.rb +1 -1
- data/spec/models/investment_spec.rb +1 -1
- data/spec/models/json_node_spec.rb +1 -1
- data/spec/models/location_spec.rb +1 -1
- data/spec/models/member_spec.rb +1 -1
- data/spec/models/merchant_category_code_spec.rb +1 -1
- data/spec/models/model_asset_size_spec.rb +1 -1
- data/spec/models/model_comment_spec.rb +1 -1
- data/spec/models/model_holding_spec.rb +1 -1
- data/spec/models/model_holding_vo_spec.rb +1 -1
- data/spec/models/model_spec.rb +1 -1
- data/spec/models/model_transaction_spec.rb +1 -1
- data/spec/models/mx_merchant_res_spec.rb +1 -1
- data/spec/models/node_relationship_spec.rb +1 -1
- data/spec/models/node_spec.rb +1 -1
- data/spec/models/notification_client_spec.rb +1 -1
- data/spec/models/notification_setting_spec.rb +1 -1
- data/spec/models/notification_spec.rb +1 -1
- data/spec/models/order_bulk_spec.rb +1 -1
- data/spec/models/order_reconcile_request_spec.rb +1 -1
- data/spec/models/order_reconcile_return_object_spec.rb +1 -1
- data/spec/models/order_spec.rb +1 -1
- data/spec/models/order_status_spec.rb +1 -1
- data/spec/models/order_track_spec.rb +1 -1
- data/spec/models/order_vo_clone_spec.rb +1 -1
- data/spec/models/ownership_spec.rb +1 -1
- data/spec/models/page_account_allocation_mapping_spec.rb +1 -1
- data/spec/models/page_account_permission_vo_spec.rb +1 -1
- data/spec/models/page_account_spec.rb +1 -1
- data/spec/models/page_account_status_spec.rb +1 -1
- data/spec/models/page_account_type_spec.rb +1 -1
- data/spec/models/page_aggregation_account_balance_spec.rb +1 -1
- data/spec/models/page_aggregation_account_holding_spec.rb +1 -1
- data/spec/models/page_aggregation_account_spec.rb +1 -1
- data/spec/models/page_aggregation_account_transaction_spec.rb +1 -1
- data/spec/models/page_allocation_composition_spec.rb +1 -1
- data/spec/models/page_allocation_spec.rb +1 -1
- data/spec/models/page_answer_spec.rb +1 -1
- data/spec/models/page_application_spec.rb +1 -1
- data/spec/models/page_audit_log_spec.rb +1 -1
- data/spec/models/page_bank_link_spec.rb +1 -1
- data/spec/models/page_benchmark_spec.rb +1 -1
- data/spec/models/page_budget_spec.rb +1 -1
- data/spec/models/page_business_spec.rb +1 -1
- data/spec/models/page_card_program_spec.rb +1 -1
- data/spec/models/page_card_spec.rb +1 -1
- data/spec/models/page_client_business_card_vo_spec.rb +1 -1
- data/spec/models/page_client_response_spec.rb +1 -1
- data/spec/models/page_client_spec.rb +1 -1
- data/spec/models/page_client_status_spec.rb +1 -1
- data/spec/models/page_customer_revenue_spec.rb +1 -1
- data/spec/models/page_decision_tree_spec.rb +1 -1
- data/spec/models/page_document_spec.rb +1 -1
- data/spec/models/page_external_account_transfer_spec.rb +1 -1
- data/spec/models/page_feature_spec.rb +1 -1
- data/spec/models/page_feature_track_spec.rb +1 -1
- data/spec/models/page_funding_spec.rb +1 -1
- data/spec/models/page_funding_transaction_spec.rb +1 -1
- data/spec/models/page_goal_spec.rb +1 -1
- data/spec/models/page_goal_track_spec.rb +1 -1
- data/spec/models/page_household_spec.rb +1 -1
- data/spec/models/page_institution_spec.rb +1 -1
- data/spec/models/page_model_asset_size_spec.rb +1 -1
- data/spec/models/page_model_comment_spec.rb +1 -1
- data/spec/models/page_model_holding_spec.rb +1 -1
- data/spec/models/page_model_spec.rb +1 -1
- data/spec/models/page_model_transaction_spec.rb +1 -1
- data/spec/models/page_mx_merchant_res_spec.rb +1 -1
- data/spec/models/page_node_relationship_spec.rb +1 -1
- data/spec/models/page_node_spec.rb +1 -1
- data/spec/models/page_notification_client_spec.rb +1 -1
- data/spec/models/page_notification_setting_spec.rb +1 -1
- data/spec/models/page_notification_spec.rb +1 -1
- data/spec/models/page_order_bulk_spec.rb +1 -1
- data/spec/models/page_order_spec.rb +1 -1
- data/spec/models/page_order_status_spec.rb +1 -1
- data/spec/models/page_order_track_spec.rb +1 -1
- data/spec/models/page_portfolio_asset_size_log_spec.rb +1 -1
- data/spec/models/page_portfolio_comment_spec.rb +1 -1
- data/spec/models/page_portfolio_goal_spec.rb +1 -1
- data/spec/models/page_portfolio_holding_agg_spec.rb +1 -1
- data/spec/models/page_portfolio_holding_log_spec.rb +1 -1
- data/spec/models/page_portfolio_spec.rb +1 -1
- data/spec/models/page_portfolio_transaction_spec.rb +1 -1
- data/spec/models/page_question_spec.rb +1 -1
- data/spec/models/page_questionnaire_spec.rb +1 -1
- data/spec/models/page_reason_code_spec.rb +1 -1
- data/spec/models/page_risk_profile_spec.rb +1 -1
- data/spec/models/page_score_spec.rb +1 -1
- data/spec/models/page_security_exclusion_spec.rb +1 -1
- data/spec/models/page_security_price_spec.rb +1 -1
- data/spec/models/page_security_spec.rb +1 -1
- data/spec/models/page_spending_control_spec.rb +1 -1
- data/spec/models/page_stage_spec.rb +1 -1
- data/spec/models/page_transaction_code_spec.rb +1 -1
- data/spec/models/page_webhook_spec.rb +1 -1
- data/spec/models/pageable_spec.rb +1 -1
- data/spec/models/permission_vo_spec.rb +1 -1
- data/spec/models/portfolio_asset_size_log_spec.rb +1 -1
- data/spec/models/portfolio_comment_spec.rb +1 -1
- data/spec/models/portfolio_goal_map_spec.rb +1 -1
- data/spec/models/portfolio_goal_spec.rb +1 -1
- data/spec/models/portfolio_holding_agg_spec.rb +1 -1
- data/spec/models/portfolio_holding_log_spec.rb +1 -1
- data/spec/models/portfolio_spec.rb +1 -1
- data/spec/models/portfolio_transaction_spec.rb +2 -2
- data/spec/models/question_spec.rb +1 -1
- data/spec/models/questionnaire_spec.rb +1 -1
- data/spec/models/reason_code_spec.rb +1 -1
- data/spec/models/risk_profile_spec.rb +1 -1
- data/spec/models/score_spec.rb +1 -1
- data/spec/models/securities_composition_spec.rb +1 -1
- data/spec/models/securities_country_spec.rb +1 -1
- data/spec/models/security_composition_vo_spec.rb +1 -1
- data/spec/models/security_country_vo_spec.rb +1 -1
- data/spec/models/security_exclusion_spec.rb +1 -1
- data/spec/models/security_price_spec.rb +1 -1
- data/spec/models/security_spec.rb +1 -1
- data/spec/models/sort_spec.rb +1 -1
- data/spec/models/spending_control_spec.rb +1 -1
- data/spec/models/stage_spec.rb +1 -1
- data/spec/models/state_spec.rb +1 -1
- data/spec/models/statistic_resource_vo_spec.rb +1 -1
- data/spec/models/token_date_request_spec.rb +1 -1
- data/spec/models/transaction_code_spec.rb +1 -1
- data/spec/models/v_account_vo_spec.rb +1 -1
- data/spec/models/v_client_goal_view_data_spec.rb +1 -1
- data/spec/models/v_portfolio_vo_spec.rb +1 -1
- data/spec/models/webhook_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +2 -119
- data/lib/nucleus_api/api/admin_client_api.rb +0 -346
- data/lib/nucleus_api/api/contact_api.rb +0 -585
- data/lib/nucleus_api/api/financial_statement_api.rb +0 -307
- data/lib/nucleus_api/api/invoice_api.rb +0 -591
- data/lib/nucleus_api/api/overflow_api.rb +0 -468
- data/lib/nucleus_api/api/roundup_api.rb +0 -468
- data/lib/nucleus_api/models/account_map.rb +0 -203
- data/lib/nucleus_api/models/admin_client.rb +0 -290
- data/lib/nucleus_api/models/aggregation_accounts_map.rb +0 -203
- data/lib/nucleus_api/models/balances.rb +0 -224
- data/lib/nucleus_api/models/bank_link_map.rb +0 -203
- data/lib/nucleus_api/models/categories_map.rb +0 -203
- data/lib/nucleus_api/models/client_credentials.rb +0 -200
- data/lib/nucleus_api/models/contact.rb +0 -356
- data/lib/nucleus_api/models/contact_address.rb +0 -269
- data/lib/nucleus_api/models/customer_revenue.rb +0 -297
- data/lib/nucleus_api/models/financial_statement.rb +0 -363
- data/lib/nucleus_api/models/funding_request_map.rb +0 -188
- data/lib/nucleus_api/models/invoice.rb +0 -473
- data/lib/nucleus_api/models/invoice_payment.rb +0 -282
- data/lib/nucleus_api/models/merchants_map.rb +0 -203
- data/lib/nucleus_api/models/overflow.rb +0 -282
- data/lib/nucleus_api/models/overflow_bank_link_map.rb +0 -213
- data/lib/nucleus_api/models/overflow_settings.rb +0 -288
- data/lib/nucleus_api/models/overflow_vo.rb +0 -204
- data/lib/nucleus_api/models/page_admin_client.rb +0 -259
- data/lib/nucleus_api/models/page_contact.rb +0 -259
- data/lib/nucleus_api/models/page_customer_revenue.rb +0 -259
- data/lib/nucleus_api/models/page_financial_statement.rb +0 -259
- data/lib/nucleus_api/models/page_invoice.rb +0 -259
- data/lib/nucleus_api/models/page_invoice_payment.rb +0 -259
- data/lib/nucleus_api/models/page_overflow.rb +0 -259
- data/lib/nucleus_api/models/page_overflow_settings.rb +0 -259
- data/lib/nucleus_api/models/page_roundup.rb +0 -259
- data/lib/nucleus_api/models/page_roundup_settings.rb +0 -259
- data/lib/nucleus_api/models/roundup.rb +0 -267
- data/lib/nucleus_api/models/roundup_co.rb +0 -233
- data/lib/nucleus_api/models/roundup_settings.rb +0 -332
- data/lib/nucleus_api/models/stat.rb +0 -204
- data/spec/api/admin_client_api_spec.rb +0 -107
- data/spec/api/contact_api_spec.rb +0 -167
- data/spec/api/financial_statement_api_spec.rb +0 -102
- data/spec/api/invoice_api_spec.rb +0 -169
- data/spec/api/overflow_api_spec.rb +0 -140
- data/spec/api/roundup_api_spec.rb +0 -140
- data/spec/models/account_map_spec.rb +0 -47
- data/spec/models/admin_client_spec.rb +0 -113
- data/spec/models/aggregation_accounts_map_spec.rb +0 -47
- data/spec/models/balances_spec.rb +0 -65
- data/spec/models/bank_link_map_spec.rb +0 -47
- data/spec/models/categories_map_spec.rb +0 -47
- data/spec/models/client_credentials_spec.rb +0 -53
- data/spec/models/contact_address_spec.rb +0 -77
- data/spec/models/contact_spec.rb +0 -143
- data/spec/models/customer_revenue_spec.rb +0 -95
- data/spec/models/financial_statement_spec.rb +0 -137
- data/spec/models/funding_request_map_spec.rb +0 -41
- data/spec/models/invoice_payment_spec.rb +0 -89
- data/spec/models/invoice_spec.rb +0 -197
- data/spec/models/line_items_spec.rb +0 -83
- data/spec/models/merchants_map_spec.rb +0 -47
- data/spec/models/overflow_bank_link_map_spec.rb +0 -53
- data/spec/models/overflow_settings_spec.rb +0 -95
- data/spec/models/overflow_spec.rb +0 -89
- data/spec/models/overflow_vo_spec.rb +0 -53
- data/spec/models/page_admin_client_spec.rb +0 -89
- data/spec/models/page_contact_spec.rb +0 -89
- data/spec/models/page_financial_statement_spec.rb +0 -89
- data/spec/models/page_invoice_payment_spec.rb +0 -89
- data/spec/models/page_invoice_spec.rb +0 -89
- data/spec/models/page_overflow_settings_spec.rb +0 -89
- data/spec/models/page_overflow_spec.rb +0 -89
- data/spec/models/page_roundup_settings_spec.rb +0 -89
- data/spec/models/page_roundup_spec.rb +0 -89
- data/spec/models/roundup_co_spec.rb +0 -65
- data/spec/models/roundup_settings_spec.rb +0 -119
- data/spec/models/roundup_spec.rb +0 -83
- data/spec/models/stat_spec.rb +0 -47
@@ -1,282 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Hydrogen Nucleus API
|
3
|
-
|
4
|
-
#The Hydrogen Nucleus API
|
5
|
-
|
6
|
-
OpenAPI spec version: 1.9.4
|
7
|
-
Contact: info@hydrogenplatform.com
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.19
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
|
15
|
-
module NucleusApi
|
16
|
-
# InvoicePayment Object
|
17
|
-
class InvoicePayment
|
18
|
-
attr_accessor :create_date
|
19
|
-
|
20
|
-
# currency_code
|
21
|
-
attr_accessor :currency_code
|
22
|
-
|
23
|
-
attr_accessor :id
|
24
|
-
|
25
|
-
# invoiceId
|
26
|
-
attr_accessor :invoice_id
|
27
|
-
|
28
|
-
# metadata
|
29
|
-
attr_accessor :metadata
|
30
|
-
|
31
|
-
# paymentAmount
|
32
|
-
attr_accessor :payment_amount
|
33
|
-
|
34
|
-
# paymentDate
|
35
|
-
attr_accessor :payment_date
|
36
|
-
|
37
|
-
attr_accessor :secondary_id
|
38
|
-
|
39
|
-
attr_accessor :update_date
|
40
|
-
|
41
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
42
|
-
def self.attribute_map
|
43
|
-
{
|
44
|
-
:'create_date' => :'create_date',
|
45
|
-
:'currency_code' => :'currency_code',
|
46
|
-
:'id' => :'id',
|
47
|
-
:'invoice_id' => :'invoice_id',
|
48
|
-
:'metadata' => :'metadata',
|
49
|
-
:'payment_amount' => :'payment_amount',
|
50
|
-
:'payment_date' => :'payment_date',
|
51
|
-
:'secondary_id' => :'secondary_id',
|
52
|
-
:'update_date' => :'update_date'
|
53
|
-
}
|
54
|
-
end
|
55
|
-
|
56
|
-
# Attribute type mapping.
|
57
|
-
def self.swagger_types
|
58
|
-
{
|
59
|
-
:'create_date' => :'DateTime',
|
60
|
-
:'currency_code' => :'String',
|
61
|
-
:'id' => :'String',
|
62
|
-
:'invoice_id' => :'String',
|
63
|
-
:'metadata' => :'Hash<String, String>',
|
64
|
-
:'payment_amount' => :'Float',
|
65
|
-
:'payment_date' => :'DateTime',
|
66
|
-
:'secondary_id' => :'String',
|
67
|
-
:'update_date' => :'DateTime'
|
68
|
-
}
|
69
|
-
end
|
70
|
-
|
71
|
-
# Initializes the object
|
72
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
73
|
-
def initialize(attributes = {})
|
74
|
-
return unless attributes.is_a?(Hash)
|
75
|
-
|
76
|
-
# convert string to symbol for hash key
|
77
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
78
|
-
|
79
|
-
if attributes.has_key?(:'create_date')
|
80
|
-
self.create_date = attributes[:'create_date']
|
81
|
-
end
|
82
|
-
|
83
|
-
if attributes.has_key?(:'currency_code')
|
84
|
-
self.currency_code = attributes[:'currency_code']
|
85
|
-
end
|
86
|
-
|
87
|
-
if attributes.has_key?(:'id')
|
88
|
-
self.id = attributes[:'id']
|
89
|
-
end
|
90
|
-
|
91
|
-
if attributes.has_key?(:'invoice_id')
|
92
|
-
self.invoice_id = attributes[:'invoice_id']
|
93
|
-
end
|
94
|
-
|
95
|
-
if attributes.has_key?(:'metadata')
|
96
|
-
if (value = attributes[:'metadata']).is_a?(Hash)
|
97
|
-
self.metadata = value
|
98
|
-
end
|
99
|
-
end
|
100
|
-
|
101
|
-
if attributes.has_key?(:'payment_amount')
|
102
|
-
self.payment_amount = attributes[:'payment_amount']
|
103
|
-
end
|
104
|
-
|
105
|
-
if attributes.has_key?(:'payment_date')
|
106
|
-
self.payment_date = attributes[:'payment_date']
|
107
|
-
end
|
108
|
-
|
109
|
-
if attributes.has_key?(:'secondary_id')
|
110
|
-
self.secondary_id = attributes[:'secondary_id']
|
111
|
-
end
|
112
|
-
|
113
|
-
if attributes.has_key?(:'update_date')
|
114
|
-
self.update_date = attributes[:'update_date']
|
115
|
-
end
|
116
|
-
end
|
117
|
-
|
118
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
119
|
-
# @return Array for valid properties with the reasons
|
120
|
-
def list_invalid_properties
|
121
|
-
invalid_properties = Array.new
|
122
|
-
if @currency_code.nil?
|
123
|
-
invalid_properties.push('invalid value for "currency_code", currency_code cannot be nil.')
|
124
|
-
end
|
125
|
-
|
126
|
-
if @invoice_id.nil?
|
127
|
-
invalid_properties.push('invalid value for "invoice_id", invoice_id cannot be nil.')
|
128
|
-
end
|
129
|
-
|
130
|
-
if @payment_amount.nil?
|
131
|
-
invalid_properties.push('invalid value for "payment_amount", payment_amount cannot be nil.')
|
132
|
-
end
|
133
|
-
|
134
|
-
if @payment_date.nil?
|
135
|
-
invalid_properties.push('invalid value for "payment_date", payment_date cannot be nil.')
|
136
|
-
end
|
137
|
-
|
138
|
-
invalid_properties
|
139
|
-
end
|
140
|
-
|
141
|
-
# Check to see if the all the properties in the model are valid
|
142
|
-
# @return true if the model is valid
|
143
|
-
def valid?
|
144
|
-
return false if @currency_code.nil?
|
145
|
-
return false if @invoice_id.nil?
|
146
|
-
return false if @payment_amount.nil?
|
147
|
-
return false if @payment_date.nil?
|
148
|
-
true
|
149
|
-
end
|
150
|
-
|
151
|
-
# Checks equality by comparing each attribute.
|
152
|
-
# @param [Object] Object to be compared
|
153
|
-
def ==(o)
|
154
|
-
return true if self.equal?(o)
|
155
|
-
self.class == o.class &&
|
156
|
-
create_date == o.create_date &&
|
157
|
-
currency_code == o.currency_code &&
|
158
|
-
id == o.id &&
|
159
|
-
invoice_id == o.invoice_id &&
|
160
|
-
metadata == o.metadata &&
|
161
|
-
payment_amount == o.payment_amount &&
|
162
|
-
payment_date == o.payment_date &&
|
163
|
-
secondary_id == o.secondary_id &&
|
164
|
-
update_date == o.update_date
|
165
|
-
end
|
166
|
-
|
167
|
-
# @see the `==` method
|
168
|
-
# @param [Object] Object to be compared
|
169
|
-
def eql?(o)
|
170
|
-
self == o
|
171
|
-
end
|
172
|
-
|
173
|
-
# Calculates hash code according to all attributes.
|
174
|
-
# @return [Fixnum] Hash code
|
175
|
-
def hash
|
176
|
-
[create_date, currency_code, id, invoice_id, metadata, payment_amount, payment_date, secondary_id, update_date].hash
|
177
|
-
end
|
178
|
-
|
179
|
-
# Builds the object from hash
|
180
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
181
|
-
# @return [Object] Returns the model itself
|
182
|
-
def build_from_hash(attributes)
|
183
|
-
self.class.swagger_types.each_pair do |key, type|
|
184
|
-
if type =~ /\AArray<(.*)>/i
|
185
|
-
# check to ensure the input is an array given that the attribute
|
186
|
-
# is documented as an array but the input is not
|
187
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
188
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
189
|
-
end
|
190
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
191
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
192
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
193
|
-
end
|
194
|
-
|
195
|
-
self
|
196
|
-
end
|
197
|
-
# Deserializes the data based on type
|
198
|
-
# @param string type Data type
|
199
|
-
# @param string value Value to be deserialized
|
200
|
-
# @return [Object] Deserialized data
|
201
|
-
def _deserialize(type, value)
|
202
|
-
case type.to_sym
|
203
|
-
when :DateTime
|
204
|
-
(value)
|
205
|
-
when :Date
|
206
|
-
(value)
|
207
|
-
when :String
|
208
|
-
value.to_s
|
209
|
-
when :Integer
|
210
|
-
value.to_i
|
211
|
-
when :Float
|
212
|
-
value.to_f
|
213
|
-
when :BOOLEAN
|
214
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
215
|
-
true
|
216
|
-
else
|
217
|
-
false
|
218
|
-
end
|
219
|
-
when :Object
|
220
|
-
# generic object (usually a Hash), return directly
|
221
|
-
value
|
222
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
223
|
-
inner_type = Regexp.last_match[:inner_type]
|
224
|
-
value.map { |v| _deserialize(inner_type, v) }
|
225
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
226
|
-
k_type = Regexp.last_match[:k_type]
|
227
|
-
v_type = Regexp.last_match[:v_type]
|
228
|
-
{}.tap do |hash|
|
229
|
-
value.each do |k, v|
|
230
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
231
|
-
end
|
232
|
-
end
|
233
|
-
else # model
|
234
|
-
temp_model = NucleusApi.const_get(type).new
|
235
|
-
temp_model.build_from_hash(value)
|
236
|
-
end
|
237
|
-
end
|
238
|
-
|
239
|
-
|
240
|
-
# Returns the string representation of the object
|
241
|
-
# @return [String] String presentation of the object
|
242
|
-
def to_s
|
243
|
-
to_hash.to_s
|
244
|
-
end
|
245
|
-
|
246
|
-
# to_body is an alias to to_hash (backward compatibility)
|
247
|
-
# @return [Hash] Returns the object in the form of hash
|
248
|
-
def to_body
|
249
|
-
to_hash
|
250
|
-
end
|
251
|
-
|
252
|
-
# Returns the object in the form of hash
|
253
|
-
# @return [Hash] Returns the object in the form of hash
|
254
|
-
def to_hash
|
255
|
-
hash = {}
|
256
|
-
self.class.attribute_map.each_pair do |attr, param|
|
257
|
-
value = self.send(attr)
|
258
|
-
hash[param] = _to_hash(value)
|
259
|
-
end
|
260
|
-
hash
|
261
|
-
end
|
262
|
-
|
263
|
-
# Outputs non-array value in the form of hash
|
264
|
-
# For object, use to_hash. Otherwise, just return the value
|
265
|
-
# @param [Object] value Any valid value
|
266
|
-
# @return [Hash] Returns the value in the form of hash
|
267
|
-
def _to_hash(value)
|
268
|
-
if value.is_a?(Array)
|
269
|
-
value.compact.map { |v| _to_hash(v) }
|
270
|
-
elsif value.is_a?(Hash)
|
271
|
-
{}.tap do |hash|
|
272
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
273
|
-
end
|
274
|
-
elsif value.respond_to? :to_hash
|
275
|
-
value.to_hash
|
276
|
-
else
|
277
|
-
value
|
278
|
-
end
|
279
|
-
end
|
280
|
-
|
281
|
-
end
|
282
|
-
end
|
@@ -1,203 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Hydrogen Nucleus API
|
3
|
-
|
4
|
-
#The Hydrogen Nucleus API
|
5
|
-
|
6
|
-
OpenAPI spec version: 1.9.4
|
7
|
-
Contact: info@hydrogenplatform.com
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.19
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
|
15
|
-
module NucleusApi
|
16
|
-
class MerchantsMap
|
17
|
-
# amount
|
18
|
-
attr_accessor :amount
|
19
|
-
|
20
|
-
# merchant
|
21
|
-
attr_accessor :merchant
|
22
|
-
|
23
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
24
|
-
def self.attribute_map
|
25
|
-
{
|
26
|
-
:'amount' => :'amount',
|
27
|
-
:'merchant' => :'merchant'
|
28
|
-
}
|
29
|
-
end
|
30
|
-
|
31
|
-
# Attribute type mapping.
|
32
|
-
def self.swagger_types
|
33
|
-
{
|
34
|
-
:'amount' => :'Integer',
|
35
|
-
:'merchant' => :'String'
|
36
|
-
}
|
37
|
-
end
|
38
|
-
|
39
|
-
# Initializes the object
|
40
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
41
|
-
def initialize(attributes = {})
|
42
|
-
return unless attributes.is_a?(Hash)
|
43
|
-
|
44
|
-
# convert string to symbol for hash key
|
45
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
46
|
-
|
47
|
-
if attributes.has_key?(:'amount')
|
48
|
-
self.amount = attributes[:'amount']
|
49
|
-
end
|
50
|
-
|
51
|
-
if attributes.has_key?(:'merchant')
|
52
|
-
self.merchant = attributes[:'merchant']
|
53
|
-
end
|
54
|
-
end
|
55
|
-
|
56
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
57
|
-
# @return Array for valid properties with the reasons
|
58
|
-
def list_invalid_properties
|
59
|
-
invalid_properties = Array.new
|
60
|
-
if @amount.nil?
|
61
|
-
invalid_properties.push('invalid value for "amount", amount cannot be nil.')
|
62
|
-
end
|
63
|
-
|
64
|
-
if @merchant.nil?
|
65
|
-
invalid_properties.push('invalid value for "merchant", merchant cannot be nil.')
|
66
|
-
end
|
67
|
-
|
68
|
-
invalid_properties
|
69
|
-
end
|
70
|
-
|
71
|
-
# Check to see if the all the properties in the model are valid
|
72
|
-
# @return true if the model is valid
|
73
|
-
def valid?
|
74
|
-
return false if @amount.nil?
|
75
|
-
return false if @merchant.nil?
|
76
|
-
true
|
77
|
-
end
|
78
|
-
|
79
|
-
# Checks equality by comparing each attribute.
|
80
|
-
# @param [Object] Object to be compared
|
81
|
-
def ==(o)
|
82
|
-
return true if self.equal?(o)
|
83
|
-
self.class == o.class &&
|
84
|
-
amount == o.amount &&
|
85
|
-
merchant == o.merchant
|
86
|
-
end
|
87
|
-
|
88
|
-
# @see the `==` method
|
89
|
-
# @param [Object] Object to be compared
|
90
|
-
def eql?(o)
|
91
|
-
self == o
|
92
|
-
end
|
93
|
-
|
94
|
-
# Calculates hash code according to all attributes.
|
95
|
-
# @return [Fixnum] Hash code
|
96
|
-
def hash
|
97
|
-
[amount, merchant].hash
|
98
|
-
end
|
99
|
-
|
100
|
-
# Builds the object from hash
|
101
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
102
|
-
# @return [Object] Returns the model itself
|
103
|
-
def build_from_hash(attributes)
|
104
|
-
self.class.swagger_types.each_pair do |key, type|
|
105
|
-
if type =~ /\AArray<(.*)>/i
|
106
|
-
# check to ensure the input is an array given that the attribute
|
107
|
-
# is documented as an array but the input is not
|
108
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
109
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
110
|
-
end
|
111
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
112
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
113
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
114
|
-
end
|
115
|
-
|
116
|
-
self
|
117
|
-
end
|
118
|
-
# Deserializes the data based on type
|
119
|
-
# @param string type Data type
|
120
|
-
# @param string value Value to be deserialized
|
121
|
-
# @return [Object] Deserialized data
|
122
|
-
def _deserialize(type, value)
|
123
|
-
case type.to_sym
|
124
|
-
when :DateTime
|
125
|
-
(value)
|
126
|
-
when :Date
|
127
|
-
(value)
|
128
|
-
when :String
|
129
|
-
value.to_s
|
130
|
-
when :Integer
|
131
|
-
value.to_i
|
132
|
-
when :Float
|
133
|
-
value.to_f
|
134
|
-
when :BOOLEAN
|
135
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
136
|
-
true
|
137
|
-
else
|
138
|
-
false
|
139
|
-
end
|
140
|
-
when :Object
|
141
|
-
# generic object (usually a Hash), return directly
|
142
|
-
value
|
143
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
144
|
-
inner_type = Regexp.last_match[:inner_type]
|
145
|
-
value.map { |v| _deserialize(inner_type, v) }
|
146
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
147
|
-
k_type = Regexp.last_match[:k_type]
|
148
|
-
v_type = Regexp.last_match[:v_type]
|
149
|
-
{}.tap do |hash|
|
150
|
-
value.each do |k, v|
|
151
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
152
|
-
end
|
153
|
-
end
|
154
|
-
else # model
|
155
|
-
temp_model = NucleusApi.const_get(type).new
|
156
|
-
temp_model.build_from_hash(value)
|
157
|
-
end
|
158
|
-
end
|
159
|
-
|
160
|
-
|
161
|
-
# Returns the string representation of the object
|
162
|
-
# @return [String] String presentation of the object
|
163
|
-
def to_s
|
164
|
-
to_hash.to_s
|
165
|
-
end
|
166
|
-
|
167
|
-
# to_body is an alias to to_hash (backward compatibility)
|
168
|
-
# @return [Hash] Returns the object in the form of hash
|
169
|
-
def to_body
|
170
|
-
to_hash
|
171
|
-
end
|
172
|
-
|
173
|
-
# Returns the object in the form of hash
|
174
|
-
# @return [Hash] Returns the object in the form of hash
|
175
|
-
def to_hash
|
176
|
-
hash = {}
|
177
|
-
self.class.attribute_map.each_pair do |attr, param|
|
178
|
-
value = self.send(attr)
|
179
|
-
hash[param] = _to_hash(value)
|
180
|
-
end
|
181
|
-
hash
|
182
|
-
end
|
183
|
-
|
184
|
-
# Outputs non-array value in the form of hash
|
185
|
-
# For object, use to_hash. Otherwise, just return the value
|
186
|
-
# @param [Object] value Any valid value
|
187
|
-
# @return [Hash] Returns the value in the form of hash
|
188
|
-
def _to_hash(value)
|
189
|
-
if value.is_a?(Array)
|
190
|
-
value.compact.map { |v| _to_hash(v) }
|
191
|
-
elsif value.is_a?(Hash)
|
192
|
-
{}.tap do |hash|
|
193
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
194
|
-
end
|
195
|
-
elsif value.respond_to? :to_hash
|
196
|
-
value.to_hash
|
197
|
-
else
|
198
|
-
value
|
199
|
-
end
|
200
|
-
end
|
201
|
-
|
202
|
-
end
|
203
|
-
end
|