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,814 @@
|
|
|
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
|
+
# AccountResponse Model.
|
|
8
|
+
class AccountResponse < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# The account number associated with the account. This will typically be a
|
|
13
|
+
# masked or partial account number.
|
|
14
|
+
# @return [String]
|
|
15
|
+
attr_accessor :account_number
|
|
16
|
+
|
|
17
|
+
# The type of ownership associated with the account. `NULL` is returned if
|
|
18
|
+
# not received in the data feed.
|
|
19
|
+
# @return [AccountOwnership]
|
|
20
|
+
attr_accessor :account_ownership
|
|
21
|
+
|
|
22
|
+
# The date until which the policy is in effect.
|
|
23
|
+
# @return [String]
|
|
24
|
+
attr_accessor :annuity_policy_to_date
|
|
25
|
+
|
|
26
|
+
# The provider of the insurance policy.
|
|
27
|
+
# @return [String]
|
|
28
|
+
attr_accessor :annuity_provider
|
|
29
|
+
|
|
30
|
+
# The effective duration of an insurance policy (one year, five years,
|
|
31
|
+
# etc.).
|
|
32
|
+
# @return [Integer]
|
|
33
|
+
attr_accessor :annuity_term_year
|
|
34
|
+
|
|
35
|
+
# The annual percentage rate associated with the `account`.
|
|
36
|
+
# @return [Float]
|
|
37
|
+
attr_accessor :apr
|
|
38
|
+
|
|
39
|
+
# The annual percentage yield associated with the `account`.
|
|
40
|
+
# @return [Float]
|
|
41
|
+
attr_accessor :apy
|
|
42
|
+
|
|
43
|
+
# The balance that is available for use in asset accounts like checking and
|
|
44
|
+
# savings.
|
|
45
|
+
# `PENDING` transactions are typically (not always) taken into account with
|
|
46
|
+
# the available balance.
|
|
47
|
+
# `available_balance` will usually be a positive value for all account
|
|
48
|
+
# types, determined in the same way as the balance field.
|
|
49
|
+
# @return [Float]
|
|
50
|
+
attr_accessor :available_balance
|
|
51
|
+
|
|
52
|
+
# The amount of credit available for use in liability accounts like credit
|
|
53
|
+
# cards and lines of credit.
|
|
54
|
+
# `PENDING` transactions are typically (not always) taken into account with
|
|
55
|
+
# available credit.
|
|
56
|
+
# `available_credit` will usually be a positive value for all account types,
|
|
57
|
+
# determined in the same way as the `balance` field.
|
|
58
|
+
# @return [Float]
|
|
59
|
+
attr_accessor :available_credit
|
|
60
|
+
|
|
61
|
+
# The current balance of the account.
|
|
62
|
+
# `PENDING` transactions are typically not taken into account with the
|
|
63
|
+
# current balance, but this may not always be the case.
|
|
64
|
+
#
|
|
65
|
+
# The balance will usually be a positive value for all account types.
|
|
66
|
+
# Asset-type accounts (`CHECKING`, `SAVINGS`, `INVESTMENT`) may have a
|
|
67
|
+
# negative balance if they are in overdraft.
|
|
68
|
+
# Debt-type accounts (`CREDIT_CARD`, `LOAN`, `LINE_OF_CREDIT`, `MORTGAGE`)
|
|
69
|
+
# may have a negative balance if they are overpaid.
|
|
70
|
+
# @return [Float]
|
|
71
|
+
attr_accessor :balance
|
|
72
|
+
|
|
73
|
+
# The cash balance of the `account`.
|
|
74
|
+
# @return [Float]
|
|
75
|
+
attr_accessor :cash_balance
|
|
76
|
+
|
|
77
|
+
# The sum of money paid to the policyholder or annuity holder in the event
|
|
78
|
+
# the policy is voluntarily terminated before it matures, or the insured
|
|
79
|
+
# event occurs.
|
|
80
|
+
# @return [Float]
|
|
81
|
+
attr_accessor :cash_surrender_value
|
|
82
|
+
|
|
83
|
+
# The date and time the account was created, represented in ISO 8601 format
|
|
84
|
+
# with a timestamp.
|
|
85
|
+
# @return [String]
|
|
86
|
+
attr_accessor :created_at
|
|
87
|
+
|
|
88
|
+
# The credit limit associated with the `account`.
|
|
89
|
+
# @return [Float]
|
|
90
|
+
attr_accessor :credit_limit
|
|
91
|
+
|
|
92
|
+
# The three-character ISO 4217 currency code, for example, `USD`.
|
|
93
|
+
# @return [String]
|
|
94
|
+
attr_accessor :currency_code
|
|
95
|
+
|
|
96
|
+
# The day of the month the payment is due. For example, the 14th is passed
|
|
97
|
+
# as `14`.
|
|
98
|
+
# @return [Integer]
|
|
99
|
+
attr_accessor :day_payment_is_due
|
|
100
|
+
|
|
101
|
+
# The amount paid to the beneficiary of the account upon death of the
|
|
102
|
+
# account owner.
|
|
103
|
+
# @return [Integer]
|
|
104
|
+
attr_accessor :death_benefit
|
|
105
|
+
|
|
106
|
+
# The federal insurance status of the account. Indicates whether the account
|
|
107
|
+
# is insured by the FDIC (banks) or NCUA (credit unions).
|
|
108
|
+
# Returns an integer (`UNKNOWN_INSURED` = 0, `INSURED` = 1, `NOT_INSURED` =
|
|
109
|
+
# 2).
|
|
110
|
+
# @return [FederalInsuranceStatus]
|
|
111
|
+
attr_accessor :federal_insurance_status
|
|
112
|
+
|
|
113
|
+
# Unique identifier for the account. Defined by MX.
|
|
114
|
+
# @return [String]
|
|
115
|
+
attr_accessor :guid
|
|
116
|
+
|
|
117
|
+
# The unique partner-defined identifier for the account.
|
|
118
|
+
# @return [String]
|
|
119
|
+
attr_accessor :id
|
|
120
|
+
|
|
121
|
+
# The date and time at which the `account` was last successfully aggregated
|
|
122
|
+
# and received data.
|
|
123
|
+
# @return [String]
|
|
124
|
+
attr_accessor :imported_at
|
|
125
|
+
|
|
126
|
+
# The interest rate associated with the account.
|
|
127
|
+
# @return [Float]
|
|
128
|
+
attr_accessor :interest_rate
|
|
129
|
+
|
|
130
|
+
# The code identifying a financial institution.
|
|
131
|
+
# @return [String]
|
|
132
|
+
attr_accessor :institution_code
|
|
133
|
+
|
|
134
|
+
# The name of the insured person.
|
|
135
|
+
# @return [String]
|
|
136
|
+
attr_accessor :insured_name
|
|
137
|
+
|
|
138
|
+
# Indicates whether an account has been closed. Closed accounts will no
|
|
139
|
+
# longer update balance or transaction information.
|
|
140
|
+
# @return [TrueClass | FalseClass]
|
|
141
|
+
attr_accessor :is_closed
|
|
142
|
+
|
|
143
|
+
# Indicates whether the account is hidden. Hidden accounts can still have an
|
|
144
|
+
# active balance and receive transactions. Defaults to `false`.
|
|
145
|
+
# @return [TrueClass | FalseClass]
|
|
146
|
+
attr_accessor :is_hidden
|
|
147
|
+
|
|
148
|
+
# Indicates whether the transaction was manually created or belongs to a
|
|
149
|
+
# manual account.
|
|
150
|
+
# @return [TrueClass | FalseClass]
|
|
151
|
+
attr_accessor :is_manual
|
|
152
|
+
|
|
153
|
+
# The amount of the most recent payment on the `account`.
|
|
154
|
+
# @return [Float]
|
|
155
|
+
attr_accessor :last_payment
|
|
156
|
+
|
|
157
|
+
# The date and time when the last payment was made, represented in ISO 8601
|
|
158
|
+
# format with a timestamp.
|
|
159
|
+
# @return [String]
|
|
160
|
+
attr_accessor :last_payment_at
|
|
161
|
+
|
|
162
|
+
# The amount of the loan associated with the `account`.
|
|
163
|
+
# @return [Float]
|
|
164
|
+
attr_accessor :loan_amount
|
|
165
|
+
|
|
166
|
+
# Represents the amount of debt the investor owes to the broker for the use
|
|
167
|
+
# of margin. It can be positive or negative, depending on the performance of
|
|
168
|
+
# the investments made with the borrowed funds. A positive margin balance
|
|
169
|
+
# indicates that the securities purchased on margin have increased in value,
|
|
170
|
+
# whereas a negative margin balance signifies that the securities have
|
|
171
|
+
# decreased in value.
|
|
172
|
+
# @return [Float]
|
|
173
|
+
attr_accessor :margin_balance
|
|
174
|
+
|
|
175
|
+
# The date on which the `account` matures.
|
|
176
|
+
# @return [String]
|
|
177
|
+
attr_accessor :matures_on
|
|
178
|
+
|
|
179
|
+
# The unique identifier for the member. Defined by MX.
|
|
180
|
+
# @return [String]
|
|
181
|
+
attr_accessor :member_guid
|
|
182
|
+
|
|
183
|
+
# The unique, partner-defined, identifier for the member associated with
|
|
184
|
+
# this `account`.
|
|
185
|
+
# @return [String]
|
|
186
|
+
attr_accessor :member_id
|
|
187
|
+
|
|
188
|
+
# This indicates whether the member is managed by the user or the MX
|
|
189
|
+
# partner. Members created with the managed member feature will have this
|
|
190
|
+
# field set to `false`.
|
|
191
|
+
# @return [TrueClass | FalseClass]
|
|
192
|
+
attr_accessor :member_is_managed_by_user
|
|
193
|
+
|
|
194
|
+
# Additional information you stored about the `account`.
|
|
195
|
+
# @return [String]
|
|
196
|
+
attr_accessor :metadata
|
|
197
|
+
|
|
198
|
+
# The minimum balance associated with the `account`.
|
|
199
|
+
# @return [Float]
|
|
200
|
+
attr_accessor :minimum_balance
|
|
201
|
+
|
|
202
|
+
# The minimum payment required for an account. This can apply to any debt
|
|
203
|
+
# account.
|
|
204
|
+
# @return [Float]
|
|
205
|
+
attr_accessor :minimum_payment
|
|
206
|
+
|
|
207
|
+
# The human-readable name for the resource.
|
|
208
|
+
# @return [String]
|
|
209
|
+
attr_accessor :name
|
|
210
|
+
|
|
211
|
+
# An alternate name for the `account`.
|
|
212
|
+
# @return [String]
|
|
213
|
+
attr_accessor :nickname
|
|
214
|
+
|
|
215
|
+
# The original balance associated with the `account`. This will always be
|
|
216
|
+
# positive.
|
|
217
|
+
# @return [Float]
|
|
218
|
+
attr_accessor :original_balance
|
|
219
|
+
|
|
220
|
+
# The amount paid out to the insured individual or beneficiary under the
|
|
221
|
+
# conditions of the insurance policy.
|
|
222
|
+
# @return [Float]
|
|
223
|
+
attr_accessor :pay_out_amount
|
|
224
|
+
|
|
225
|
+
# The date and time at which the next payment is due on the `account`.
|
|
226
|
+
# @return [String]
|
|
227
|
+
attr_accessor :payment_due_at
|
|
228
|
+
|
|
229
|
+
# The payoff balance for a debt `account`. This will normally be a positive
|
|
230
|
+
# number.
|
|
231
|
+
# @return [Float]
|
|
232
|
+
attr_accessor :payoff_balance
|
|
233
|
+
|
|
234
|
+
# The insurance policy's premium amount.
|
|
235
|
+
# @return [Float]
|
|
236
|
+
attr_accessor :premium_amount
|
|
237
|
+
|
|
238
|
+
# Subtype if the account type is `PROPERTY`. This field should be ignored
|
|
239
|
+
# unless the type is set to `PROPERTY`.
|
|
240
|
+
# @return [PropertyType]
|
|
241
|
+
attr_accessor :property_type
|
|
242
|
+
|
|
243
|
+
# The routing number for the `account`.
|
|
244
|
+
# @return [String]
|
|
245
|
+
attr_accessor :routing_number
|
|
246
|
+
|
|
247
|
+
# The date on which the loan from a debt account started.
|
|
248
|
+
# @return [String]
|
|
249
|
+
attr_accessor :started_on
|
|
250
|
+
|
|
251
|
+
# The balance at the end of the account's last statement period.
|
|
252
|
+
# @return [Float]
|
|
253
|
+
attr_accessor :statement_balance
|
|
254
|
+
|
|
255
|
+
# The account's subtype, for example, `PLAN_401_K`, `MONEY_MARKET`, or
|
|
256
|
+
# `HOME_EQUITY`. Each subtype belongs to an account `type`. For a full list
|
|
257
|
+
# of account subtypes and types, see
|
|
258
|
+
# [Accounts](/api-reference/platform-api/reference/accounts).
|
|
259
|
+
# @return [String]
|
|
260
|
+
attr_accessor :subtype
|
|
261
|
+
|
|
262
|
+
# The unrealized gain/loss amount for the day for the account.
|
|
263
|
+
# @return [Float]
|
|
264
|
+
attr_accessor :today_ugl_amount
|
|
265
|
+
|
|
266
|
+
# The unrealized gain/loss percentage for the date for the account.
|
|
267
|
+
# @return [Float]
|
|
268
|
+
attr_accessor :today_ugl_percentage
|
|
269
|
+
|
|
270
|
+
# The sum of the long and short positions, the sweep account and/or cash
|
|
271
|
+
# balance, and any margin debt associated with a particular account. This
|
|
272
|
+
# amount includes the market value of all positions held in the account and
|
|
273
|
+
# is reduced by any debit balance and the amount of short options positions
|
|
274
|
+
# that are "in the money". This may sum to a negative value, and it does not
|
|
275
|
+
# represent an account balance.
|
|
276
|
+
# @return [Float]
|
|
277
|
+
attr_accessor :total_account_value
|
|
278
|
+
|
|
279
|
+
# The unrealized gains and losses represent the amount the account has
|
|
280
|
+
# gained or lost based on the purchase price. This is calculated by
|
|
281
|
+
# subtracting the purchase price from the current market value. It does not
|
|
282
|
+
# affect the account until the positions are sold and "realized". This may
|
|
283
|
+
# sum to a negative value, and it does not represent an account balance.
|
|
284
|
+
# @return [Float]
|
|
285
|
+
attr_accessor :total_account_value_ugl
|
|
286
|
+
|
|
287
|
+
# The type of account. Some account types may include subtypes.
|
|
288
|
+
# @return [AccountType1]
|
|
289
|
+
attr_accessor :type
|
|
290
|
+
|
|
291
|
+
# The date and time the resource was last updated in ISO 8601 format with a
|
|
292
|
+
# timestamp.
|
|
293
|
+
# For categories, this field will always be `null` when `is_default` is
|
|
294
|
+
# `true`.
|
|
295
|
+
# @return [String]
|
|
296
|
+
attr_accessor :updated_at
|
|
297
|
+
|
|
298
|
+
# The unique identifier for the user. Defined by MX.
|
|
299
|
+
# @return [String]
|
|
300
|
+
attr_accessor :user_guid
|
|
301
|
+
|
|
302
|
+
# The unique partner-defined identifier for the user.
|
|
303
|
+
# @return [String]
|
|
304
|
+
attr_accessor :user_id
|
|
305
|
+
|
|
306
|
+
# A mapping from model property names to API property names.
|
|
307
|
+
def self.names
|
|
308
|
+
@_hash = {} if @_hash.nil?
|
|
309
|
+
@_hash['account_number'] = 'account_number'
|
|
310
|
+
@_hash['account_ownership'] = 'account_ownership'
|
|
311
|
+
@_hash['annuity_policy_to_date'] = 'annuity_policy_to_date'
|
|
312
|
+
@_hash['annuity_provider'] = 'annuity_provider'
|
|
313
|
+
@_hash['annuity_term_year'] = 'annuity_term_year'
|
|
314
|
+
@_hash['apr'] = 'apr'
|
|
315
|
+
@_hash['apy'] = 'apy'
|
|
316
|
+
@_hash['available_balance'] = 'available_balance'
|
|
317
|
+
@_hash['available_credit'] = 'available_credit'
|
|
318
|
+
@_hash['balance'] = 'balance'
|
|
319
|
+
@_hash['cash_balance'] = 'cash_balance'
|
|
320
|
+
@_hash['cash_surrender_value'] = 'cash_surrender_value'
|
|
321
|
+
@_hash['created_at'] = 'created_at'
|
|
322
|
+
@_hash['credit_limit'] = 'credit_limit'
|
|
323
|
+
@_hash['currency_code'] = 'currency_code'
|
|
324
|
+
@_hash['day_payment_is_due'] = 'day_payment_is_due'
|
|
325
|
+
@_hash['death_benefit'] = 'death_benefit'
|
|
326
|
+
@_hash['federal_insurance_status'] = 'federal_insurance_status'
|
|
327
|
+
@_hash['guid'] = 'guid'
|
|
328
|
+
@_hash['id'] = 'id'
|
|
329
|
+
@_hash['imported_at'] = 'imported_at'
|
|
330
|
+
@_hash['interest_rate'] = 'interest_rate'
|
|
331
|
+
@_hash['institution_code'] = 'institution_code'
|
|
332
|
+
@_hash['insured_name'] = 'insured_name'
|
|
333
|
+
@_hash['is_closed'] = 'is_closed'
|
|
334
|
+
@_hash['is_hidden'] = 'is_hidden'
|
|
335
|
+
@_hash['is_manual'] = 'is_manual'
|
|
336
|
+
@_hash['last_payment'] = 'last_payment'
|
|
337
|
+
@_hash['last_payment_at'] = 'last_payment_at'
|
|
338
|
+
@_hash['loan_amount'] = 'loan_amount'
|
|
339
|
+
@_hash['margin_balance'] = 'margin_balance'
|
|
340
|
+
@_hash['matures_on'] = 'matures_on'
|
|
341
|
+
@_hash['member_guid'] = 'member_guid'
|
|
342
|
+
@_hash['member_id'] = 'member_id'
|
|
343
|
+
@_hash['member_is_managed_by_user'] = 'member_is_managed_by_user'
|
|
344
|
+
@_hash['metadata'] = 'metadata'
|
|
345
|
+
@_hash['minimum_balance'] = 'minimum_balance'
|
|
346
|
+
@_hash['minimum_payment'] = 'minimum_payment'
|
|
347
|
+
@_hash['name'] = 'name'
|
|
348
|
+
@_hash['nickname'] = 'nickname'
|
|
349
|
+
@_hash['original_balance'] = 'original_balance'
|
|
350
|
+
@_hash['pay_out_amount'] = 'pay_out_amount'
|
|
351
|
+
@_hash['payment_due_at'] = 'payment_due_at'
|
|
352
|
+
@_hash['payoff_balance'] = 'payoff_balance'
|
|
353
|
+
@_hash['premium_amount'] = 'premium_amount'
|
|
354
|
+
@_hash['property_type'] = 'property_type'
|
|
355
|
+
@_hash['routing_number'] = 'routing_number'
|
|
356
|
+
@_hash['started_on'] = 'started_on'
|
|
357
|
+
@_hash['statement_balance'] = 'statement_balance'
|
|
358
|
+
@_hash['subtype'] = 'subtype'
|
|
359
|
+
@_hash['today_ugl_amount'] = 'today_ugl_amount'
|
|
360
|
+
@_hash['today_ugl_percentage'] = 'today_ugl_percentage'
|
|
361
|
+
@_hash['total_account_value'] = 'total_account_value'
|
|
362
|
+
@_hash['total_account_value_ugl'] = 'total_account_value_ugl'
|
|
363
|
+
@_hash['type'] = 'type'
|
|
364
|
+
@_hash['updated_at'] = 'updated_at'
|
|
365
|
+
@_hash['user_guid'] = 'user_guid'
|
|
366
|
+
@_hash['user_id'] = 'user_id'
|
|
367
|
+
@_hash
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
# An array for optional fields
|
|
371
|
+
def self.optionals
|
|
372
|
+
%w[
|
|
373
|
+
account_number
|
|
374
|
+
account_ownership
|
|
375
|
+
annuity_policy_to_date
|
|
376
|
+
annuity_provider
|
|
377
|
+
annuity_term_year
|
|
378
|
+
apr
|
|
379
|
+
apy
|
|
380
|
+
available_balance
|
|
381
|
+
available_credit
|
|
382
|
+
balance
|
|
383
|
+
cash_balance
|
|
384
|
+
cash_surrender_value
|
|
385
|
+
created_at
|
|
386
|
+
credit_limit
|
|
387
|
+
currency_code
|
|
388
|
+
day_payment_is_due
|
|
389
|
+
death_benefit
|
|
390
|
+
federal_insurance_status
|
|
391
|
+
guid
|
|
392
|
+
id
|
|
393
|
+
imported_at
|
|
394
|
+
interest_rate
|
|
395
|
+
institution_code
|
|
396
|
+
insured_name
|
|
397
|
+
is_closed
|
|
398
|
+
is_hidden
|
|
399
|
+
is_manual
|
|
400
|
+
last_payment
|
|
401
|
+
last_payment_at
|
|
402
|
+
loan_amount
|
|
403
|
+
margin_balance
|
|
404
|
+
matures_on
|
|
405
|
+
member_guid
|
|
406
|
+
member_id
|
|
407
|
+
member_is_managed_by_user
|
|
408
|
+
metadata
|
|
409
|
+
minimum_balance
|
|
410
|
+
minimum_payment
|
|
411
|
+
name
|
|
412
|
+
nickname
|
|
413
|
+
original_balance
|
|
414
|
+
pay_out_amount
|
|
415
|
+
payment_due_at
|
|
416
|
+
payoff_balance
|
|
417
|
+
premium_amount
|
|
418
|
+
property_type
|
|
419
|
+
routing_number
|
|
420
|
+
started_on
|
|
421
|
+
statement_balance
|
|
422
|
+
subtype
|
|
423
|
+
today_ugl_amount
|
|
424
|
+
today_ugl_percentage
|
|
425
|
+
total_account_value
|
|
426
|
+
total_account_value_ugl
|
|
427
|
+
type
|
|
428
|
+
updated_at
|
|
429
|
+
user_guid
|
|
430
|
+
user_id
|
|
431
|
+
]
|
|
432
|
+
end
|
|
433
|
+
|
|
434
|
+
# An array for nullable fields
|
|
435
|
+
def self.nullables
|
|
436
|
+
%w[
|
|
437
|
+
account_number
|
|
438
|
+
account_ownership
|
|
439
|
+
annuity_policy_to_date
|
|
440
|
+
annuity_provider
|
|
441
|
+
annuity_term_year
|
|
442
|
+
apr
|
|
443
|
+
apy
|
|
444
|
+
available_balance
|
|
445
|
+
available_credit
|
|
446
|
+
balance
|
|
447
|
+
cash_balance
|
|
448
|
+
cash_surrender_value
|
|
449
|
+
credit_limit
|
|
450
|
+
currency_code
|
|
451
|
+
day_payment_is_due
|
|
452
|
+
death_benefit
|
|
453
|
+
federal_insurance_status
|
|
454
|
+
guid
|
|
455
|
+
id
|
|
456
|
+
imported_at
|
|
457
|
+
interest_rate
|
|
458
|
+
institution_code
|
|
459
|
+
insured_name
|
|
460
|
+
is_hidden
|
|
461
|
+
is_manual
|
|
462
|
+
last_payment
|
|
463
|
+
last_payment_at
|
|
464
|
+
loan_amount
|
|
465
|
+
margin_balance
|
|
466
|
+
matures_on
|
|
467
|
+
member_guid
|
|
468
|
+
member_id
|
|
469
|
+
member_is_managed_by_user
|
|
470
|
+
metadata
|
|
471
|
+
minimum_balance
|
|
472
|
+
minimum_payment
|
|
473
|
+
name
|
|
474
|
+
nickname
|
|
475
|
+
original_balance
|
|
476
|
+
pay_out_amount
|
|
477
|
+
payment_due_at
|
|
478
|
+
payoff_balance
|
|
479
|
+
premium_amount
|
|
480
|
+
property_type
|
|
481
|
+
routing_number
|
|
482
|
+
started_on
|
|
483
|
+
statement_balance
|
|
484
|
+
subtype
|
|
485
|
+
today_ugl_amount
|
|
486
|
+
today_ugl_percentage
|
|
487
|
+
total_account_value
|
|
488
|
+
total_account_value_ugl
|
|
489
|
+
type
|
|
490
|
+
updated_at
|
|
491
|
+
user_guid
|
|
492
|
+
user_id
|
|
493
|
+
]
|
|
494
|
+
end
|
|
495
|
+
|
|
496
|
+
def initialize(account_number: SKIP, account_ownership: SKIP,
|
|
497
|
+
annuity_policy_to_date: SKIP, annuity_provider: SKIP,
|
|
498
|
+
annuity_term_year: SKIP, apr: SKIP, apy: SKIP,
|
|
499
|
+
available_balance: SKIP, available_credit: SKIP,
|
|
500
|
+
balance: SKIP, cash_balance: SKIP,
|
|
501
|
+
cash_surrender_value: SKIP, created_at: SKIP,
|
|
502
|
+
credit_limit: SKIP, currency_code: SKIP,
|
|
503
|
+
day_payment_is_due: SKIP, death_benefit: SKIP,
|
|
504
|
+
federal_insurance_status: SKIP, guid: SKIP, id: SKIP,
|
|
505
|
+
imported_at: SKIP, interest_rate: SKIP,
|
|
506
|
+
institution_code: SKIP, insured_name: SKIP, is_closed: SKIP,
|
|
507
|
+
is_hidden: SKIP, is_manual: SKIP, last_payment: SKIP,
|
|
508
|
+
last_payment_at: SKIP, loan_amount: SKIP,
|
|
509
|
+
margin_balance: SKIP, matures_on: SKIP, member_guid: SKIP,
|
|
510
|
+
member_id: SKIP, member_is_managed_by_user: SKIP,
|
|
511
|
+
metadata: SKIP, minimum_balance: SKIP, minimum_payment: SKIP,
|
|
512
|
+
name: SKIP, nickname: SKIP, original_balance: SKIP,
|
|
513
|
+
pay_out_amount: SKIP, payment_due_at: SKIP,
|
|
514
|
+
payoff_balance: SKIP, premium_amount: SKIP,
|
|
515
|
+
property_type: SKIP, routing_number: SKIP, started_on: SKIP,
|
|
516
|
+
statement_balance: SKIP, subtype: SKIP,
|
|
517
|
+
today_ugl_amount: SKIP, today_ugl_percentage: SKIP,
|
|
518
|
+
total_account_value: SKIP, total_account_value_ugl: SKIP,
|
|
519
|
+
type: SKIP, updated_at: SKIP, user_guid: SKIP, user_id: SKIP,
|
|
520
|
+
additional_properties: nil)
|
|
521
|
+
# Add additional model properties to the instance
|
|
522
|
+
additional_properties = {} if additional_properties.nil?
|
|
523
|
+
|
|
524
|
+
@account_number = account_number unless account_number == SKIP
|
|
525
|
+
@account_ownership = account_ownership unless account_ownership == SKIP
|
|
526
|
+
@annuity_policy_to_date = annuity_policy_to_date unless annuity_policy_to_date == SKIP
|
|
527
|
+
@annuity_provider = annuity_provider unless annuity_provider == SKIP
|
|
528
|
+
@annuity_term_year = annuity_term_year unless annuity_term_year == SKIP
|
|
529
|
+
@apr = apr unless apr == SKIP
|
|
530
|
+
@apy = apy unless apy == SKIP
|
|
531
|
+
@available_balance = available_balance unless available_balance == SKIP
|
|
532
|
+
@available_credit = available_credit unless available_credit == SKIP
|
|
533
|
+
@balance = balance unless balance == SKIP
|
|
534
|
+
@cash_balance = cash_balance unless cash_balance == SKIP
|
|
535
|
+
@cash_surrender_value = cash_surrender_value unless cash_surrender_value == SKIP
|
|
536
|
+
@created_at = created_at unless created_at == SKIP
|
|
537
|
+
@credit_limit = credit_limit unless credit_limit == SKIP
|
|
538
|
+
@currency_code = currency_code unless currency_code == SKIP
|
|
539
|
+
@day_payment_is_due = day_payment_is_due unless day_payment_is_due == SKIP
|
|
540
|
+
@death_benefit = death_benefit unless death_benefit == SKIP
|
|
541
|
+
@federal_insurance_status = federal_insurance_status unless federal_insurance_status == SKIP
|
|
542
|
+
@guid = guid unless guid == SKIP
|
|
543
|
+
@id = id unless id == SKIP
|
|
544
|
+
@imported_at = imported_at unless imported_at == SKIP
|
|
545
|
+
@interest_rate = interest_rate unless interest_rate == SKIP
|
|
546
|
+
@institution_code = institution_code unless institution_code == SKIP
|
|
547
|
+
@insured_name = insured_name unless insured_name == SKIP
|
|
548
|
+
@is_closed = is_closed unless is_closed == SKIP
|
|
549
|
+
@is_hidden = is_hidden unless is_hidden == SKIP
|
|
550
|
+
@is_manual = is_manual unless is_manual == SKIP
|
|
551
|
+
@last_payment = last_payment unless last_payment == SKIP
|
|
552
|
+
@last_payment_at = last_payment_at unless last_payment_at == SKIP
|
|
553
|
+
@loan_amount = loan_amount unless loan_amount == SKIP
|
|
554
|
+
@margin_balance = margin_balance unless margin_balance == SKIP
|
|
555
|
+
@matures_on = matures_on unless matures_on == SKIP
|
|
556
|
+
@member_guid = member_guid unless member_guid == SKIP
|
|
557
|
+
@member_id = member_id unless member_id == SKIP
|
|
558
|
+
unless member_is_managed_by_user == SKIP
|
|
559
|
+
@member_is_managed_by_user =
|
|
560
|
+
member_is_managed_by_user
|
|
561
|
+
end
|
|
562
|
+
@metadata = metadata unless metadata == SKIP
|
|
563
|
+
@minimum_balance = minimum_balance unless minimum_balance == SKIP
|
|
564
|
+
@minimum_payment = minimum_payment unless minimum_payment == SKIP
|
|
565
|
+
@name = name unless name == SKIP
|
|
566
|
+
@nickname = nickname unless nickname == SKIP
|
|
567
|
+
@original_balance = original_balance unless original_balance == SKIP
|
|
568
|
+
@pay_out_amount = pay_out_amount unless pay_out_amount == SKIP
|
|
569
|
+
@payment_due_at = payment_due_at unless payment_due_at == SKIP
|
|
570
|
+
@payoff_balance = payoff_balance unless payoff_balance == SKIP
|
|
571
|
+
@premium_amount = premium_amount unless premium_amount == SKIP
|
|
572
|
+
@property_type = property_type unless property_type == SKIP
|
|
573
|
+
@routing_number = routing_number unless routing_number == SKIP
|
|
574
|
+
@started_on = started_on unless started_on == SKIP
|
|
575
|
+
@statement_balance = statement_balance unless statement_balance == SKIP
|
|
576
|
+
@subtype = subtype unless subtype == SKIP
|
|
577
|
+
@today_ugl_amount = today_ugl_amount unless today_ugl_amount == SKIP
|
|
578
|
+
@today_ugl_percentage = today_ugl_percentage unless today_ugl_percentage == SKIP
|
|
579
|
+
@total_account_value = total_account_value unless total_account_value == SKIP
|
|
580
|
+
@total_account_value_ugl = total_account_value_ugl unless total_account_value_ugl == SKIP
|
|
581
|
+
@type = type unless type == SKIP
|
|
582
|
+
@updated_at = updated_at unless updated_at == SKIP
|
|
583
|
+
@user_guid = user_guid unless user_guid == SKIP
|
|
584
|
+
@user_id = user_id unless user_id == SKIP
|
|
585
|
+
@additional_properties = additional_properties
|
|
586
|
+
end
|
|
587
|
+
|
|
588
|
+
# Creates an instance of the object from a hash.
|
|
589
|
+
def self.from_hash(hash)
|
|
590
|
+
return nil unless hash
|
|
591
|
+
|
|
592
|
+
# Extract variables from the hash.
|
|
593
|
+
account_number =
|
|
594
|
+
hash.key?('account_number') ? hash['account_number'] : SKIP
|
|
595
|
+
account_ownership =
|
|
596
|
+
hash.key?('account_ownership') ? hash['account_ownership'] : SKIP
|
|
597
|
+
annuity_policy_to_date =
|
|
598
|
+
hash.key?('annuity_policy_to_date') ? hash['annuity_policy_to_date'] : SKIP
|
|
599
|
+
annuity_provider =
|
|
600
|
+
hash.key?('annuity_provider') ? hash['annuity_provider'] : SKIP
|
|
601
|
+
annuity_term_year =
|
|
602
|
+
hash.key?('annuity_term_year') ? hash['annuity_term_year'] : SKIP
|
|
603
|
+
apr = hash.key?('apr') ? hash['apr'] : SKIP
|
|
604
|
+
apy = hash.key?('apy') ? hash['apy'] : SKIP
|
|
605
|
+
available_balance =
|
|
606
|
+
hash.key?('available_balance') ? hash['available_balance'] : SKIP
|
|
607
|
+
available_credit =
|
|
608
|
+
hash.key?('available_credit') ? hash['available_credit'] : SKIP
|
|
609
|
+
balance = hash.key?('balance') ? hash['balance'] : SKIP
|
|
610
|
+
cash_balance = hash.key?('cash_balance') ? hash['cash_balance'] : SKIP
|
|
611
|
+
cash_surrender_value =
|
|
612
|
+
hash.key?('cash_surrender_value') ? hash['cash_surrender_value'] : SKIP
|
|
613
|
+
created_at = hash.key?('created_at') ? hash['created_at'] : SKIP
|
|
614
|
+
credit_limit = hash.key?('credit_limit') ? hash['credit_limit'] : SKIP
|
|
615
|
+
currency_code = hash.key?('currency_code') ? hash['currency_code'] : SKIP
|
|
616
|
+
day_payment_is_due =
|
|
617
|
+
hash.key?('day_payment_is_due') ? hash['day_payment_is_due'] : SKIP
|
|
618
|
+
death_benefit = hash.key?('death_benefit') ? hash['death_benefit'] : SKIP
|
|
619
|
+
federal_insurance_status =
|
|
620
|
+
hash.key?('federal_insurance_status') ? hash['federal_insurance_status'] : SKIP
|
|
621
|
+
guid = hash.key?('guid') ? hash['guid'] : SKIP
|
|
622
|
+
id = hash.key?('id') ? hash['id'] : SKIP
|
|
623
|
+
imported_at = hash.key?('imported_at') ? hash['imported_at'] : SKIP
|
|
624
|
+
interest_rate = hash.key?('interest_rate') ? hash['interest_rate'] : SKIP
|
|
625
|
+
institution_code =
|
|
626
|
+
hash.key?('institution_code') ? hash['institution_code'] : SKIP
|
|
627
|
+
insured_name = hash.key?('insured_name') ? hash['insured_name'] : SKIP
|
|
628
|
+
is_closed = hash.key?('is_closed') ? hash['is_closed'] : SKIP
|
|
629
|
+
is_hidden = hash.key?('is_hidden') ? hash['is_hidden'] : SKIP
|
|
630
|
+
is_manual = hash.key?('is_manual') ? hash['is_manual'] : SKIP
|
|
631
|
+
last_payment = hash.key?('last_payment') ? hash['last_payment'] : SKIP
|
|
632
|
+
last_payment_at =
|
|
633
|
+
hash.key?('last_payment_at') ? hash['last_payment_at'] : SKIP
|
|
634
|
+
loan_amount = hash.key?('loan_amount') ? hash['loan_amount'] : SKIP
|
|
635
|
+
margin_balance =
|
|
636
|
+
hash.key?('margin_balance') ? hash['margin_balance'] : SKIP
|
|
637
|
+
matures_on = hash.key?('matures_on') ? hash['matures_on'] : SKIP
|
|
638
|
+
member_guid = hash.key?('member_guid') ? hash['member_guid'] : SKIP
|
|
639
|
+
member_id = hash.key?('member_id') ? hash['member_id'] : SKIP
|
|
640
|
+
member_is_managed_by_user =
|
|
641
|
+
hash.key?('member_is_managed_by_user') ? hash['member_is_managed_by_user'] : SKIP
|
|
642
|
+
metadata = hash.key?('metadata') ? hash['metadata'] : SKIP
|
|
643
|
+
minimum_balance =
|
|
644
|
+
hash.key?('minimum_balance') ? hash['minimum_balance'] : SKIP
|
|
645
|
+
minimum_payment =
|
|
646
|
+
hash.key?('minimum_payment') ? hash['minimum_payment'] : SKIP
|
|
647
|
+
name = hash.key?('name') ? hash['name'] : SKIP
|
|
648
|
+
nickname = hash.key?('nickname') ? hash['nickname'] : SKIP
|
|
649
|
+
original_balance =
|
|
650
|
+
hash.key?('original_balance') ? hash['original_balance'] : SKIP
|
|
651
|
+
pay_out_amount =
|
|
652
|
+
hash.key?('pay_out_amount') ? hash['pay_out_amount'] : SKIP
|
|
653
|
+
payment_due_at =
|
|
654
|
+
hash.key?('payment_due_at') ? hash['payment_due_at'] : SKIP
|
|
655
|
+
payoff_balance =
|
|
656
|
+
hash.key?('payoff_balance') ? hash['payoff_balance'] : SKIP
|
|
657
|
+
premium_amount =
|
|
658
|
+
hash.key?('premium_amount') ? hash['premium_amount'] : SKIP
|
|
659
|
+
property_type = hash.key?('property_type') ? hash['property_type'] : SKIP
|
|
660
|
+
routing_number =
|
|
661
|
+
hash.key?('routing_number') ? hash['routing_number'] : SKIP
|
|
662
|
+
started_on = hash.key?('started_on') ? hash['started_on'] : SKIP
|
|
663
|
+
statement_balance =
|
|
664
|
+
hash.key?('statement_balance') ? hash['statement_balance'] : SKIP
|
|
665
|
+
subtype = hash.key?('subtype') ? hash['subtype'] : SKIP
|
|
666
|
+
today_ugl_amount =
|
|
667
|
+
hash.key?('today_ugl_amount') ? hash['today_ugl_amount'] : SKIP
|
|
668
|
+
today_ugl_percentage =
|
|
669
|
+
hash.key?('today_ugl_percentage') ? hash['today_ugl_percentage'] : SKIP
|
|
670
|
+
total_account_value =
|
|
671
|
+
hash.key?('total_account_value') ? hash['total_account_value'] : SKIP
|
|
672
|
+
total_account_value_ugl =
|
|
673
|
+
hash.key?('total_account_value_ugl') ? hash['total_account_value_ugl'] : SKIP
|
|
674
|
+
type = hash.key?('type') ? hash['type'] : SKIP
|
|
675
|
+
updated_at = hash.key?('updated_at') ? hash['updated_at'] : SKIP
|
|
676
|
+
user_guid = hash.key?('user_guid') ? hash['user_guid'] : SKIP
|
|
677
|
+
user_id = hash.key?('user_id') ? hash['user_id'] : SKIP
|
|
678
|
+
|
|
679
|
+
# Create a new hash for additional properties, removing known properties.
|
|
680
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
681
|
+
|
|
682
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
683
|
+
new_hash, proc { |value| value }
|
|
684
|
+
)
|
|
685
|
+
|
|
686
|
+
# Create object from extracted values.
|
|
687
|
+
AccountResponse.new(account_number: account_number,
|
|
688
|
+
account_ownership: account_ownership,
|
|
689
|
+
annuity_policy_to_date: annuity_policy_to_date,
|
|
690
|
+
annuity_provider: annuity_provider,
|
|
691
|
+
annuity_term_year: annuity_term_year,
|
|
692
|
+
apr: apr,
|
|
693
|
+
apy: apy,
|
|
694
|
+
available_balance: available_balance,
|
|
695
|
+
available_credit: available_credit,
|
|
696
|
+
balance: balance,
|
|
697
|
+
cash_balance: cash_balance,
|
|
698
|
+
cash_surrender_value: cash_surrender_value,
|
|
699
|
+
created_at: created_at,
|
|
700
|
+
credit_limit: credit_limit,
|
|
701
|
+
currency_code: currency_code,
|
|
702
|
+
day_payment_is_due: day_payment_is_due,
|
|
703
|
+
death_benefit: death_benefit,
|
|
704
|
+
federal_insurance_status: federal_insurance_status,
|
|
705
|
+
guid: guid,
|
|
706
|
+
id: id,
|
|
707
|
+
imported_at: imported_at,
|
|
708
|
+
interest_rate: interest_rate,
|
|
709
|
+
institution_code: institution_code,
|
|
710
|
+
insured_name: insured_name,
|
|
711
|
+
is_closed: is_closed,
|
|
712
|
+
is_hidden: is_hidden,
|
|
713
|
+
is_manual: is_manual,
|
|
714
|
+
last_payment: last_payment,
|
|
715
|
+
last_payment_at: last_payment_at,
|
|
716
|
+
loan_amount: loan_amount,
|
|
717
|
+
margin_balance: margin_balance,
|
|
718
|
+
matures_on: matures_on,
|
|
719
|
+
member_guid: member_guid,
|
|
720
|
+
member_id: member_id,
|
|
721
|
+
member_is_managed_by_user: member_is_managed_by_user,
|
|
722
|
+
metadata: metadata,
|
|
723
|
+
minimum_balance: minimum_balance,
|
|
724
|
+
minimum_payment: minimum_payment,
|
|
725
|
+
name: name,
|
|
726
|
+
nickname: nickname,
|
|
727
|
+
original_balance: original_balance,
|
|
728
|
+
pay_out_amount: pay_out_amount,
|
|
729
|
+
payment_due_at: payment_due_at,
|
|
730
|
+
payoff_balance: payoff_balance,
|
|
731
|
+
premium_amount: premium_amount,
|
|
732
|
+
property_type: property_type,
|
|
733
|
+
routing_number: routing_number,
|
|
734
|
+
started_on: started_on,
|
|
735
|
+
statement_balance: statement_balance,
|
|
736
|
+
subtype: subtype,
|
|
737
|
+
today_ugl_amount: today_ugl_amount,
|
|
738
|
+
today_ugl_percentage: today_ugl_percentage,
|
|
739
|
+
total_account_value: total_account_value,
|
|
740
|
+
total_account_value_ugl: total_account_value_ugl,
|
|
741
|
+
type: type,
|
|
742
|
+
updated_at: updated_at,
|
|
743
|
+
user_guid: user_guid,
|
|
744
|
+
user_id: user_id,
|
|
745
|
+
additional_properties: additional_properties)
|
|
746
|
+
end
|
|
747
|
+
|
|
748
|
+
# Provides a human-readable string representation of the object.
|
|
749
|
+
def to_s
|
|
750
|
+
class_name = self.class.name.split('::').last
|
|
751
|
+
"<#{class_name} account_number: #{@account_number}, account_ownership:"\
|
|
752
|
+
" #{@account_ownership}, annuity_policy_to_date: #{@annuity_policy_to_date},"\
|
|
753
|
+
" annuity_provider: #{@annuity_provider}, annuity_term_year: #{@annuity_term_year}, apr:"\
|
|
754
|
+
" #{@apr}, apy: #{@apy}, available_balance: #{@available_balance}, available_credit:"\
|
|
755
|
+
" #{@available_credit}, balance: #{@balance}, cash_balance: #{@cash_balance},"\
|
|
756
|
+
" cash_surrender_value: #{@cash_surrender_value}, created_at: #{@created_at}, credit_limit:"\
|
|
757
|
+
" #{@credit_limit}, currency_code: #{@currency_code}, day_payment_is_due:"\
|
|
758
|
+
" #{@day_payment_is_due}, death_benefit: #{@death_benefit}, federal_insurance_status:"\
|
|
759
|
+
" #{@federal_insurance_status}, guid: #{@guid}, id: #{@id}, imported_at: #{@imported_at},"\
|
|
760
|
+
" interest_rate: #{@interest_rate}, institution_code: #{@institution_code}, insured_name:"\
|
|
761
|
+
" #{@insured_name}, is_closed: #{@is_closed}, is_hidden: #{@is_hidden}, is_manual:"\
|
|
762
|
+
" #{@is_manual}, last_payment: #{@last_payment}, last_payment_at: #{@last_payment_at},"\
|
|
763
|
+
" loan_amount: #{@loan_amount}, margin_balance: #{@margin_balance}, matures_on:"\
|
|
764
|
+
" #{@matures_on}, member_guid: #{@member_guid}, member_id: #{@member_id},"\
|
|
765
|
+
" member_is_managed_by_user: #{@member_is_managed_by_user}, metadata: #{@metadata},"\
|
|
766
|
+
" minimum_balance: #{@minimum_balance}, minimum_payment: #{@minimum_payment}, name:"\
|
|
767
|
+
" #{@name}, nickname: #{@nickname}, original_balance: #{@original_balance}, pay_out_amount:"\
|
|
768
|
+
" #{@pay_out_amount}, payment_due_at: #{@payment_due_at}, payoff_balance:"\
|
|
769
|
+
" #{@payoff_balance}, premium_amount: #{@premium_amount}, property_type: #{@property_type},"\
|
|
770
|
+
" routing_number: #{@routing_number}, started_on: #{@started_on}, statement_balance:"\
|
|
771
|
+
" #{@statement_balance}, subtype: #{@subtype}, today_ugl_amount: #{@today_ugl_amount},"\
|
|
772
|
+
" today_ugl_percentage: #{@today_ugl_percentage}, total_account_value:"\
|
|
773
|
+
" #{@total_account_value}, total_account_value_ugl: #{@total_account_value_ugl}, type:"\
|
|
774
|
+
" #{@type}, updated_at: #{@updated_at}, user_guid: #{@user_guid}, user_id: #{@user_id},"\
|
|
775
|
+
" additional_properties: #{@additional_properties}>"
|
|
776
|
+
end
|
|
777
|
+
|
|
778
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
779
|
+
def inspect
|
|
780
|
+
class_name = self.class.name.split('::').last
|
|
781
|
+
"<#{class_name} account_number: #{@account_number.inspect}, account_ownership:"\
|
|
782
|
+
" #{@account_ownership.inspect}, annuity_policy_to_date: #{@annuity_policy_to_date.inspect},"\
|
|
783
|
+
" annuity_provider: #{@annuity_provider.inspect}, annuity_term_year:"\
|
|
784
|
+
" #{@annuity_term_year.inspect}, apr: #{@apr.inspect}, apy: #{@apy.inspect},"\
|
|
785
|
+
" available_balance: #{@available_balance.inspect}, available_credit:"\
|
|
786
|
+
" #{@available_credit.inspect}, balance: #{@balance.inspect}, cash_balance:"\
|
|
787
|
+
" #{@cash_balance.inspect}, cash_surrender_value: #{@cash_surrender_value.inspect},"\
|
|
788
|
+
" created_at: #{@created_at.inspect}, credit_limit: #{@credit_limit.inspect}, currency_code:"\
|
|
789
|
+
" #{@currency_code.inspect}, day_payment_is_due: #{@day_payment_is_due.inspect},"\
|
|
790
|
+
" death_benefit: #{@death_benefit.inspect}, federal_insurance_status:"\
|
|
791
|
+
" #{@federal_insurance_status.inspect}, guid: #{@guid.inspect}, id: #{@id.inspect},"\
|
|
792
|
+
" imported_at: #{@imported_at.inspect}, interest_rate: #{@interest_rate.inspect},"\
|
|
793
|
+
" institution_code: #{@institution_code.inspect}, insured_name: #{@insured_name.inspect},"\
|
|
794
|
+
" is_closed: #{@is_closed.inspect}, is_hidden: #{@is_hidden.inspect}, is_manual:"\
|
|
795
|
+
" #{@is_manual.inspect}, last_payment: #{@last_payment.inspect}, last_payment_at:"\
|
|
796
|
+
" #{@last_payment_at.inspect}, loan_amount: #{@loan_amount.inspect}, margin_balance:"\
|
|
797
|
+
" #{@margin_balance.inspect}, matures_on: #{@matures_on.inspect}, member_guid:"\
|
|
798
|
+
" #{@member_guid.inspect}, member_id: #{@member_id.inspect}, member_is_managed_by_user:"\
|
|
799
|
+
" #{@member_is_managed_by_user.inspect}, metadata: #{@metadata.inspect}, minimum_balance:"\
|
|
800
|
+
" #{@minimum_balance.inspect}, minimum_payment: #{@minimum_payment.inspect}, name:"\
|
|
801
|
+
" #{@name.inspect}, nickname: #{@nickname.inspect}, original_balance:"\
|
|
802
|
+
" #{@original_balance.inspect}, pay_out_amount: #{@pay_out_amount.inspect}, payment_due_at:"\
|
|
803
|
+
" #{@payment_due_at.inspect}, payoff_balance: #{@payoff_balance.inspect}, premium_amount:"\
|
|
804
|
+
" #{@premium_amount.inspect}, property_type: #{@property_type.inspect}, routing_number:"\
|
|
805
|
+
" #{@routing_number.inspect}, started_on: #{@started_on.inspect}, statement_balance:"\
|
|
806
|
+
" #{@statement_balance.inspect}, subtype: #{@subtype.inspect}, today_ugl_amount:"\
|
|
807
|
+
" #{@today_ugl_amount.inspect}, today_ugl_percentage: #{@today_ugl_percentage.inspect},"\
|
|
808
|
+
" total_account_value: #{@total_account_value.inspect}, total_account_value_ugl:"\
|
|
809
|
+
" #{@total_account_value_ugl.inspect}, type: #{@type.inspect}, updated_at:"\
|
|
810
|
+
" #{@updated_at.inspect}, user_guid: #{@user_guid.inspect}, user_id: #{@user_id.inspect},"\
|
|
811
|
+
" additional_properties: #{@additional_properties}>"
|
|
812
|
+
end
|
|
813
|
+
end
|
|
814
|
+
end
|