apimatic-mx-apis-sdk 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +28 -0
- data/README.md +207 -0
- data/bin/console +15 -0
- data/lib/mx_platform_api/api_helper.rb +10 -0
- data/lib/mx_platform_api/apis/accounts_api.rb +619 -0
- data/lib/mx_platform_api/apis/ach_return_api.rb +115 -0
- data/lib/mx_platform_api/apis/base_api.rb +67 -0
- data/lib/mx_platform_api/apis/budgets_api.rb +212 -0
- data/lib/mx_platform_api/apis/categories_api.rb +377 -0
- data/lib/mx_platform_api/apis/goals_api.rb +223 -0
- data/lib/mx_platform_api/apis/insights_api.rb +415 -0
- data/lib/mx_platform_api/apis/institutions_api.rb +159 -0
- data/lib/mx_platform_api/apis/investment_holdings_api.rb +191 -0
- data/lib/mx_platform_api/apis/jobs_api.rb +48 -0
- data/lib/mx_platform_api/apis/managed_data_deprecated_api.rb +773 -0
- data/lib/mx_platform_api/apis/members_api.rb +639 -0
- data/lib/mx_platform_api/apis/merchants_api.rb +98 -0
- data/lib/mx_platform_api/apis/microdeposits_api.rb +219 -0
- data/lib/mx_platform_api/apis/monthly_cash_flow_profile_api.rb +75 -0
- data/lib/mx_platform_api/apis/notifications_api.rb +115 -0
- data/lib/mx_platform_api/apis/processor_token_api.rb +141 -0
- data/lib/mx_platform_api/apis/rewards_api.rb +149 -0
- data/lib/mx_platform_api/apis/spending_plan_api.rb +621 -0
- data/lib/mx_platform_api/apis/statements_api.rb +165 -0
- data/lib/mx_platform_api/apis/taggings_api.rb +184 -0
- data/lib/mx_platform_api/apis/tags_api.rb +185 -0
- data/lib/mx_platform_api/apis/transaction_rules_api.rb +163 -0
- data/lib/mx_platform_api/apis/transactions_api.rb +1223 -0
- data/lib/mx_platform_api/apis/users_api.rb +188 -0
- data/lib/mx_platform_api/apis/verifiable_credentials_api.rb +114 -0
- data/lib/mx_platform_api/apis/widgets_api.rb +135 -0
- data/lib/mx_platform_api/client.rb +225 -0
- data/lib/mx_platform_api/configuration.rb +182 -0
- data/lib/mx_platform_api/exceptions/api_exception.rb +21 -0
- data/lib/mx_platform_api/http/api_response.rb +19 -0
- data/lib/mx_platform_api/http/auth/basic_auth.rb +62 -0
- data/lib/mx_platform_api/http/auth/bearer_auth.rb +53 -0
- data/lib/mx_platform_api/http/http_call_back.rb +10 -0
- data/lib/mx_platform_api/http/http_method_enum.rb +10 -0
- data/lib/mx_platform_api/http/http_request.rb +10 -0
- data/lib/mx_platform_api/http/http_response.rb +10 -0
- data/lib/mx_platform_api/http/proxy_settings.rb +22 -0
- data/lib/mx_platform_api/logging/configuration/api_logging_configuration.rb +186 -0
- data/lib/mx_platform_api/logging/sdk_logger.rb +17 -0
- data/lib/mx_platform_api/models/account_create_request.rb +309 -0
- data/lib/mx_platform_api/models/account_create_request_body.rb +75 -0
- data/lib/mx_platform_api/models/account_number.rb +199 -0
- data/lib/mx_platform_api/models/account_number_response.rb +215 -0
- data/lib/mx_platform_api/models/account_numbers_response_body.rb +95 -0
- data/lib/mx_platform_api/models/account_owner.rb +186 -0
- data/lib/mx_platform_api/models/account_owner_response.rb +219 -0
- data/lib/mx_platform_api/models/account_owners_response_body.rb +95 -0
- data/lib/mx_platform_api/models/account_ownership.rb +45 -0
- data/lib/mx_platform_api/models/account_response.rb +814 -0
- data/lib/mx_platform_api/models/account_response_body.rb +75 -0
- data/lib/mx_platform_api/models/account_type.rb +80 -0
- data/lib/mx_platform_api/models/account_type1.rb +80 -0
- data/lib/mx_platform_api/models/account_update_request.rb +301 -0
- data/lib/mx_platform_api/models/account_update_request_body.rb +75 -0
- data/lib/mx_platform_api/models/accounts_merge_request.rb +75 -0
- data/lib/mx_platform_api/models/accounts_merge_request_body.rb +75 -0
- data/lib/mx_platform_api/models/accounts_response_body.rb +94 -0
- data/lib/mx_platform_api/models/ach_response.rb +424 -0
- data/lib/mx_platform_api/models/ach_return_create_request.rb +256 -0
- data/lib/mx_platform_api/models/ach_return_create_request_body.rb +76 -0
- data/lib/mx_platform_api/models/ach_return_response_body.rb +76 -0
- data/lib/mx_platform_api/models/ach_returns_response_body.rb +95 -0
- data/lib/mx_platform_api/models/authorization_code_request.rb +77 -0
- data/lib/mx_platform_api/models/authorization_code_request_body.rb +77 -0
- data/lib/mx_platform_api/models/authorization_code_response.rb +76 -0
- data/lib/mx_platform_api/models/authorization_code_response_body.rb +77 -0
- data/lib/mx_platform_api/models/base_model.rb +110 -0
- data/lib/mx_platform_api/models/budget_create_request.rb +115 -0
- data/lib/mx_platform_api/models/budget_create_request_body.rb +75 -0
- data/lib/mx_platform_api/models/budget_response.rb +246 -0
- data/lib/mx_platform_api/models/budget_response_body.rb +75 -0
- data/lib/mx_platform_api/models/budget_update_request.rb +96 -0
- data/lib/mx_platform_api/models/budget_update_request_body.rb +75 -0
- data/lib/mx_platform_api/models/categories_response_body.rb +95 -0
- data/lib/mx_platform_api/models/category_create_request.rb +93 -0
- data/lib/mx_platform_api/models/category_create_request_body.rb +75 -0
- data/lib/mx_platform_api/models/category_response.rb +160 -0
- data/lib/mx_platform_api/models/category_response_body.rb +75 -0
- data/lib/mx_platform_api/models/category_update_request.rb +85 -0
- data/lib/mx_platform_api/models/category_update_request_body.rb +75 -0
- data/lib/mx_platform_api/models/challenge_response.rb +159 -0
- data/lib/mx_platform_api/models/challenges_response_body.rb +95 -0
- data/lib/mx_platform_api/models/channel.rb +47 -0
- data/lib/mx_platform_api/models/classification.rb +85 -0
- data/lib/mx_platform_api/models/color_scheme.rb +43 -0
- data/lib/mx_platform_api/models/connection_status.rb +118 -0
- data/lib/mx_platform_api/models/credential_request.rb +85 -0
- data/lib/mx_platform_api/models/credential_response.rb +133 -0
- data/lib/mx_platform_api/models/credentials_response_body.rb +95 -0
- data/lib/mx_platform_api/models/credit_card_product.rb +276 -0
- data/lib/mx_platform_api/models/credit_card_product_response.rb +77 -0
- data/lib/mx_platform_api/models/data_request.rb +76 -0
- data/lib/mx_platform_api/models/date_range.rb +87 -0
- data/lib/mx_platform_api/models/date_range_category_totals_response.rb +115 -0
- data/lib/mx_platform_api/models/date_range_category_totals_response_body.rb +88 -0
- data/lib/mx_platform_api/models/deep_link_params.rb +131 -0
- data/lib/mx_platform_api/models/enhance_transaction_response.rb +371 -0
- data/lib/mx_platform_api/models/enhance_transactions_request.rb +143 -0
- data/lib/mx_platform_api/models/enhance_transactions_request_body.rb +85 -0
- data/lib/mx_platform_api/models/enhance_transactions_response_body.rb +85 -0
- data/lib/mx_platform_api/models/error.rb +106 -0
- data/lib/mx_platform_api/models/federal_insurance_status.rb +42 -0
- data/lib/mx_platform_api/models/geolocation.rb +108 -0
- data/lib/mx_platform_api/models/goal_request.rb +179 -0
- data/lib/mx_platform_api/models/goal_request_body.rb +74 -0
- data/lib/mx_platform_api/models/goal_response.rb +241 -0
- data/lib/mx_platform_api/models/goal_response_body.rb +74 -0
- data/lib/mx_platform_api/models/goal_type_name.rb +36 -0
- data/lib/mx_platform_api/models/goals_response.rb +241 -0
- data/lib/mx_platform_api/models/goals_response_body.rb +94 -0
- data/lib/mx_platform_api/models/image_option_response.rb +110 -0
- data/lib/mx_platform_api/models/insight_response.rb +338 -0
- data/lib/mx_platform_api/models/insight_response_body.rb +75 -0
- data/lib/mx_platform_api/models/insight_update_request.rb +87 -0
- data/lib/mx_platform_api/models/insight_update_request_body.rb +75 -0
- data/lib/mx_platform_api/models/insights_response_body.rb +94 -0
- data/lib/mx_platform_api/models/institution_response.rb +290 -0
- data/lib/mx_platform_api/models/institution_response_body.rb +76 -0
- data/lib/mx_platform_api/models/institutions_response_body.rb +95 -0
- data/lib/mx_platform_api/models/investment_holding_response.rb +513 -0
- data/lib/mx_platform_api/models/investment_holding_response_body.rb +77 -0
- data/lib/mx_platform_api/models/investment_holdings_deactivation.rb +85 -0
- data/lib/mx_platform_api/models/investment_holdings_response_body.rb +95 -0
- data/lib/mx_platform_api/models/iso_country_code.rb +36 -0
- data/lib/mx_platform_api/models/item_type.rb +52 -0
- data/lib/mx_platform_api/models/job_response.rb +203 -0
- data/lib/mx_platform_api/models/job_response_body.rb +74 -0
- data/lib/mx_platform_api/models/managed_account_create_request.rb +422 -0
- data/lib/mx_platform_api/models/managed_account_create_request_body.rb +75 -0
- data/lib/mx_platform_api/models/managed_account_update_request.rb +428 -0
- data/lib/mx_platform_api/models/managed_account_update_request_body.rb +75 -0
- data/lib/mx_platform_api/models/managed_member_create_request.rb +105 -0
- data/lib/mx_platform_api/models/managed_member_create_request_body.rb +75 -0
- data/lib/mx_platform_api/models/managed_member_update_request.rb +95 -0
- data/lib/mx_platform_api/models/managed_member_update_request_body.rb +75 -0
- data/lib/mx_platform_api/models/managed_transaction_create_request.rb +282 -0
- data/lib/mx_platform_api/models/managed_transaction_create_request_body.rb +77 -0
- data/lib/mx_platform_api/models/managed_transaction_update_request.rb +289 -0
- data/lib/mx_platform_api/models/managed_transaction_update_request_body.rb +77 -0
- data/lib/mx_platform_api/models/member_create_request.rb +154 -0
- data/lib/mx_platform_api/models/member_create_request_body.rb +152 -0
- data/lib/mx_platform_api/models/member_elements.rb +96 -0
- data/lib/mx_platform_api/models/member_response.rb +406 -0
- data/lib/mx_platform_api/models/member_response_body.rb +75 -0
- data/lib/mx_platform_api/models/member_response_with_job_error.rb +406 -0
- data/lib/mx_platform_api/models/member_response_with_job_error_body.rb +75 -0
- data/lib/mx_platform_api/models/member_resume_request.rb +85 -0
- data/lib/mx_platform_api/models/member_resume_request_body.rb +75 -0
- data/lib/mx_platform_api/models/member_status_response.rb +236 -0
- data/lib/mx_platform_api/models/member_status_response_body.rb +75 -0
- data/lib/mx_platform_api/models/member_update_request.rb +133 -0
- data/lib/mx_platform_api/models/member_update_request_body.rb +75 -0
- data/lib/mx_platform_api/models/members_response_body.rb +94 -0
- data/lib/mx_platform_api/models/merchant.rb +105 -0
- data/lib/mx_platform_api/models/merchant_location_response.rb +208 -0
- data/lib/mx_platform_api/models/merchant_location_response_body.rb +77 -0
- data/lib/mx_platform_api/models/merchant_response.rb +136 -0
- data/lib/mx_platform_api/models/merchant_response_body.rb +75 -0
- data/lib/mx_platform_api/models/merchants_response_body.rb +95 -0
- data/lib/mx_platform_api/models/micro_deposit.rb +223 -0
- data/lib/mx_platform_api/models/microdeposit_elements.rb +141 -0
- data/lib/mx_platform_api/models/microdeposit_request_body.rb +77 -0
- data/lib/mx_platform_api/models/microdeposit_response.rb +149 -0
- data/lib/mx_platform_api/models/microdeposit_response_body.rb +85 -0
- data/lib/mx_platform_api/models/microdeposit_verify_request.rb +88 -0
- data/lib/mx_platform_api/models/microdeposit_verify_request_body.rb +77 -0
- data/lib/mx_platform_api/models/microdeposits_response_body.rb +95 -0
- data/lib/mx_platform_api/models/monthly_account_balance.rb +123 -0
- data/lib/mx_platform_api/models/monthly_account_balances_response_body.rb +85 -0
- data/lib/mx_platform_api/models/monthly_cash_flow_profile_request.rb +95 -0
- data/lib/mx_platform_api/models/monthly_cash_flow_profile_request_body.rb +81 -0
- data/lib/mx_platform_api/models/monthly_cash_flow_response.rb +157 -0
- data/lib/mx_platform_api/models/monthly_cash_flow_response_body.rb +81 -0
- data/lib/mx_platform_api/models/notification_request.rb +83 -0
- data/lib/mx_platform_api/models/notification_request_body.rb +76 -0
- data/lib/mx_platform_api/models/notification_response.rb +204 -0
- data/lib/mx_platform_api/models/notification_response_body.rb +76 -0
- data/lib/mx_platform_api/models/notifications_response_body.rb +85 -0
- data/lib/mx_platform_api/models/oauth_window_response.rb +91 -0
- data/lib/mx_platform_api/models/oauth_window_response_body.rb +75 -0
- data/lib/mx_platform_api/models/option_response.rb +99 -0
- data/lib/mx_platform_api/models/pagination_response.rb +106 -0
- data/lib/mx_platform_api/models/parent_class.rb +84 -0
- data/lib/mx_platform_api/models/payment_account.rb +183 -0
- data/lib/mx_platform_api/models/payment_account1.rb +213 -0
- data/lib/mx_platform_api/models/payment_account_body.rb +77 -0
- data/lib/mx_platform_api/models/processor_account_number.rb +168 -0
- data/lib/mx_platform_api/models/processor_account_number_body.rb +85 -0
- data/lib/mx_platform_api/models/processor_owner.rb +155 -0
- data/lib/mx_platform_api/models/processor_owner_body.rb +95 -0
- data/lib/mx_platform_api/models/property_type.rb +69 -0
- data/lib/mx_platform_api/models/recurrence_type.rb +26 -0
- data/lib/mx_platform_api/models/repeating_transaction.rb +102 -0
- data/lib/mx_platform_api/models/repeating_transaction_response.rb +203 -0
- data/lib/mx_platform_api/models/repeating_transaction_type.rb +44 -0
- data/lib/mx_platform_api/models/repeating_transactions_response_body.rb +85 -0
- data/lib/mx_platform_api/models/reposition_request.rb +82 -0
- data/lib/mx_platform_api/models/reposition_request_body.rb +84 -0
- data/lib/mx_platform_api/models/reposition_response_body.rb +84 -0
- data/lib/mx_platform_api/models/reward.rb +187 -0
- data/lib/mx_platform_api/models/reward_elements.rb +156 -0
- data/lib/mx_platform_api/models/reward_response_body.rb +75 -0
- data/lib/mx_platform_api/models/rewards_response_body.rb +94 -0
- data/lib/mx_platform_api/models/scheduled_payment_response.rb +208 -0
- data/lib/mx_platform_api/models/scheduled_payments_response_body.rb +95 -0
- data/lib/mx_platform_api/models/spending_plan_account_response.rb +142 -0
- data/lib/mx_platform_api/models/spending_plan_accounts_response.rb +95 -0
- data/lib/mx_platform_api/models/spending_plan_iteration_item_create_request_body.rb +124 -0
- data/lib/mx_platform_api/models/spending_plan_iteration_item_response.rb +224 -0
- data/lib/mx_platform_api/models/spending_plan_iteration_items_response_body.rb +95 -0
- data/lib/mx_platform_api/models/spending_plan_iteration_response.rb +162 -0
- data/lib/mx_platform_api/models/spending_plan_iterations_response.rb +95 -0
- data/lib/mx_platform_api/models/spending_plan_response.rb +129 -0
- data/lib/mx_platform_api/models/spending_plans_response_body.rb +95 -0
- data/lib/mx_platform_api/models/split_transaction_request.rb +106 -0
- data/lib/mx_platform_api/models/split_transaction_request_body.rb +75 -0
- data/lib/mx_platform_api/models/split_transactions_response_body.rb +85 -0
- data/lib/mx_platform_api/models/statement_response.rb +157 -0
- data/lib/mx_platform_api/models/statement_response_body.rb +76 -0
- data/lib/mx_platform_api/models/statements_response_body.rb +95 -0
- data/lib/mx_platform_api/models/status.rb +36 -0
- data/lib/mx_platform_api/models/style.rb +74 -0
- data/lib/mx_platform_api/models/supported_product.rb +56 -0
- data/lib/mx_platform_api/models/supported_product1.rb +52 -0
- data/lib/mx_platform_api/models/tag_create_request.rb +72 -0
- data/lib/mx_platform_api/models/tag_create_request_body.rb +74 -0
- data/lib/mx_platform_api/models/tag_response.rb +99 -0
- data/lib/mx_platform_api/models/tag_response_body.rb +74 -0
- data/lib/mx_platform_api/models/tag_update_request.rb +72 -0
- data/lib/mx_platform_api/models/tag_update_request_body.rb +74 -0
- data/lib/mx_platform_api/models/tagging_create_request.rb +83 -0
- data/lib/mx_platform_api/models/tagging_create_request_body.rb +75 -0
- data/lib/mx_platform_api/models/tagging_response.rb +130 -0
- data/lib/mx_platform_api/models/tagging_response_body.rb +75 -0
- data/lib/mx_platform_api/models/tagging_update_request.rb +73 -0
- data/lib/mx_platform_api/models/tagging_update_request_body.rb +75 -0
- data/lib/mx_platform_api/models/taggings_response_body.rb +94 -0
- data/lib/mx_platform_api/models/tags_response_body.rb +94 -0
- data/lib/mx_platform_api/models/token_request_body.rb +75 -0
- data/lib/mx_platform_api/models/token_response.rb +114 -0
- data/lib/mx_platform_api/models/token_response_body.rb +84 -0
- data/lib/mx_platform_api/models/track_type_name.rb +44 -0
- data/lib/mx_platform_api/models/transaction_create_request.rb +192 -0
- data/lib/mx_platform_api/models/transaction_create_request_body.rb +76 -0
- data/lib/mx_platform_api/models/transaction_create_response_body.rb +595 -0
- data/lib/mx_platform_api/models/transaction_includes_response.rb +643 -0
- data/lib/mx_platform_api/models/transaction_response.rb +597 -0
- data/lib/mx_platform_api/models/transaction_response_body.rb +76 -0
- data/lib/mx_platform_api/models/transaction_rule_create_request.rb +98 -0
- data/lib/mx_platform_api/models/transaction_rule_create_request_body.rb +77 -0
- data/lib/mx_platform_api/models/transaction_rule_response.rb +152 -0
- data/lib/mx_platform_api/models/transaction_rule_response_body.rb +77 -0
- data/lib/mx_platform_api/models/transaction_rule_update_request.rb +103 -0
- data/lib/mx_platform_api/models/transaction_rule_update_request_body.rb +77 -0
- data/lib/mx_platform_api/models/transaction_rules_response_body.rb +95 -0
- data/lib/mx_platform_api/models/transaction_type.rb +36 -0
- data/lib/mx_platform_api/models/transaction_update_request.rb +74 -0
- data/lib/mx_platform_api/models/transaction_update_request_body.rb +76 -0
- data/lib/mx_platform_api/models/transactions_response_body.rb +95 -0
- data/lib/mx_platform_api/models/transactions_response_body_includes.rb +95 -0
- data/lib/mx_platform_api/models/type.rb +36 -0
- data/lib/mx_platform_api/models/update_goal_request.rb +185 -0
- data/lib/mx_platform_api/models/update_goal_request_body.rb +74 -0
- data/lib/mx_platform_api/models/use_case.rb +36 -0
- data/lib/mx_platform_api/models/user_create_request.rb +105 -0
- data/lib/mx_platform_api/models/user_create_request_body.rb +74 -0
- data/lib/mx_platform_api/models/user_response.rb +119 -0
- data/lib/mx_platform_api/models/user_response_body.rb +74 -0
- data/lib/mx_platform_api/models/user_update_request.rb +105 -0
- data/lib/mx_platform_api/models/user_update_request_body.rb +74 -0
- data/lib/mx_platform_api/models/users_response_body.rb +94 -0
- data/lib/mx_platform_api/models/users_widget_urls_request.rb +76 -0
- data/lib/mx_platform_api/models/vc_response.rb +77 -0
- data/lib/mx_platform_api/models/widget_request.rb +466 -0
- data/lib/mx_platform_api/models/widget_response.rb +100 -0
- data/lib/mx_platform_api/models/widget_response_body.rb +76 -0
- data/lib/mx_platform_api/models/widget_type.rb +149 -0
- data/lib/mx_platform_api/utilities/date_time_helper.rb +11 -0
- data/lib/mx_platform_api/utilities/file_wrapper.rb +28 -0
- data/lib/mx_platform_api.rb +313 -0
- metadata +370 -0
|
@@ -0,0 +1,513 @@
|
|
|
1
|
+
# mx_platform_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module MxPlatformApi
|
|
7
|
+
# InvestmentHoldingResponse Model.
|
|
8
|
+
class InvestmentHoldingResponse < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# The unique identifier for an account. Defined by MX.
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :account_guid
|
|
15
|
+
|
|
16
|
+
# The original value of an asset for tax purposes, usually the purchase
|
|
17
|
+
# price, used to calculate capital gains or losses. Accumulated price.
|
|
18
|
+
# @return [Float]
|
|
19
|
+
attr_accessor :cost_basis
|
|
20
|
+
|
|
21
|
+
# The rate of return the bonds coupon rate generates.
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :coupon_yield
|
|
24
|
+
|
|
25
|
+
# The three-character ISO 4217 currency code, for example, `USD`.
|
|
26
|
+
# @return [String]
|
|
27
|
+
attr_accessor :currency_code
|
|
28
|
+
|
|
29
|
+
# The present market price of a single unit of the holding (for example,
|
|
30
|
+
# stock price per share).
|
|
31
|
+
# @return [Float]
|
|
32
|
+
attr_accessor :current_price
|
|
33
|
+
|
|
34
|
+
# The daily change in the `current_price` of the holding since the previous
|
|
35
|
+
# trading day.
|
|
36
|
+
# @return [Float]
|
|
37
|
+
attr_accessor :daily_change
|
|
38
|
+
|
|
39
|
+
# A brief description of the holding, such as the company name for stocks or
|
|
40
|
+
# the bond type for bonds.
|
|
41
|
+
# @return [String]
|
|
42
|
+
attr_accessor :description
|
|
43
|
+
|
|
44
|
+
# The expiration date associated with the holding.
|
|
45
|
+
# @return [String]
|
|
46
|
+
attr_accessor :expiration
|
|
47
|
+
|
|
48
|
+
# The nominal value of a bond or fixed-income security, paid to the holder
|
|
49
|
+
# at maturity.
|
|
50
|
+
# @return [Float]
|
|
51
|
+
attr_accessor :face_value
|
|
52
|
+
|
|
53
|
+
# The frequency of the interest paid on the bond (i.e. Annually, Monthly,
|
|
54
|
+
# etc.)
|
|
55
|
+
# @return [String]
|
|
56
|
+
attr_accessor :frequency
|
|
57
|
+
|
|
58
|
+
# The unique identifier for the holding. Defined by MX.
|
|
59
|
+
# @return [String]
|
|
60
|
+
attr_accessor :guid
|
|
61
|
+
|
|
62
|
+
# The current market value of the holding, calculated as the current price
|
|
63
|
+
# times the number of units (shares) owned.
|
|
64
|
+
# @return [Float]
|
|
65
|
+
attr_accessor :market_value
|
|
66
|
+
|
|
67
|
+
# The maturity date associated with the holding.
|
|
68
|
+
# @return [String]
|
|
69
|
+
attr_accessor :maturity_date
|
|
70
|
+
|
|
71
|
+
# The percent change in the `current_price` of the holding compared to a
|
|
72
|
+
# previous time period. It is the percentage change that reflects the
|
|
73
|
+
# `daily_change`.
|
|
74
|
+
# @return [Float]
|
|
75
|
+
attr_accessor :percentage_change
|
|
76
|
+
|
|
77
|
+
# The average price paid for the holding.
|
|
78
|
+
# @return [Float]
|
|
79
|
+
attr_accessor :purchase_price
|
|
80
|
+
|
|
81
|
+
# The number of units of the holding owned (for example, number of shares of
|
|
82
|
+
# stock).
|
|
83
|
+
# @return [String]
|
|
84
|
+
attr_accessor :quantity
|
|
85
|
+
|
|
86
|
+
# The interest on the bond, subject to determining the payout amount of the
|
|
87
|
+
# bond.
|
|
88
|
+
# @return [Float]
|
|
89
|
+
attr_accessor :rate
|
|
90
|
+
|
|
91
|
+
# The strike price associated to the option.
|
|
92
|
+
# @return [Float]
|
|
93
|
+
attr_accessor :strike_price
|
|
94
|
+
|
|
95
|
+
# The ticker symbol or unique identifier of the holding, used in stock
|
|
96
|
+
# exchanges.
|
|
97
|
+
# @return [String]
|
|
98
|
+
attr_accessor :symbol
|
|
99
|
+
|
|
100
|
+
# The length of time until the bond's principal amount is due to be repaid.
|
|
101
|
+
# It is the period from when the bond is issued until it reaches its
|
|
102
|
+
# maturity date.
|
|
103
|
+
# @return [String]
|
|
104
|
+
attr_accessor :term
|
|
105
|
+
|
|
106
|
+
# The unrealized gain/loss amount for today.
|
|
107
|
+
# @return [Float]
|
|
108
|
+
attr_accessor :today_ugl_amount
|
|
109
|
+
|
|
110
|
+
# The unrealized gain/loss percentage for today.
|
|
111
|
+
# @return [Float]
|
|
112
|
+
attr_accessor :today_ugl_percentage
|
|
113
|
+
|
|
114
|
+
# The total unrealized gain/loss amount for an investment.
|
|
115
|
+
# @return [Float]
|
|
116
|
+
attr_accessor :total_ugl_amount
|
|
117
|
+
|
|
118
|
+
# The total unrealized gain/loss for the holding since it was acquired.
|
|
119
|
+
# @return [Float]
|
|
120
|
+
attr_accessor :total_ugl_percentage
|
|
121
|
+
|
|
122
|
+
# The number of units (for example, shares) of the holding that are not yet
|
|
123
|
+
# vested or owned outright by the holder.
|
|
124
|
+
# @return [Float]
|
|
125
|
+
attr_accessor :unvested_quantity
|
|
126
|
+
|
|
127
|
+
# The value of the portion of the holding that is unvested.
|
|
128
|
+
# @return [Float]
|
|
129
|
+
attr_accessor :unvested_value
|
|
130
|
+
|
|
131
|
+
# The unique identifier for the user. Defined by MX.
|
|
132
|
+
# @return [String]
|
|
133
|
+
attr_accessor :user_guid
|
|
134
|
+
|
|
135
|
+
# The number of units (for example, shares) of the holding that are vested
|
|
136
|
+
# and fully owned by the holder.
|
|
137
|
+
# @return [Float]
|
|
138
|
+
attr_accessor :vested_quantity
|
|
139
|
+
|
|
140
|
+
# The value of the portion of the holding that is vested and fully owned by
|
|
141
|
+
# the holder.
|
|
142
|
+
# @return [Float]
|
|
143
|
+
attr_accessor :vested_value
|
|
144
|
+
|
|
145
|
+
# The date and time the investment holding was created, represented in ISO
|
|
146
|
+
# 8601 format with a timestamp.
|
|
147
|
+
# @return [String]
|
|
148
|
+
attr_accessor :created_at
|
|
149
|
+
|
|
150
|
+
# The date and time when the current price was last updated, represented in
|
|
151
|
+
# ISO 8601 format with a timestamp.
|
|
152
|
+
# @return [String]
|
|
153
|
+
attr_accessor :current_price_as_of
|
|
154
|
+
|
|
155
|
+
# The date on which a security was issued or made available for sale.
|
|
156
|
+
# @return [String]
|
|
157
|
+
attr_accessor :issue_date
|
|
158
|
+
|
|
159
|
+
# The date from which the vesting schedule for a holding begins.
|
|
160
|
+
# @return [String]
|
|
161
|
+
attr_accessor :vesting_start_date
|
|
162
|
+
|
|
163
|
+
# The date from which the vesting schedule for a holding ends.
|
|
164
|
+
# @return [String]
|
|
165
|
+
attr_accessor :vesting_end_date
|
|
166
|
+
|
|
167
|
+
# States whether the option is a `PUT` or `CALL`.
|
|
168
|
+
# @return [String]
|
|
169
|
+
attr_accessor :put_or_call
|
|
170
|
+
|
|
171
|
+
# The type of investment (e.g., equity, fixed income, mutual fund, etc.)
|
|
172
|
+
# @return [String]
|
|
173
|
+
attr_accessor :holding_type
|
|
174
|
+
|
|
175
|
+
# The unit type of the term associated to the bond. (Year, Month, etc.)
|
|
176
|
+
# @return [String]
|
|
177
|
+
attr_accessor :term_unit
|
|
178
|
+
|
|
179
|
+
# A mapping from model property names to API property names.
|
|
180
|
+
def self.names
|
|
181
|
+
@_hash = {} if @_hash.nil?
|
|
182
|
+
@_hash['account_guid'] = 'account_guid'
|
|
183
|
+
@_hash['cost_basis'] = 'cost_basis'
|
|
184
|
+
@_hash['coupon_yield'] = 'coupon_yield'
|
|
185
|
+
@_hash['currency_code'] = 'currency_code'
|
|
186
|
+
@_hash['current_price'] = 'current_price'
|
|
187
|
+
@_hash['daily_change'] = 'daily_change'
|
|
188
|
+
@_hash['description'] = 'description'
|
|
189
|
+
@_hash['expiration'] = 'expiration'
|
|
190
|
+
@_hash['face_value'] = 'face_value'
|
|
191
|
+
@_hash['frequency'] = 'frequency'
|
|
192
|
+
@_hash['guid'] = 'guid'
|
|
193
|
+
@_hash['market_value'] = 'market_value'
|
|
194
|
+
@_hash['maturity_date'] = 'maturity_date'
|
|
195
|
+
@_hash['percentage_change'] = 'percentage_change'
|
|
196
|
+
@_hash['purchase_price'] = 'purchase_price'
|
|
197
|
+
@_hash['quantity'] = 'quantity'
|
|
198
|
+
@_hash['rate'] = 'rate'
|
|
199
|
+
@_hash['strike_price'] = 'strike_price'
|
|
200
|
+
@_hash['symbol'] = 'symbol'
|
|
201
|
+
@_hash['term'] = 'term'
|
|
202
|
+
@_hash['today_ugl_amount'] = 'today_ugl_amount'
|
|
203
|
+
@_hash['today_ugl_percentage'] = 'today_ugl_percentage'
|
|
204
|
+
@_hash['total_ugl_amount'] = 'total_ugl_amount'
|
|
205
|
+
@_hash['total_ugl_percentage'] = 'total_ugl_percentage'
|
|
206
|
+
@_hash['unvested_quantity'] = 'unvested_quantity'
|
|
207
|
+
@_hash['unvested_value'] = 'unvested_value'
|
|
208
|
+
@_hash['user_guid'] = 'user_guid'
|
|
209
|
+
@_hash['vested_quantity'] = 'vested_quantity'
|
|
210
|
+
@_hash['vested_value'] = 'vested_value'
|
|
211
|
+
@_hash['created_at'] = 'created_at'
|
|
212
|
+
@_hash['current_price_as_of'] = 'current_price_as_of'
|
|
213
|
+
@_hash['issue_date'] = 'issue_date'
|
|
214
|
+
@_hash['vesting_start_date'] = 'vesting_start_date'
|
|
215
|
+
@_hash['vesting_end_date'] = 'vesting_end_date'
|
|
216
|
+
@_hash['put_or_call'] = 'put_or_call'
|
|
217
|
+
@_hash['holding_type'] = 'holding_type'
|
|
218
|
+
@_hash['term_unit'] = 'term_unit'
|
|
219
|
+
@_hash
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
# An array for optional fields
|
|
223
|
+
def self.optionals
|
|
224
|
+
%w[
|
|
225
|
+
account_guid
|
|
226
|
+
cost_basis
|
|
227
|
+
coupon_yield
|
|
228
|
+
currency_code
|
|
229
|
+
current_price
|
|
230
|
+
daily_change
|
|
231
|
+
description
|
|
232
|
+
expiration
|
|
233
|
+
face_value
|
|
234
|
+
frequency
|
|
235
|
+
guid
|
|
236
|
+
market_value
|
|
237
|
+
maturity_date
|
|
238
|
+
percentage_change
|
|
239
|
+
purchase_price
|
|
240
|
+
quantity
|
|
241
|
+
rate
|
|
242
|
+
strike_price
|
|
243
|
+
symbol
|
|
244
|
+
term
|
|
245
|
+
today_ugl_amount
|
|
246
|
+
today_ugl_percentage
|
|
247
|
+
total_ugl_amount
|
|
248
|
+
total_ugl_percentage
|
|
249
|
+
unvested_quantity
|
|
250
|
+
unvested_value
|
|
251
|
+
user_guid
|
|
252
|
+
vested_quantity
|
|
253
|
+
vested_value
|
|
254
|
+
created_at
|
|
255
|
+
current_price_as_of
|
|
256
|
+
issue_date
|
|
257
|
+
vesting_start_date
|
|
258
|
+
vesting_end_date
|
|
259
|
+
put_or_call
|
|
260
|
+
holding_type
|
|
261
|
+
term_unit
|
|
262
|
+
]
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
# An array for nullable fields
|
|
266
|
+
def self.nullables
|
|
267
|
+
%w[
|
|
268
|
+
cost_basis
|
|
269
|
+
coupon_yield
|
|
270
|
+
currency_code
|
|
271
|
+
current_price
|
|
272
|
+
daily_change
|
|
273
|
+
description
|
|
274
|
+
expiration
|
|
275
|
+
face_value
|
|
276
|
+
frequency
|
|
277
|
+
guid
|
|
278
|
+
market_value
|
|
279
|
+
maturity_date
|
|
280
|
+
percentage_change
|
|
281
|
+
purchase_price
|
|
282
|
+
quantity
|
|
283
|
+
rate
|
|
284
|
+
strike_price
|
|
285
|
+
symbol
|
|
286
|
+
term
|
|
287
|
+
today_ugl_amount
|
|
288
|
+
today_ugl_percentage
|
|
289
|
+
total_ugl_amount
|
|
290
|
+
total_ugl_percentage
|
|
291
|
+
unvested_quantity
|
|
292
|
+
unvested_value
|
|
293
|
+
user_guid
|
|
294
|
+
vested_quantity
|
|
295
|
+
vested_value
|
|
296
|
+
created_at
|
|
297
|
+
current_price_as_of
|
|
298
|
+
issue_date
|
|
299
|
+
vesting_start_date
|
|
300
|
+
vesting_end_date
|
|
301
|
+
put_or_call
|
|
302
|
+
holding_type
|
|
303
|
+
term_unit
|
|
304
|
+
]
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
def initialize(account_guid: SKIP, cost_basis: SKIP, coupon_yield: SKIP,
|
|
308
|
+
currency_code: SKIP, current_price: SKIP, daily_change: SKIP,
|
|
309
|
+
description: SKIP, expiration: SKIP, face_value: SKIP,
|
|
310
|
+
frequency: SKIP, guid: SKIP, market_value: SKIP,
|
|
311
|
+
maturity_date: SKIP, percentage_change: SKIP,
|
|
312
|
+
purchase_price: SKIP, quantity: SKIP, rate: SKIP,
|
|
313
|
+
strike_price: SKIP, symbol: SKIP, term: SKIP,
|
|
314
|
+
today_ugl_amount: SKIP, today_ugl_percentage: SKIP,
|
|
315
|
+
total_ugl_amount: SKIP, total_ugl_percentage: SKIP,
|
|
316
|
+
unvested_quantity: SKIP, unvested_value: SKIP,
|
|
317
|
+
user_guid: SKIP, vested_quantity: SKIP, vested_value: SKIP,
|
|
318
|
+
created_at: SKIP, current_price_as_of: SKIP,
|
|
319
|
+
issue_date: SKIP, vesting_start_date: SKIP,
|
|
320
|
+
vesting_end_date: SKIP, put_or_call: SKIP,
|
|
321
|
+
holding_type: SKIP, term_unit: SKIP,
|
|
322
|
+
additional_properties: nil)
|
|
323
|
+
# Add additional model properties to the instance
|
|
324
|
+
additional_properties = {} if additional_properties.nil?
|
|
325
|
+
|
|
326
|
+
@account_guid = account_guid unless account_guid == SKIP
|
|
327
|
+
@cost_basis = cost_basis unless cost_basis == SKIP
|
|
328
|
+
@coupon_yield = coupon_yield unless coupon_yield == SKIP
|
|
329
|
+
@currency_code = currency_code unless currency_code == SKIP
|
|
330
|
+
@current_price = current_price unless current_price == SKIP
|
|
331
|
+
@daily_change = daily_change unless daily_change == SKIP
|
|
332
|
+
@description = description unless description == SKIP
|
|
333
|
+
@expiration = expiration unless expiration == SKIP
|
|
334
|
+
@face_value = face_value unless face_value == SKIP
|
|
335
|
+
@frequency = frequency unless frequency == SKIP
|
|
336
|
+
@guid = guid unless guid == SKIP
|
|
337
|
+
@market_value = market_value unless market_value == SKIP
|
|
338
|
+
@maturity_date = maturity_date unless maturity_date == SKIP
|
|
339
|
+
@percentage_change = percentage_change unless percentage_change == SKIP
|
|
340
|
+
@purchase_price = purchase_price unless purchase_price == SKIP
|
|
341
|
+
@quantity = quantity unless quantity == SKIP
|
|
342
|
+
@rate = rate unless rate == SKIP
|
|
343
|
+
@strike_price = strike_price unless strike_price == SKIP
|
|
344
|
+
@symbol = symbol unless symbol == SKIP
|
|
345
|
+
@term = term unless term == SKIP
|
|
346
|
+
@today_ugl_amount = today_ugl_amount unless today_ugl_amount == SKIP
|
|
347
|
+
@today_ugl_percentage = today_ugl_percentage unless today_ugl_percentage == SKIP
|
|
348
|
+
@total_ugl_amount = total_ugl_amount unless total_ugl_amount == SKIP
|
|
349
|
+
@total_ugl_percentage = total_ugl_percentage unless total_ugl_percentage == SKIP
|
|
350
|
+
@unvested_quantity = unvested_quantity unless unvested_quantity == SKIP
|
|
351
|
+
@unvested_value = unvested_value unless unvested_value == SKIP
|
|
352
|
+
@user_guid = user_guid unless user_guid == SKIP
|
|
353
|
+
@vested_quantity = vested_quantity unless vested_quantity == SKIP
|
|
354
|
+
@vested_value = vested_value unless vested_value == SKIP
|
|
355
|
+
@created_at = created_at unless created_at == SKIP
|
|
356
|
+
@current_price_as_of = current_price_as_of unless current_price_as_of == SKIP
|
|
357
|
+
@issue_date = issue_date unless issue_date == SKIP
|
|
358
|
+
@vesting_start_date = vesting_start_date unless vesting_start_date == SKIP
|
|
359
|
+
@vesting_end_date = vesting_end_date unless vesting_end_date == SKIP
|
|
360
|
+
@put_or_call = put_or_call unless put_or_call == SKIP
|
|
361
|
+
@holding_type = holding_type unless holding_type == SKIP
|
|
362
|
+
@term_unit = term_unit unless term_unit == SKIP
|
|
363
|
+
@additional_properties = additional_properties
|
|
364
|
+
end
|
|
365
|
+
|
|
366
|
+
# Creates an instance of the object from a hash.
|
|
367
|
+
def self.from_hash(hash)
|
|
368
|
+
return nil unless hash
|
|
369
|
+
|
|
370
|
+
# Extract variables from the hash.
|
|
371
|
+
account_guid = hash.key?('account_guid') ? hash['account_guid'] : SKIP
|
|
372
|
+
cost_basis = hash.key?('cost_basis') ? hash['cost_basis'] : SKIP
|
|
373
|
+
coupon_yield = hash.key?('coupon_yield') ? hash['coupon_yield'] : SKIP
|
|
374
|
+
currency_code = hash.key?('currency_code') ? hash['currency_code'] : SKIP
|
|
375
|
+
current_price = hash.key?('current_price') ? hash['current_price'] : SKIP
|
|
376
|
+
daily_change = hash.key?('daily_change') ? hash['daily_change'] : SKIP
|
|
377
|
+
description = hash.key?('description') ? hash['description'] : SKIP
|
|
378
|
+
expiration = hash.key?('expiration') ? hash['expiration'] : SKIP
|
|
379
|
+
face_value = hash.key?('face_value') ? hash['face_value'] : SKIP
|
|
380
|
+
frequency = hash.key?('frequency') ? hash['frequency'] : SKIP
|
|
381
|
+
guid = hash.key?('guid') ? hash['guid'] : SKIP
|
|
382
|
+
market_value = hash.key?('market_value') ? hash['market_value'] : SKIP
|
|
383
|
+
maturity_date = hash.key?('maturity_date') ? hash['maturity_date'] : SKIP
|
|
384
|
+
percentage_change =
|
|
385
|
+
hash.key?('percentage_change') ? hash['percentage_change'] : SKIP
|
|
386
|
+
purchase_price =
|
|
387
|
+
hash.key?('purchase_price') ? hash['purchase_price'] : SKIP
|
|
388
|
+
quantity = hash.key?('quantity') ? hash['quantity'] : SKIP
|
|
389
|
+
rate = hash.key?('rate') ? hash['rate'] : SKIP
|
|
390
|
+
strike_price = hash.key?('strike_price') ? hash['strike_price'] : SKIP
|
|
391
|
+
symbol = hash.key?('symbol') ? hash['symbol'] : SKIP
|
|
392
|
+
term = hash.key?('term') ? hash['term'] : SKIP
|
|
393
|
+
today_ugl_amount =
|
|
394
|
+
hash.key?('today_ugl_amount') ? hash['today_ugl_amount'] : SKIP
|
|
395
|
+
today_ugl_percentage =
|
|
396
|
+
hash.key?('today_ugl_percentage') ? hash['today_ugl_percentage'] : SKIP
|
|
397
|
+
total_ugl_amount =
|
|
398
|
+
hash.key?('total_ugl_amount') ? hash['total_ugl_amount'] : SKIP
|
|
399
|
+
total_ugl_percentage =
|
|
400
|
+
hash.key?('total_ugl_percentage') ? hash['total_ugl_percentage'] : SKIP
|
|
401
|
+
unvested_quantity =
|
|
402
|
+
hash.key?('unvested_quantity') ? hash['unvested_quantity'] : SKIP
|
|
403
|
+
unvested_value =
|
|
404
|
+
hash.key?('unvested_value') ? hash['unvested_value'] : SKIP
|
|
405
|
+
user_guid = hash.key?('user_guid') ? hash['user_guid'] : SKIP
|
|
406
|
+
vested_quantity =
|
|
407
|
+
hash.key?('vested_quantity') ? hash['vested_quantity'] : SKIP
|
|
408
|
+
vested_value = hash.key?('vested_value') ? hash['vested_value'] : SKIP
|
|
409
|
+
created_at = hash.key?('created_at') ? hash['created_at'] : SKIP
|
|
410
|
+
current_price_as_of =
|
|
411
|
+
hash.key?('current_price_as_of') ? hash['current_price_as_of'] : SKIP
|
|
412
|
+
issue_date = hash.key?('issue_date') ? hash['issue_date'] : SKIP
|
|
413
|
+
vesting_start_date =
|
|
414
|
+
hash.key?('vesting_start_date') ? hash['vesting_start_date'] : SKIP
|
|
415
|
+
vesting_end_date =
|
|
416
|
+
hash.key?('vesting_end_date') ? hash['vesting_end_date'] : SKIP
|
|
417
|
+
put_or_call = hash.key?('put_or_call') ? hash['put_or_call'] : SKIP
|
|
418
|
+
holding_type = hash.key?('holding_type') ? hash['holding_type'] : SKIP
|
|
419
|
+
term_unit = hash.key?('term_unit') ? hash['term_unit'] : SKIP
|
|
420
|
+
|
|
421
|
+
# Create a new hash for additional properties, removing known properties.
|
|
422
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
423
|
+
|
|
424
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
425
|
+
new_hash, proc { |value| value }
|
|
426
|
+
)
|
|
427
|
+
|
|
428
|
+
# Create object from extracted values.
|
|
429
|
+
InvestmentHoldingResponse.new(account_guid: account_guid,
|
|
430
|
+
cost_basis: cost_basis,
|
|
431
|
+
coupon_yield: coupon_yield,
|
|
432
|
+
currency_code: currency_code,
|
|
433
|
+
current_price: current_price,
|
|
434
|
+
daily_change: daily_change,
|
|
435
|
+
description: description,
|
|
436
|
+
expiration: expiration,
|
|
437
|
+
face_value: face_value,
|
|
438
|
+
frequency: frequency,
|
|
439
|
+
guid: guid,
|
|
440
|
+
market_value: market_value,
|
|
441
|
+
maturity_date: maturity_date,
|
|
442
|
+
percentage_change: percentage_change,
|
|
443
|
+
purchase_price: purchase_price,
|
|
444
|
+
quantity: quantity,
|
|
445
|
+
rate: rate,
|
|
446
|
+
strike_price: strike_price,
|
|
447
|
+
symbol: symbol,
|
|
448
|
+
term: term,
|
|
449
|
+
today_ugl_amount: today_ugl_amount,
|
|
450
|
+
today_ugl_percentage: today_ugl_percentage,
|
|
451
|
+
total_ugl_amount: total_ugl_amount,
|
|
452
|
+
total_ugl_percentage: total_ugl_percentage,
|
|
453
|
+
unvested_quantity: unvested_quantity,
|
|
454
|
+
unvested_value: unvested_value,
|
|
455
|
+
user_guid: user_guid,
|
|
456
|
+
vested_quantity: vested_quantity,
|
|
457
|
+
vested_value: vested_value,
|
|
458
|
+
created_at: created_at,
|
|
459
|
+
current_price_as_of: current_price_as_of,
|
|
460
|
+
issue_date: issue_date,
|
|
461
|
+
vesting_start_date: vesting_start_date,
|
|
462
|
+
vesting_end_date: vesting_end_date,
|
|
463
|
+
put_or_call: put_or_call,
|
|
464
|
+
holding_type: holding_type,
|
|
465
|
+
term_unit: term_unit,
|
|
466
|
+
additional_properties: additional_properties)
|
|
467
|
+
end
|
|
468
|
+
|
|
469
|
+
# Provides a human-readable string representation of the object.
|
|
470
|
+
def to_s
|
|
471
|
+
class_name = self.class.name.split('::').last
|
|
472
|
+
"<#{class_name} account_guid: #{@account_guid}, cost_basis: #{@cost_basis}, coupon_yield:"\
|
|
473
|
+
" #{@coupon_yield}, currency_code: #{@currency_code}, current_price: #{@current_price},"\
|
|
474
|
+
" daily_change: #{@daily_change}, description: #{@description}, expiration: #{@expiration},"\
|
|
475
|
+
" face_value: #{@face_value}, frequency: #{@frequency}, guid: #{@guid}, market_value:"\
|
|
476
|
+
" #{@market_value}, maturity_date: #{@maturity_date}, percentage_change:"\
|
|
477
|
+
" #{@percentage_change}, purchase_price: #{@purchase_price}, quantity: #{@quantity}, rate:"\
|
|
478
|
+
" #{@rate}, strike_price: #{@strike_price}, symbol: #{@symbol}, term: #{@term},"\
|
|
479
|
+
" today_ugl_amount: #{@today_ugl_amount}, today_ugl_percentage: #{@today_ugl_percentage},"\
|
|
480
|
+
" total_ugl_amount: #{@total_ugl_amount}, total_ugl_percentage: #{@total_ugl_percentage},"\
|
|
481
|
+
" unvested_quantity: #{@unvested_quantity}, unvested_value: #{@unvested_value}, user_guid:"\
|
|
482
|
+
" #{@user_guid}, vested_quantity: #{@vested_quantity}, vested_value: #{@vested_value},"\
|
|
483
|
+
" created_at: #{@created_at}, current_price_as_of: #{@current_price_as_of}, issue_date:"\
|
|
484
|
+
" #{@issue_date}, vesting_start_date: #{@vesting_start_date}, vesting_end_date:"\
|
|
485
|
+
" #{@vesting_end_date}, put_or_call: #{@put_or_call}, holding_type: #{@holding_type},"\
|
|
486
|
+
" term_unit: #{@term_unit}, additional_properties: #{@additional_properties}>"
|
|
487
|
+
end
|
|
488
|
+
|
|
489
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
490
|
+
def inspect
|
|
491
|
+
class_name = self.class.name.split('::').last
|
|
492
|
+
"<#{class_name} account_guid: #{@account_guid.inspect}, cost_basis: #{@cost_basis.inspect},"\
|
|
493
|
+
" coupon_yield: #{@coupon_yield.inspect}, currency_code: #{@currency_code.inspect},"\
|
|
494
|
+
" current_price: #{@current_price.inspect}, daily_change: #{@daily_change.inspect},"\
|
|
495
|
+
" description: #{@description.inspect}, expiration: #{@expiration.inspect}, face_value:"\
|
|
496
|
+
" #{@face_value.inspect}, frequency: #{@frequency.inspect}, guid: #{@guid.inspect},"\
|
|
497
|
+
" market_value: #{@market_value.inspect}, maturity_date: #{@maturity_date.inspect},"\
|
|
498
|
+
" percentage_change: #{@percentage_change.inspect}, purchase_price:"\
|
|
499
|
+
" #{@purchase_price.inspect}, quantity: #{@quantity.inspect}, rate: #{@rate.inspect},"\
|
|
500
|
+
" strike_price: #{@strike_price.inspect}, symbol: #{@symbol.inspect}, term:"\
|
|
501
|
+
" #{@term.inspect}, today_ugl_amount: #{@today_ugl_amount.inspect}, today_ugl_percentage:"\
|
|
502
|
+
" #{@today_ugl_percentage.inspect}, total_ugl_amount: #{@total_ugl_amount.inspect},"\
|
|
503
|
+
" total_ugl_percentage: #{@total_ugl_percentage.inspect}, unvested_quantity:"\
|
|
504
|
+
" #{@unvested_quantity.inspect}, unvested_value: #{@unvested_value.inspect}, user_guid:"\
|
|
505
|
+
" #{@user_guid.inspect}, vested_quantity: #{@vested_quantity.inspect}, vested_value:"\
|
|
506
|
+
" #{@vested_value.inspect}, created_at: #{@created_at.inspect}, current_price_as_of:"\
|
|
507
|
+
" #{@current_price_as_of.inspect}, issue_date: #{@issue_date.inspect}, vesting_start_date:"\
|
|
508
|
+
" #{@vesting_start_date.inspect}, vesting_end_date: #{@vesting_end_date.inspect},"\
|
|
509
|
+
" put_or_call: #{@put_or_call.inspect}, holding_type: #{@holding_type.inspect}, term_unit:"\
|
|
510
|
+
" #{@term_unit.inspect}, additional_properties: #{@additional_properties}>"
|
|
511
|
+
end
|
|
512
|
+
end
|
|
513
|
+
end
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# mx_platform_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module MxPlatformApi
|
|
7
|
+
# InvestmentHoldingResponseBody Model.
|
|
8
|
+
class InvestmentHoldingResponseBody < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [InvestmentHoldingResponse]
|
|
14
|
+
attr_accessor :investment_holding
|
|
15
|
+
|
|
16
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['investment_holding'] = 'investment_holding'
|
|
20
|
+
@_hash
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# An array for optional fields
|
|
24
|
+
def self.optionals
|
|
25
|
+
%w[
|
|
26
|
+
investment_holding
|
|
27
|
+
]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# An array for nullable fields
|
|
31
|
+
def self.nullables
|
|
32
|
+
[]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def initialize(investment_holding: SKIP, additional_properties: nil)
|
|
36
|
+
# Add additional model properties to the instance
|
|
37
|
+
additional_properties = {} if additional_properties.nil?
|
|
38
|
+
|
|
39
|
+
@investment_holding = investment_holding unless investment_holding == SKIP
|
|
40
|
+
@additional_properties = additional_properties
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Creates an instance of the object from a hash.
|
|
44
|
+
def self.from_hash(hash)
|
|
45
|
+
return nil unless hash
|
|
46
|
+
|
|
47
|
+
# Extract variables from the hash.
|
|
48
|
+
investment_holding = InvestmentHoldingResponse.from_hash(hash['investment_holding']) if
|
|
49
|
+
hash['investment_holding']
|
|
50
|
+
|
|
51
|
+
# Create a new hash for additional properties, removing known properties.
|
|
52
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
53
|
+
|
|
54
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
55
|
+
new_hash, proc { |value| value }
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
# Create object from extracted values.
|
|
59
|
+
InvestmentHoldingResponseBody.new(investment_holding: investment_holding,
|
|
60
|
+
additional_properties: additional_properties)
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Provides a human-readable string representation of the object.
|
|
64
|
+
def to_s
|
|
65
|
+
class_name = self.class.name.split('::').last
|
|
66
|
+
"<#{class_name} investment_holding: #{@investment_holding}, additional_properties:"\
|
|
67
|
+
" #{@additional_properties}>"
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
71
|
+
def inspect
|
|
72
|
+
class_name = self.class.name.split('::').last
|
|
73
|
+
"<#{class_name} investment_holding: #{@investment_holding.inspect}, additional_properties:"\
|
|
74
|
+
" #{@additional_properties}>"
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# mx_platform_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module MxPlatformApi
|
|
7
|
+
# InvestmentHoldingsDeactivation Model.
|
|
8
|
+
class InvestmentHoldingsDeactivation < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [Object]
|
|
14
|
+
attr_accessor :message
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [Object]
|
|
18
|
+
attr_accessor :status
|
|
19
|
+
|
|
20
|
+
# A mapping from model property names to API property names.
|
|
21
|
+
def self.names
|
|
22
|
+
@_hash = {} if @_hash.nil?
|
|
23
|
+
@_hash['message'] = 'message'
|
|
24
|
+
@_hash['status'] = 'status'
|
|
25
|
+
@_hash
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# An array for optional fields
|
|
29
|
+
def self.optionals
|
|
30
|
+
%w[
|
|
31
|
+
message
|
|
32
|
+
status
|
|
33
|
+
]
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# An array for nullable fields
|
|
37
|
+
def self.nullables
|
|
38
|
+
[]
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def initialize(message: SKIP, status: SKIP, additional_properties: nil)
|
|
42
|
+
# Add additional model properties to the instance
|
|
43
|
+
additional_properties = {} if additional_properties.nil?
|
|
44
|
+
|
|
45
|
+
@message = message unless message == SKIP
|
|
46
|
+
@status = status unless status == SKIP
|
|
47
|
+
@additional_properties = additional_properties
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Creates an instance of the object from a hash.
|
|
51
|
+
def self.from_hash(hash)
|
|
52
|
+
return nil unless hash
|
|
53
|
+
|
|
54
|
+
# Extract variables from the hash.
|
|
55
|
+
message = hash.key?('message') ? hash['message'] : SKIP
|
|
56
|
+
status = hash.key?('status') ? hash['status'] : SKIP
|
|
57
|
+
|
|
58
|
+
# Create a new hash for additional properties, removing known properties.
|
|
59
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
60
|
+
|
|
61
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
62
|
+
new_hash, proc { |value| value }
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
# Create object from extracted values.
|
|
66
|
+
InvestmentHoldingsDeactivation.new(message: message,
|
|
67
|
+
status: status,
|
|
68
|
+
additional_properties: additional_properties)
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# Provides a human-readable string representation of the object.
|
|
72
|
+
def to_s
|
|
73
|
+
class_name = self.class.name.split('::').last
|
|
74
|
+
"<#{class_name} message: #{@message}, status: #{@status}, additional_properties:"\
|
|
75
|
+
" #{@additional_properties}>"
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
79
|
+
def inspect
|
|
80
|
+
class_name = self.class.name.split('::').last
|
|
81
|
+
"<#{class_name} message: #{@message.inspect}, status: #{@status.inspect},"\
|
|
82
|
+
" additional_properties: #{@additional_properties}>"
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|